Skip to content

User agents

Parse HTTP User-Agent strings into browser, OS and device fields, and detect bots

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/useragent/index.md to help me query User agents with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

See what you can query

Example output · captured
Connector release
v0.5.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT useragent.main.ua_browser(ua) AS browser, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'), ('Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)')) AS hits(ua)
WHERE NOT useragent.main.ua_is_bot(ua)
GROUP BY browser
ORDER BY requests DESC, browser
Result
browser requests
Chrome 2
Mobile Safari 1

Quick start

Choose where to run User agents, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach the release directly

Downloads the latest release for your platform and caches it locally.

ATTACH 'useragent' AS useragent (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/vgi-useragent'
);

3. Run a query

query.sql
SELECT useragent.main.ua_browser(ua) AS browser, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'), ('Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)')) AS hits(ua)
WHERE NOT useragent.main.ua_is_bot(ua)
GROUP BY browser
ORDER BY requests DESC, browser
More example queries →
Technical details
Verified connector release
v0.5.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach the release directly

Uses the verified release each time you attach the connector.

ATTACH 'useragent' AS useragent (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/[email protected]'
);

Overview

HTTP User-Agent parsing: browser / OS / device + bot detection.

Catalog

Everything useragent exposes once attached — read straight from the worker's released build.

useragent 1 schema
main 8 functions

User-Agent parsing and bot-detection functions.

Schema examples (8)
Examples (8)

Extract the browser family from a desktop Chrome User-Agent.

SELECT useragent.main.ua_browser('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');

Extract the operating system from an iPhone Safari User-Agent.

SELECT useragent.main.ua_os('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1');

Detect that the Googlebot crawler User-Agent is a bot.

SELECT useragent.main.ua_is_bot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)');

Parse every field of a Chrome-on-Windows User-Agent at once as a STRUCT.

SELECT useragent.main.ua_parse('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36') AS parsed;
4 more examples

Web-analytics browser breakdown: filter crawlers out of a request log with ua_is_bot, then count the remaining human requests per ua_browser family (Googlebot and Bingbot are dropped; Chrome 2, Mobile Safari 1).

SELECT useragent.main.ua_browser(ua) AS browser, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'), ('Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)')) AS hits(ua)
WHERE NOT useragent.main.ua_is_bot(ua)
GROUP BY browser
ORDER BY requests DESC, browser;
Result
browser requests
Chrome 2
Mobile Safari 1

Find visitors on an outdated Chrome: keep rows whose ua_browser is 'Chrome' and whose ua_browser_version major number is below 110 (returns the Chrome 96 request with version '96.0.4664'; Chrome 120 and Firefox are excluded).

SELECT ua, useragent.main.ua_browser_version(ua) AS chrome_version
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0')) AS hits(ua)
WHERE useragent.main.ua_browser(ua) = 'Chrome' AND TRY_CAST(split_part(useragent.main.ua_browser_version(ua), '.', 1) AS INTEGER) < 110
ORDER BY ua;

iOS version adoption: keep requests whose ua_os is 'iOS' (iPhone and iPad alike, Android dropped) and count them per ua_os_version (16.6 → 1, 17.0 → 2).

SELECT useragent.main.ua_os_version(ua) AS ios_version, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36')) AS hits(ua)
WHERE useragent.main.ua_os(ua) = 'iOS'
GROUP BY ios_version
ORDER BY ios_version;

Hardware breakdown: count requests per ua_device_brand and ua_device model, skipping traffic with no identifiable brand such as a generic Windows desktop (Apple iPhone, Google Pixel 7, Samsung SM-S911B; 1 request each).

SELECT useragent.main.ua_device_brand(ua) AS brand,
  useragent.main.ua_device(ua) AS device, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36'), ('Mozilla/5.0 (Linux; Android 13; SM-S911B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36')) AS hits(ua)
WHERE useragent.main.ua_device_brand(ua) IS NOT NULL
GROUP BY brand, device
ORDER BY brand, device;
Scalar functions
ua_browser (ua ANY) 1 example

Browser/client family from a User-Agent (e.g. 'Chrome'), or NULL

Arguments
ua ANY
The HTTP User-Agent header string to parse — a table column of raw User-Agent values or a single string literal.
ReturnsVARCHAR
Example

Extract the browser family ('Chrome') from a User-Agent.

SELECT useragent.main.ua_browser('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');
Link
ua_browser_version (ua ANY) 2 examples

Browser version from a User-Agent (e.g. '120.0.0'), or NULL

Arguments
ua ANY
The HTTP User-Agent header string to parse — a table column of raw User-Agent values or a single string literal.
ReturnsVARCHAR
Examples (2)

Extract the browser version ('120.0.0') from a User-Agent.

SELECT useragent.main.ua_browser_version('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');

Find visitors on an outdated Chrome: keep rows whose ua_browser is 'Chrome' and whose ua_browser_version major number is below 110 (returns the Chrome 96 request with version '96.0.4664'; Chrome 120 and Firefox are excluded).

SELECT ua, useragent.main.ua_browser_version(ua) AS chrome_version
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0')) AS hits(ua)
WHERE useragent.main.ua_browser(ua) = 'Chrome' AND TRY_CAST(split_part(useragent.main.ua_browser_version(ua), '.', 1) AS INTEGER) < 110
ORDER BY ua;
Link
ua_device (ua ANY) 1 example

Device family/model from a User-Agent (e.g. 'iPhone'), or NULL

Arguments
ua ANY
The HTTP User-Agent header string to parse — a table column of raw User-Agent values or a single string literal.
ReturnsVARCHAR
Example

Extract the device family from a User-Agent (NULL for a generic desktop).

SELECT useragent.main.ua_device('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');
Link
ua_device_brand (ua ANY) 2 examples

Device brand from a User-Agent (e.g. 'Apple'), or NULL

Arguments
ua ANY
The HTTP User-Agent header string to parse — a table column of raw User-Agent values or a single string literal.
ReturnsVARCHAR
Examples (2)

Extract the device brand from a User-Agent (NULL for a generic desktop).

SELECT useragent.main.ua_device_brand('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');

Hardware breakdown: count requests per ua_device_brand and ua_device model, skipping traffic with no identifiable brand such as a generic Windows desktop (Apple iPhone, Google Pixel 7, Samsung SM-S911B; 1 request each).

SELECT useragent.main.ua_device_brand(ua) AS brand,
  useragent.main.ua_device(ua) AS device, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36'), ('Mozilla/5.0 (Linux; Android 13; SM-S911B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36')) AS hits(ua)
WHERE useragent.main.ua_device_brand(ua) IS NOT NULL
GROUP BY brand, device
ORDER BY brand, device;
Link
ua_is_bot (ua ANY) 2 examples

True if the User-Agent is a spider/crawler (e.g. Googlebot), else false; NULL in → NULL out

Arguments
ua ANY
The HTTP User-Agent header value to test for being a spider/crawler (bot).
ReturnsBOOLEAN
Examples (2)

Detect that the Googlebot crawler User-Agent is a bot (returns true).

SELECT useragent.main.ua_is_bot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)');

Web-analytics browser breakdown: filter crawlers out of a request log with ua_is_bot, then count the remaining human requests per ua_browser family (Googlebot and Bingbot are dropped; Chrome 2, Mobile Safari 1).

SELECT useragent.main.ua_browser(ua) AS browser, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'), ('Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)')) AS hits(ua)
WHERE NOT useragent.main.ua_is_bot(ua)
GROUP BY browser
ORDER BY requests DESC, browser;
Result
browser requests
Chrome 2
Mobile Safari 1
Link
ua_os (ua ANY) 1 example

Operating-system family from a User-Agent (e.g. 'Windows', 'iOS'), or NULL

Arguments
ua ANY
The HTTP User-Agent header string to parse — a table column of raw User-Agent values or a single string literal.
ReturnsVARCHAR
Example

Extract the operating-system family ('Windows') from a User-Agent.

SELECT useragent.main.ua_os('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');
Link
ua_os_version (ua ANY) 2 examples

Operating-system version from a User-Agent (e.g. '17.0'), or NULL

Arguments
ua ANY
The HTTP User-Agent header string to parse — a table column of raw User-Agent values or a single string literal.
ReturnsVARCHAR
Examples (2)

Extract the operating-system version ('10') from a User-Agent.

SELECT useragent.main.ua_os_version('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36');

iOS version adoption: keep requests whose ua_os is 'iOS' (iPhone and iPad alike, Android dropped) and count them per ua_os_version (16.6 → 1, 17.0 → 2).

SELECT useragent.main.ua_os_version(ua) AS ios_version, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36')) AS hits(ua)
WHERE useragent.main.ua_os(ua) = 'iOS'
GROUP BY ios_version
ORDER BY ios_version;
Link
ua_parse (ua ANY) 5 examples

Parse a User-Agent into STRUCT(browser, browser_version, os, os_version, device, brand, is_bot); NULL → NULL row, unparseable → NULL fields

Arguments
ua ANY
The HTTP User-Agent header value to parse into all of its components at once (browser, OS, device, brand, and bot flag).
ReturnsSTRUCT of 7 fields
STRUCT 7 fields
  • browserVARCHAR
  • browser_versionVARCHAR
  • osVARCHAR
  • os_versionVARCHAR
  • deviceVARCHAR
  • brandVARCHAR
  • is_botBOOLEAN
Examples (5)

Parse an iPhone Safari User-Agent into all of its fields at once (browser, OS, device, brand, is_bot).

SELECT useragent.main.ua_parse('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1') AS parsed;
SELECT useragent.main.ua_browser('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36') AS browser;
SELECT useragent.main.ua_os('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1') AS os;
2 more examples
SELECT useragent.main.ua_is_bot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)') AS is_bot;
SELECT useragent.main.ua_parse('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36') AS parsed;
Link

Try these queries

Extract the browser family from a desktop Chrome User-Agent.

SELECT useragent.main.ua_browser('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36')

Uses ua_browser

Extract the operating system from an iPhone Safari User-Agent.

SELECT useragent.main.ua_os('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1')

Uses ua_os

Detect that the Googlebot crawler User-Agent is a bot.

SELECT useragent.main.ua_is_bot('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)')

Uses ua_is_bot

Parse every field of a Chrome-on-Windows User-Agent at once as a STRUCT.

SELECT useragent.main.ua_parse('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36') AS parsed

Uses ua_parse

Find visitors on an outdated Chrome: keep rows whose ua_browser is 'Chrome' and whose ua_browser_version major number is below 110 (returns the Chrome 96 request with version '96.0.4664'; Chrome 120 and Firefox are excluded).

SELECT ua, useragent.main.ua_browser_version(ua) AS chrome_version
FROM (VALUES ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'), ('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0')) AS hits(ua)
WHERE useragent.main.ua_browser(ua) = 'Chrome' AND TRY_CAST(split_part(useragent.main.ua_browser_version(ua), '.', 1) AS INTEGER) < 110
ORDER BY ua

Uses ua_browser_versionua_browser

iOS version adoption: keep requests whose ua_os is 'iOS' (iPhone and iPad alike, Android dropped) and count them per ua_os_version (16.6 → 1, 17.0 → 2).

SELECT useragent.main.ua_os_version(ua) AS ios_version, count(*) AS requests
FROM (VALUES ('Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'), ('Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36')) AS hits(ua)
WHERE useragent.main.ua_os(ua) = 'iOS'
GROUP BY ios_version
ORDER BY ios_version

Uses ua_os_versionua_os

10 more examples in the Catalog, each listed under the table or function it uses.

User agents is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.