Back to HTTP Headers
Request

HTTP User-Agent Header

Identifies the client software making the request. Contains information about the application, operating system, and version.

Purpose

Helps servers identify the client making the request for analytics, content negotiation, and compatibility handling.

User-Agent: <product>/<version> (<comments>) Example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Example: curl/8.0.1 Example: PostmanRuntime/7.36.0

Code Examples

See how to use the User-Agent header in different tools and languages.

curl -A "MyApp/1.0" https://api.example.com/data
curl -H "User-Agent: CustomBot/2.0" https://api.example.com

Related Headers

Test Your APIs

user-agent headerhttp user-agenthttp headers guide