User Agent Parser Offline Bot Detection Batch API
Free tier included · ToolsUser-Agent Parser classifies any User-Agent string offline using the official uap-core regex set bundled via the ua-parser package. It returns browser family and version, operating system, device family/brand/model, a coarse device type (mobile, tablet, pc, tv, console, bot, unknown), and a bot flag. On top of ua-parser it adds heuristics: curl/wget/python-requests and similar SDK clients are reported as device family "Library/CLI"; Android UAs without the "Mobile" token are classified as tablets (Google's convention); smart TVs and game consoles get their own device types; and AI crawlers such as GPTBot, ClaudeBot, PerplexityBot, bingbot and social preview crawlers are detected and categorized.
Four endpoints cover every workflow. `GET /parse` gives the standard browser/OS/device breakdown. `GET /parse/full` adds the rendering engine (Blink/WebKit/Gecko), CPU architecture (x64/arm64/x86), headless browser detection (Puppeteer/Playwright/HeadlessChrome) and AI crawler identification with bot categorization. `POST /parse/batch` validates and parses up to 100 User-Agent strings in one request, returning full details per item in request order. `GET /parse/format` parses a single string and serializes the result in JSON, XML or YAML — useful when you need a non-JSON format for downstream tooling.
The service is completely offline: it makes no calls to external registries, stores nothing, and keeps no request logs. That makes it privacy-friendly for PII-heavy traffic logs and fast — parsing is regex matching over short strings, and a 100-item batch completes in milliseconds. Responses are small, so CPU and bandwidth stay low even under load.
Honest limits: each `ua` parameter is capped at 2048 characters; batch requests accept 1 to 100 items; the `format` query on `/parse/format` accepts only `json`, `xml` or `yaml`. ua-parser cannot always separate Android phones from tablets beyond the "Mobile" token heuristic, and some very new or obscure UAs may map to generic families.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | API metadata: name, version, and paths to the interactive docs and health endpoint. |
GET | /health | Liveness probe; returns status "ok" while the process is up. |
GET | /parse | Parse one User-Agent string: browser, OS, device family/brand/model, coarse device type, and bot flag. ua is a required query parameter (max 2048 chars). |
GET | /parse/full | Detailed User-Agent parsing with AI bots, engine, CPU, and headless detection. ua is a required query parameter (max 2048 chars). |
POST | /parse/batch | Parse up to 100 User-Agent strings in one call. Body: {"uas": ["..."]}. Returns per-item full details in request order. |
GET | /parse/format | Parse a User-Agent string and serialize the result in JSON, XML, or YAML. ua is required (max 2048 chars); format is optional (json/xml/yaml, default json). |
Quick start
curl -X GET "https://uaparse.p.rapidapi.com/parse?ua=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/124.0.0.0%20Safari/537.36" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: uaparse.p.rapidapi.com"
FAQ
Does the API make any external network calls?
No. Parsing uses the uap-core regex set bundled inside the ua-parser package. There are no databases and no logs.
How many User-Agent strings can I send in one batch request?
Up to 100 items per `POST /parse/batch` call, each `ua` at most 2048 characters.
Can I get the result in XML or YAML?
Yes — use `GET /parse/format` with `format=xml` or `format=yaml` (default is `json`).
How does the API detect AI crawlers and bots?
It matches bot-like tokens and known crawler signatures (GPTBot, ClaudeBot, PerplexityBot, bingbot, Googlebot, social preview crawlers, etc.) and returns `is_bot: true` with a `bot_category` such as "AI Crawler".
Try User Agent Parser Offline Bot Detection Batch free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI