MockHero

user_agent

Technical

Generate real browser user agent strings for Chrome, Firefox, Safari, and more. For analytics testing, browser detection, and access log generation.

Example Outputs

Mozilla/5.0 (Macintosh; Intel Mac OS X 14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

API Usage

Send a POST request to generate user agent data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "user_agent",
          "type": "user_agent"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Analytics testing
  • Browser detection testing
  • Access log generation
  • Bot detection testing

Quick Info

Field Type
user_agent
Category
Technical
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate user agent data instantly in the playground.

Generate User Agent + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free