User-Agent Generator — API reference
/web/user-agentUser-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.
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.
user_agent_countnumberCatalog sample; the API validates required fields.
sample: 1
user_agent_typestringCatalog sample; the API validates required fields.
sample: "desktop"
countrystringoptional
Public alias for locale.country. Use one spelling at a time; the API validates the parameters and values supported by this product.
cursorstringoptional
Public alias for pagination.cursor. Use one spelling at a time; the API validates the parameters and values supported by this product.
devicestringoptional
Public alias for options.device. Use one spelling at a time; the API validates the parameters and values supported by this product.
glstringoptional
Public alias for locale.country. Use one spelling at a time; the API validates the parameters and values supported by this product.
hlstringoptional
Public alias for locale.language. Use one spelling at a time; the API validates the parameters and values supported by this product.
htmlbooleanoptional
Public alias for include_html. Use one spelling at a time; the API validates the parameters and values supported by this product.
languagestringoptional
Public alias for locale.language. Use one spelling at a time; the API validates the parameters and values supported by this product.
limitintegeroptional
Public alias for pagination.limit. Use one spelling at a time; the API validates the parameters and values supported by this product.
markdownbooleanoptional
Public alias for include_markdown. Use one spelling at a time; the API validates the parameters and values supported by this product.
mobilebooleanoptional
Public alias for options.device. Use one spelling at a time; the API validates the parameters and values supported by this product.
numintegeroptional
Public alias for pagination.limit. Use one spelling at a time; the API validates the parameters and values supported by this product.
pageintegeroptional
Public alias for pagination.page. Use one spelling at a time; the API validates the parameters and values supported by this product.
qstringoptional
Public alias for query. Use one spelling at a time; the API validates the parameters and values supported by this product.
uanumintegeroptional
Public alias for user_agent_count. Use one spelling at a time; the API validates the parameters and values supported by this product.
uatypestringoptional
Public alias for user_agent_type. Use one spelling at a time; the API validates the parameters and values supported by this product.
{
"user_agent_count": 1,
"user_agent_type": "desktop"
}The response follows this product's contract; no recorded response example is published yet.schemas.source_data
curl -X POST 'https://api.serpbase.dev/web/user-agent' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"user_agent_count":1,"user_agent_type":"desktop"}'Use the catalog sample to get started, then inspect the actual JSON response.
The sample shows example parameters, not the complete request contract. Known fields are validated by the API; additional parameters are allowed.