WebmasterID logoWebmasterID
User agents

node-fetch and axios user agents

node-fetch and axios are widely used HTTP client libraries for Node.js. By default they send library-style user-agent tokens (node-fetch sets one automatically; axios may send a default or none depending on version and environment). Requests from these libraries are scripts or servers, not human browsers.

Partially verified

What this means

node-fetch is a light implementation of the Fetch API for Node.js; axios is a promise-based HTTP client used in both Node and browser contexts. In Node, both make server-side requests with no rendering engine, so they are not browsers.

node-fetch sets a default user-agent token identifying the library and its version. axios behaviour varies: in Node it has historically sent a default header in some versions and none in others, and developers frequently set a custom User-Agent. Treat any of these as a programmatic client.

How they identify themselves

When defaults are left in place, look for a node-fetch product token (with version) or an axios marker. Because these are easy to override, many real integrations send a custom application user agent instead, and some scrapers deliberately impersonate browsers.

Match on the library token where present, but combine it with behaviour: no Accept-Language, no Sec-CH-UA client hints, no asset/CSS/JS follow-up requests, and a flat request pattern all point to a script rather than a browser.

Allow, rate-limit, or block

Legitimate uses of these libraries include your own backend integrations, partner API calls, and monitoring. Identify those by an explicit custom user agent and, ideally, authentication.

For unwanted scraping that reuses raw defaults, rate-limiting by token plus behaviour is more robust than blocking a single string, since the user agent is trivially changed. Never rely on the user agent alone for access control.

How it appears in analytics and logs

A user agent containing a node-fetch token, or an axios default, indicates a Node.js program making HTTP requests — automation, not a human visit. Many developers also override these defaults, so absence of the token does not rule out a Node client.

Diagnostic use case

Identify server-to-server and scripted traffic from Node.js applications, and distinguish legitimate API integrations from scrapers reusing the same defaults.

What WebmasterID can help detect

WebmasterID classifies node-fetch and axios traffic as script/automation rather than human visits, so API and scraper activity shows up in bot-intelligence rather than inflating human page-view counts.

Common mistakes

Privacy and accuracy notes

These libraries are identified from the user-agent token alone. No human identity is involved — a script is not a person. WebmasterID records such requests as automation, separate from human analytics.

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.