On this page

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

GET
https://api.bigdatacloud.net/data/user-agent-info

Dual-Stack API Endpoint

This endpoint has native IPv6 support and backs the API calls routed over both IPv4 and IPv6 networks

GET
https://api-bdc.net/data/user-agent-info

Request

Parameter
Type
Required
Description
Parameter
userAgentRaw
Type
string
Required
Yes
Description
User agent string input
Parameter
key
Type
string
Required
Yes
Description
Your API key

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

application/json