User Agent Parser API
Every HTTP request includes a user-agent string — a snippet of text identifying the browser, operating system, and device making the request. The format varies significantly across clients, and parsing it reliably requires keeping up with a constantly changing landscape of browsers, bots, and device types.
This API handles that parsing for you. Pass in a raw user-agent string and get back structured data: browser name and version, operating system, device type, and whether the request is coming from a bot or crawler (the isSpider field).
The bot detection in particular is useful for keeping analytics clean and ensuring server resources are spent on genuine users rather than automated traffic.
https://api-bdc.net/data/user-agent-infoParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userAgentRaw | string | Optional | User agent string input |
key | string | Optional | Your API key |
Responses
Sample Request
https://api-bdc.net/data/user-agent-info?userAgentRaw=Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; http://www.bing.com/bingbot.htm)&key=[YOUR API KEY]Sample Response
Response Schema
Sample Response
Sample Response
Sample Response