Bulk User Agent Parser - Multi User Agent Parsing

Parse up to 100 User-Agent strings simultaneously with our bulk parsing feature. This allows you to efficiently analyze multiple user agents in a single request, saving time and resources. The result of each parsed user agent string gives detailed information about the browser, device, and operating system. It also provides information about crawlers and possible attacks.

10K Free Credits, No Credit Card Required

Features

Large Scale Data Processing

Efficiently parse up to 100 User-Agent strings at once. Analyze multiple user agents in a single request, saving both time and resources. Perfect for large-scale data processing and analysis.

Security Feature

Detect and report anomalies in User-Agent strings, including malformed or malicious entries. Our API identifies potential threats and provides detailed information to help you safeguard your application against attacks.

Documentation

API Endpoint

POST

https://api.apifreaks.com/v1.0/user-agent/lookup

Test
LANGUAGE
Python
PHP
Java
Node
Ruby
$ pip install requests

API Request

The request body must be in JSON format and include a comma-separated list of user-agent strings to parse them.

{ "uaStrings": [ "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36", "Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+", "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)" ] }

API Response

For a comprehensive view of the API response structure and detailed field descriptions, explore the interactive Response Table by clicking here.

HTTP Error Codes

If the entire request encounters an error, the following error codes will be returned. However, if an individual user-agent parser experiences any specific error, only the object corresponding to that user-agent will include a message field detailing the error. The rest of the response will still contain the user-agent data, ensuring you receive as much useful information as possible.

HTTP StatusReasons
400
'userAgentString' must not be empty or null

How-To-Guides

Parse Multiple User-Agent Strings

Parse multiple User-Agent strings (max. 100) at the same time. To do so, send a POST request and pass the uaStrings array as JSON data along with it. The requests count per round will be equal to total User-Agent strings passed. Here is an example:

$ curl --location --request POST 'https://api.apifreaks.com/v1.0/user-agent/lookup?apiKey=API-KEY' --header 'Content-Type: application/json' --data-raw '{ "uaStrings": ["Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36", "Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+", "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)"] }'

Pricing

To use the user-agent parser API, API credits are required. Charges apply only for successful queries, defined by a 2xx status code. If a request results in a 4xx or 5xx status code, no credits will be deducted, and any credits already charged will be refunded. Credits are applied based on each user-agent string you pass in your request. If an error occurs while parsing the user-agent, credits will be refunded for that user-agent string, and you will only be charged for successful parsing of user-agent strings.

ServiceCredits
Bulk User-Agent1 credit per successful parsing of user-agent string

Utilize the Credits Usage API to efficiently monitor your recent consumption of both one-off and subscription credits. This API provides a streamlined way to track and manage your credit usage, ensuring you stay informed about your remaining balance and can optimize your resource allocation effectively.

Price Estimation Calculator