Skip to content
//User-Agent Parser example\\

One row per entry, browsers only

Keep input order with one row per entry, drop bots and HTTP clients, and stop at a row limit.

Updated November 13, 2026

What this example returns

This example returns up to 8 user-agents parsed.

The dataset’s “Parsed User-Agents” view shows 23 columns: User-Agent, Count, Bot, Bot name, Bot category, Bot producer, Bot info, AI bot, Browser / app, Version, Major, Client type, Engine, Engine version, OS, OS version, OS family, Device type, Brand, Model, Mobile, CPU, and Recognized. See every output field.

What each setting does

The input this example runs User-Agent Parser with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

User-Agent strings userAgents

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36, Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html), Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36,…

One User-Agent string per entry: from browser headers, analytics exports, log files or your own app. Each string becomes one row with browser, OS, device, engine, CPU and a bot verdict. `userAgent` (a single string) is accepted too.

Merge repeated strings deduplicate

No

On: one row per distinct User-Agent, with how often it appeared in `count` (you pay once per distinct string). Off: one row per entry, in input order.

Default: Yes → this example uses No

Bots botFilter

Only browsers and apps (no bots)

Keep only bot rows (e.g. to spot AI crawlers in your logs) or only real browsers and apps. Rows left out are not charged.

Default: Keep all rows → this example uses Only browsers and apps (no bots)

Max results maxItems

8

Save at most this many rows (after merging and the bot filter). Empty: every User-Agent.

.json
{
  "userAgents": [
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
    "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
    "Mozilla/5.0 (Linux; Android 13; Pixel 7 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36",
    "Wget/1.21.4",
    "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
    "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
    "Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-A536B) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Mobile Safari/537.36",
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 OPR/116.0.0.0",
    "Mozilla/5.0 (Linux; Android 13; Pixel 7 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36",
    "Mozilla/5.0 (X11; Linux aarch64; rv:128.0) Gecko/20100101 Firefox/128.0",
    "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; Kindle Fire HDX Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Silk/3.68 like Chrome/39.0.2171.93 Safari/537.36"
  ],
  "deduplicate": false,
  "botFilter": "humans",
  "maxItems": 8
}

What it costs

From about $0.0022 for 8 user-agents parsed

An estimate at the lowest plan price: 8 × $0.00027 per user-agent parsed (One saved row: a User-Agent string parsed into browser, engine, OS, device, CPU and bot columns. Entries that are not User-Agents, log lines without one and rows left out by the bot filter are free). A run is charged for the events it reports, so one that finds fewer user-agents parsed costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the User-Agent Parser readme:

Why is a field empty?

User-Agents only carry what the client puts in them. Desktop strings name no device model; iPhones do not name the CPU; Chrome freezes parts of its version and platform (the finer details live in separate Client Hints headers, which are not part of the string); crawlers have no browser or device. Empty means the string does not say, not that parsing failed. recognized: false marks strings nothing matched at all; they are still parsed and charged.

Known limit

count with merging on is over the whole input of the run.

Other ways to run User-Agent Parser

All examples of User-Agent Parser

About User-Agent Parser

Parse User-Agent strings in bulk into browser, version, OS, device type, brand and model, rendering engine and CPU, plus a bot verdict with the bot's name and category (search engines, AI crawlers, monitors, HTTP clients, headless browsers). Paste strings, raw access-log lines or a dataset. No login or API key needed.

Price:
from $0.27 / 1,000 results
Developer:
Querystone

User-Agent Parser pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.