User Agent Parser API
Introduction
By default, an internet browser provides a User-Agent string (UA) which carries detailed device and browser information (type, version, OS etc).
However, different browsers provide the UA strings in different formats, making it difficult to interpret this information directly. This could require hours of coding and testing a parser that effectively reads all the variations.
This User-Agent Parser API solves this problem by providing an extremely quick and simple parser which can provide clearly readable and defined information based on the provided UA string.
UA string is commonly used in web analytics tools to monitor and identify access to your website by device type. This can provide useful insights such as the proportion of your traffic that comes from mobile devices and the level of need to create a responsive web design and deliver mobile-optimised content.
Get started
This API is part of the IP Geolocation package and is available in free and paid plans. Please visit the IP Geolocation package page for limits and pricing information.
Endpoints
IPv4 only API Endpoint
Use this endpoint to force API calls routed over the IPv4 network only
Dual-Stack API Endpoint
This endpoint has native IPv6 support and backs the API calls routed over both IPv4 and IPv6 networks
Request
Responses
Example query
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]
Example response
Schema
The Device type parsed from the user agent string
The OS parsed from the user agent string
The User-Agent parsed from the input user agent string
The family of the device, if available
The major version of the user agent, if available
The minor version of the user agent, if available
Patch version of the user agent, if available
Returns true if the device is likely to be a spider or a bot device
Returns true if the device is likely to be of a mobile type
The user agent as a readable string
The user agent string, the input for the UA parser