← Back to Home

User Agent

/user-agent
Returns the User-Agent string sent by the client. Useful for testing browser/client detection.

Examples

curl
curl https://tcpdata.com/user-agent
JavaScript (fetch)
fetch('https://tcpdata.com/user-agent')
  .then(res => res.json())
  .then(data => console.log(data));
Python (requests)
import requests

response = requests.get('https://tcpdata.com/user-agent')
print(response.json())