WebmasterID logoWebmasterID
User agents

aiohttp and urllib user agents

aiohttp is an async HTTP client/server library for Python, and urllib is Python's built-in HTTP module. By default each sends a user agent naming the library — an aiohttp token or a Python-urllib token — unless the developer overrides it. Seeing these tokens marks a request as scripted Python traffic rather than a browser.

Partially verified

What this means

Many Python programs make HTTP requests with aiohttp (asynchronous) or the standard-library urllib. Both set a default user agent that names the library when the developer does not override it. urllib's default commonly begins with a Python-urllib token; aiohttp's default includes an aiohttp token.

These are general-purpose libraries, so the traffic could be anything — an internal job, an integration, a scraper, or a monitor. The token tells you the tool, not the intent.

How they appear

Look for the library product token followed by a version, with none of the browser compatibility chain. urllib often shows a Python-urllib token; aiohttp shows an aiohttp token. Because both are trivially overridable, well-built clients frequently replace the default with a custom or browser-like string.

Match on the library token to catch defaults, but do not assume its absence means there is no Python client — a custom user agent can hide it entirely. Treat the string as a claim.

How it appears in analytics and logs

A user agent containing an aiohttp token or a Python-urllib token indicates a script using those Python libraries, not a human browser. It is automation: API access, scraping, integration, or a health check, depending on context.

Diagnostic use case

Identify scripted Python clients built on aiohttp or urllib, separate them from browser traffic, and recognise that a custom user agent may hide either library.

What WebmasterID can help detect

WebmasterID classifies aiohttp and urllib default tokens as scripted, non-browser clients, helping you keep automation out of human analytics without IP-level inspection.

Common mistakes

Privacy and accuracy notes

These tokens identify the HTTP library, not a person. WebmasterID reads them as coarse automation signals and never attaches them to an individual.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.