Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Best User Agent Parser APIs: 10 Hosted and Self-Run Options

For a hosted API with a free allowance you can build on, I'd start with WhatIsMyBrowser (5,000 detections a month free) or 51Degrees (10,000 requests a month free). If you'd rather keep parsing inside your own code, UAParser.js installs from npm and runs in browsers and Node.js.

Nothing on this page comes from me calling these APIs. In December 2026 I read each vendor's homepage, pricing page or documentation, noted what each one states about free allowances, bot detection, Client Hints and running the parser on your own servers, and wrote that down cell by cell. I didn't sign up, send requests or compare accuracy, so there are no test results here. Thirteen candidates came up; I dropped three (one redirects to another listed vendor, one product page returned Page Not Found, and one is an IP lookup service rather than a user agent parser), which leaves ten. Where a page was silent, the table says Not published.

A one-hour trial you can run before committing

Accuracy claims are easy to print and hard to check from a vendor page, so the quickest way to choose is to feed two or three shortlisted parsers the same strings and compare the answers yourself.

  1. Export 200 real user agent strings from your own access logs, including a handful you already know are bots, a few in-app browsers and some older Android devices.
  2. Sign up for the free tier or trial of two or three parsers from the table below, and note the monthly, daily and hourly limits before you send anything.
  3. Run the same strings through each one and save the raw responses side by side in a spreadsheet: browser, version, operating system, device type, brand and any crawler flag.
  4. Count the disagreements, then check a sample of them by hand against the strings you already know.
  5. Send one malformed string and one empty string, and see whether each parser returns an error code or a normal response with a validity flag.
  6. Time a burst of requests from the server region you deploy in, because a hosted parser sits in your request path.

Ten user agent parsers worth shortlisting

WhatIsMyBrowser API

Its free Basic plan covers 5,000 browser detections a month, and version 3 of the API adds browser and bot detection plus a batch parse endpoint. Skip it if your finance team only pays in dollars or pounds, because plans are priced in Australian dollars.

51Degrees

You get 10,000 free monthly requests, on-premise or cloud, and the pricing page lists Client Hints support plus crawler and AI crawler detection. Skip it if you want paid on-premise at a published rate, since the lower paid plans are cloud only.

UAParser.js

This is a dependency-free library you install with npm, running in browsers and Node.js, with isBot() and isAICrawler() methods. Skip it if you need a hosted endpoint right now: the cloud page still says under development, coming soon.

userstack

Its response includes os, device, browser engine and a crawler object with is_crawler and last_seen fields; crawler detection and commercial use start on the Basic plan. Skip it if your project is commercial and must run without paying, since userstack's no-cost plan is marked non-commercial.

UserParser

One call takes both user agent and IP, the response carries crawlerName and screen size fields, and the free plan gives 10,000 calls a month. Skip it if a single day can top 500 calls, since the Free Forever plan caps each day there.

API Ninjas User Agent

The v2 endpoint returns browser, OS and device family, and an unrecognised string comes back as HTTP 200 with is_valid set to false. Skip it if you can't credit the provider in your product, as unpaid use requires attribution.

Udger

Besides a cloud parser, Udger sells a local parser with unlimited detections and open source clients, and its data covers Tor exit nodes and fake crawlers. Skip it if Client Hints parsing matters to you, as the pages I read never mention it.

APIcAgent

Built on Matomo's open source device database, it offers GET and POST versions of the same endpoint, returning browser family, engine, device brand and model. Skip it if you need a settled pricing plan, because the site only says it's free while in beta.

DeviceAtlas

Pitched at device intelligence, it lists bot detection and Client Hints, with monthly data updates on Starter and daily updates on Enterprise, where local deployment sits. Skip it if you want a permanent free plan, since the pricing page shows paid tiers and a trial.

WURFL

ScientiaMobile sells on-premise products (WURFL OnSite and InFuze) alongside cloud ones such as WURFL.js, and supports Java, PHP, Rust and Golang. Skip it if you need to see a price before talking to sales, as the site routes buyers to a quote request.

What each vendor page states, side by side

Do you make a user agent parser or device detection API? Tool makers can ask to be considered for a featured place on this list.

Every cell below comes from the vendor's own pricing page, homepage or documentation as read in December 2026. Not published means I searched the page text for that feature and found nothing.

ToolFree allowanceBot or crawler flagOn-premise or localHints (UA-CH)
WhatIsMyBrowser API5,000 detections a month (Basic)Browser and Bot Detection in version 3Database dumps of user agents offeredYes, named on the API page
51Degrees10,000 requests a monthCrawler and AI crawler detectionOn-premise or cloudClient Hints support listed
UAParser.jsOpen source library (MIT v1, AGPL v2 and later)isBot() and isAICrawler()Yes, npm library for browsers and Node.jsClient Hints data accepted since v2.0.0
userstack100 lookups a month, non-commercialCrawler Detection from BasicNot publishedNot published
UserParser10,000 calls a month, 500 a dayisCrawler plus crawlerName and crawlerOwner fieldsNot publishedNot published
API Ninjas User AgentFree tier, no commercial use, 100 calls per hourNot publishedNot publishedNot published
Udger500 queries a month (cloud)Fake crawlers and spambot detectionLocal parser with open source clientsNot published
APIcAgentFree while in betaCrawler Protection listed as a useNot publishedNot published
DeviceAtlasTrial link, no free plan shownBot Detection productLocal deployment on EnterpriseUser-agent and Client Hints page
WURFLNot published (Start Trial link)Not publishedWURFL OnSite and InFuze on-premiseNot published

Choosing by the kind of parser you need

The ten split into three types, and the type matters more than any single feature.

Pay-per-lookup hosted APIs. These take a string over HTTPS and hand back JSON. They suit analytics jobs, marketing tools and low-traffic back ends where an extra network call per request is acceptable, or where you parse in batches after the fact. The things to read closely are the free allowance, which ranges from 100 lookups to 10,000 requests a month across the table, and any daily or hourly cap that sits inside the monthly figure. Two tools in the table put a rate cap inside the free allowance in plain words: one a daily cap, one an hourly one. Two tools in the table also bar commercial use on the free tier, which matters if the tool you're building earns money even in testing.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Libraries and local parsers. If parsing sits in the hot path of every page request, a library or local database avoids the round trip. Five tools in the table name a library, local or on-premise option, and a sixth offers database dumps. The trade-off is that you own the updates: new browsers and devices appear constantly, and an out-of-date local file quietly mislabels them. Check the licence as well as the code. UAParser.js moved from MIT to AGPL at version 2, with paid editions for closed-source use.

Device intelligence databases. At the top end are products sold to ad tech, publishers and large sites that need device properties beyond browser and OS, such as screen size, chipset or RAM. In this table, the two of this type show no free plan, and both name an on-premise or local option. If you're only trying to tell mobile from desktop for a layout or a report, this type is more than the job needs.

Here is how I would match the type to the job:

  • Splitting analytics by browser and device: a hosted API with a monthly allowance that covers your traffic, parsed in batches.
  • Blocking or rate-limiting bots: a parser with a crawler flag in the table, ideally one that also checks the IP, since a user agent string is easy to fake.
  • Serving different content per device in real time: a library or local parser, so detection adds no network call.
  • Ad targeting or device-level reporting at scale: a device intelligence database with frequent data updates.
  • Tracking which AI crawlers visit you: a parser that names AI crawlers, then a check against the list of AI crawler user agents.

If you need country or network data too, pairing the parser with one of these IP geolocation APIs covers what a user agent can't tell you.

Where user agent parsing goes wrong, and how to spot it

Faked strings. Anyone can send any user agent, which is how scrapers pass as Chrome. A parser can only read what it's given, so bot detection based on the string alone will miss a careful scraper. WhatIsMyBrowser says it identifies impossible or fake user agents and version numbers; for the rest, pair the parser with IP checks or behaviour signals. You can see how easy faking is with a user agent switcher extension.

Reduced strings in Chromium browsers. Chrome and other Chromium browsers now freeze parts of the user agent string, so minor versions and some device models are no longer in it. 4 of the 10 mention Client Hints on the pages I read; if exact versions or device models matter to you, put those four at the top of your trial.

Silent failures. A parser that can't read a string may still return a success code with empty fields. API Ninjas, for example, documents an HTTP 200 with is_valid set to false. Check validity fields and nulls, not just the status code, or your reports will fill with unknowns you never notice.

Stale data. Detection is only as current as the database behind it. Update frequencies differ: DeviceAtlas lists monthly, weekly or daily depending on plan. Look for a stated update schedule, and if you run a local copy, automate the download.

Limits you only meet in production. A daily or hourly cap inside a generous monthly number will throttle you on a busy day long before the month runs out. Read the whole plan row, not just the headline figure, and log the response when a call is refused so it doesn't look like a parsing gap.

Latency. A hosted call adds a network round trip to every request that waits on it. DeviceAtlas itself says SaaS licences incur latency effects. Parse asynchronously or in batches where you can, and cache results by string, since the same few thousand user agents make up a large share of real traffic.

Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.

Frequently asked questions

What does a user agent parser API do?

It takes the user agent string a browser or bot sends with each request and returns structured fields: browser and version, operating system, device type and brand, and on some services a crawler flag. You call it over HTTPS instead of maintaining parsing rules yourself.

Is there a free user agent parser API?

Yes. Several in the table above publish a free allowance, from 100 lookups a month up to 10,000 requests a month. Read the limits on commercial use, attribution and daily or hourly caps before you build on one.

Can a user agent parser detect bots?

It can flag strings that declare themselves as crawlers, and 8 of the 10 tools here mention bot or crawler detection. A bot that copies a normal browser string won't be caught by the string alone, so combine it with IP and behaviour checks.

Do user agent strings still work now that Chrome has reduced them?

They still identify the browser family, major version and platform, but Chromium browsers no longer put minor versions and some device details in the string. For those, you need a parser that also reads Client Hints.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.