User-Agent Generator
Generate desktop or mobile user-agent strings using user_agent_type and user_agent_count (1–5). This local operation still has a catalog request price.
- Endpoint
- POST https://api.serpbase.dev/web/user-agent
- Price
- 1 credit
- Authentication
- X-API-Key
You pay for successful requests only. Each endpoint has a fixed price in credits — most cost 1 or 2 — and a request that fails gives its credits back automatically. Billing →
Need the whole Google results page instead? The Google SERP API returns organic results, AI Overviews and People Also Ask as JSON.
Example
curl -X POST 'https://api.serpbase.dev/web/user-agent' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"user_agent_count":1,"user_agent_type":"desktop"}'{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "web_user_agent",
"action": "user_agent",
"source": "web",
"user_agents": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0"
]
}Frequently asked questions
How much does the User-Agent Generator API cost?
Each request costs 1 credit. Credits come from prepaid packs or the monthly plan, and new accounts start with free credits.
How do I call the User-Agent Generator API?
Send a POST request to https://api.serpbase.dev/web/user-agent with your API key in the X-API-Key header. The response is JSON; check status (0 means success).
Which devices does it support?
Supported devices: desktop. The default is desktop.
Is the User-Agent Generator API available now?
Yes. Any active API key can call it.