The Device Detector API is a powerful tool that analyzes user agent strings from HTTP request headers to extract valuable client information. These strings reveal crucial details such as operating system, browser, device type and other metadata. By converting raw user agent strings into structured, meaningful data, the API enables you to better understand and respond to the characteristics of your users' devices and software.
Designed for flexibility and performance, the API uses advanced algorithms and an extensive database of known user agents to accurately identify and classify string components, such as operating system name and version, browser type and version, and whether the device is mobile or desktop.
API integration is straightforward, providing a simple interface that easily adapts to existing systems. With this functionality, developers can customize the user experience, optimize device-specific performance, deliver targeted content and improve analytics.
{
"ua": "Mozilla/5.0 (Linux; Android 12; Pixel 6 Build/SD1A.210817.023; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.71 Mobile Safari/537.36",
"browser": {
"name": "Chrome WebView",
"version": "94.0.4606.71",
"major": "94"
},
"engine": {
"name": "Blink",
"version": "94.0.4606.71"
},
"os": {
"name": "Android",
"version": "12"
},
"device": {
"vendor": "Google",
"model": "Pixel 6",
"type": "mobile"
},
"cpu": {}
}
curl --location --request POST 'https://zylalabs.com/api/6529/device+detector+api/9461/agent+parser' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15"
}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API, users must indicate the information of the user agent to structure in a JSON the information.
There are different plans to suit everyone, including a free trial for a small number of requests, but its rate is limited to avoid abuse of the service.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
The API helps you tailor your web content and user experiences based on the specific devices used by visitors. This ensures optimal display and functionality across different devices, such as desktops, smartphones, and tablets.
Device Detector API is a robust solution designed to analyze and understand user agent strings sent by web browsers, mobile applications and other HTTP clients.
The Agent Parser endpoint returns structured data about the user agent, including details about the browser, operating system, device type, and additional metadata. The response is formatted as JSON.
Key fields in the response include "ua" (user agent string), "browser" (name, version), "os" (name, version), "device" (vendor, model, type), and "engine" (name, version). Each field provides specific insights into the user's environment.
The response data is organized in a hierarchical JSON format. Each major category (browser, os, device, engine) contains relevant subfields, making it easy to access specific information about the user agent.
The Agent Parser endpoint provides information about the browser name and version, operating system details, device vendor and model, and rendering engine specifics. This data helps in understanding user environments.
Users can customize their requests by specifying different user agent strings in the POST request. This allows for tailored responses based on the specific user agent being analyzed.
The data is sourced from a comprehensive database of known user agents, maintained through continuous updates and community contributions. This ensures a wide coverage of devices and browsers.
Data accuracy is maintained through regular updates to the user agent database, validation against known standards, and algorithms that parse user agent strings effectively. This helps ensure reliable identification.
Typical use cases include optimizing web content for specific devices, enhancing user experience through personalization, conducting analytics on user demographics, and improving security by identifying potential threats based on user agents.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
173ms
Service Level:
100%
Response Time:
2,429ms
Service Level:
100%
Response Time:
17ms
Service Level:
100%
Response Time:
105ms
Service Level:
100%
Response Time:
3,869ms
Service Level:
100%
Response Time:
299ms
Service Level:
100%
Response Time:
219ms
Service Level:
100%
Response Time:
935ms
Service Level:
100%
Response Time:
546ms
Service Level:
100%
Response Time:
83ms