Overview
Userstack is a User-Agent string parsing API that detects browser type, version, operating system, and device category from a raw UA string in real time. It processes over 10,000 distinct User-Agent patterns and returns structured device data that would otherwise require a complex regex library. It is commonly used for analytics dashboards, access control, and rendering optimization based on visitor device type.
Beginner Tip
Despite the "OAuth" label, Userstack actually uses a simple API key passed as the access_key query parameter — there is no OAuth token exchange flow required. Start with a free account to get your key and make a test call using your own browser User-Agent string.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"status": "success",
"data": {
"result": "Data from Userstack",
"description": "Secure User-Agent String Lookup JSON API",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
ua The original User-Agent string that was submitted for parsing. type Device category: browser, bot, email, library, or null for unknown. browser.name Browser name such as Chrome, Firefox, or Safari. browser.version Full version string of the detected browser. os.name Operating system name, e.g., Windows, macOS, Android. device.type Hardware category: desktop, tablet, smartphone, or tv. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "http://api.userstack.com/detect?access_key=YOUR_KEY&ua=Mozilla%2F5.0+(Windows+NT+10.0%3B+Win64%3B+x64)+AppleWebKit%2F537.36";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Alternatives to Userstack
Technical alternatives for different use cases.
User-agent parsing with device and OS detection
Free usage (Userstack requires paid plan)
Detailed device and browser detection from user-agent strings
Similar APIs
View All →Bitbucket
The Bitbucket REST API (v2) provides programmatic access to Bitbucket Cloud repositories, pull requests, pipelines, and user accounts, enabling you to automate code review workflows and integrate Bitbucket into your CI/CD toolchain.
GitHub
⭐ Beginner's PickThe GitHub REST API gives you programmatic access to nearly everything on GitHub — repositories, issues, pull requests, commits, users, organizations, GitHub Actions, and more.
Gitlab
The GitLab REST API provides comprehensive programmatic control over GitLab projects, including repositories, merge requests, pipelines, issues, CI/CD variables, and user management.
Google Docs
The Google Docs API provides full programmatic control over Google Docs documents, including reading content, inserting text, applying styles, and managing document structure.
DomainDb Info
⭐ Beginner's PickDomainsDB.info provides a searchable database of registered domain names, allowing you to find all domains containing specific keywords, phrases, or patterns across various TLDs.