Loading
Loading
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.
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.
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.
$ pip install requestsimport requests
import json
url = "https://api.apifreaks.com/v1.0/user-agent/lookup"
payload = json.dumps({
"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)"
]
})
headers = {
'Content-Type': 'application/json',
'X-apiKey': 'API-KEY'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
A maximum of 50,000 User-Agent strings can be included in the request body for a bulk lookup request.
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 -X 'POST' 'https://api.apifreaks.com/v1.0/user-agent/lookup' -H 'Content-Type: application/json' -H 'X-apiKey: API-KEY' -d '{ "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)" ] }'
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.
| Service | Credits |
|---|---|
| Bulk User-Agent | 1 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.