Skip to content

Successor Map · Backend frameworks and APIs

request to fetch, undici or got: the HTTP client that stopped changing

The request package went into maintenance mode in 2019 and was fully deprecated on February 11, 2020. Node.js now has fetch built in, on top of undici, and got covers the cases where a fuller client is wanted.

Slide: request on the left, an arrow, and fetch, undici or got on the right.
Status of the old tool
Deprecated
Effort to move
Mechanical
gen2.dev's view
Move now
Sources checked
2026-11-28

Key facts

Gen 1request, the npm package
Gen 2fetch built into Node.js, undici or got
Kind of toolBackend frameworks and APIs
Status of Gen 1Deprecated The request README says that as of February 11, 2020 the package is fully deprecated and no new changes are expected to land.
Effort to moveMechanical: same ideas, different calls
What breaksrequest is callback-based and its option names differ from every successor, so each call site changes; got also drops the built-in oauth, hawk, aws and proxy options.
Should you move?Move now request makes network calls in production code and its own README says no new changes are expected to land, so a flaw found today stays in place. This is gen2.dev's view, not the maintainers'.
Sources checked2026-11-28, 5 sources

Gen 1 and Gen 2 side by side

npm registry Gen 1 Gen 2
Packagerequestundici
Latest version2.88.28.14.0
Latest releaseFeb 11, 2020Nov 27, 2026
First releaseJan 22, 2011Jul 26, 2018
LicenseApache-2.0MIT
Downloads, last week13,206,421326,541,164

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count. The registry marks the latest request release as deprecated.

What Gen 1 was

request was the HTTP client that Node.js developers reached for by default. One function took a URL or an options object and a callback, and handled redirects, cookies, forms, authentication and streams.

Its creator, Mikeal Rogers, proposed winding it down himself. In an issue opened on March 30, 2019 he wrote that the package should "go into maintenance mode and stop considering new features or major releases." His reasoning was blunt: "The patterns at the core of request are out of date."

The README records how that ended: "As of Feb 11th 2020, request is fully deprecated. No new changes are expected to land."

What replaced it

Mostly, the platform did.

  • fetch. Node.js ships a global fetch, which its documentation describes as a "browser-compatible implementation." It was added in v17.5.0 and v16.15.0, came out from behind its flag in v18.0.0, and stopped being experimental in v21.0.0.
  • undici. The HTTP client underneath that fetch, written from scratch for Node.js. Use it directly when you need connection pools or finer control.
  • got. A third-party client with more built in. It publishes a migration guide written for request users.

What moving involves

Every call site changes, because request is built on callbacks and its successors return promises. The work is repetitive and predictable.

If request is called from many files, put your own HTTP module in front of it, point the callers at that, then replace what is behind it. That is branch by abstraction.

The got guide lists the renames: qs becomes searchParams, strictSSL becomes rejectUnauthorized, gzip becomes decompress, jar becomes cookieJar, and request.defaults becomes got.extend.

What breaks

For got, the guide marks these as breaking:

  • json. "The json option is not a boolean, it's an object."
  • Signing. oauth, hawk, aws and httpSignature are removed. You sign requests in a custom instance.
  • Proxies and agents. proxy, pool, forever and agentOptions are removed. You pass a custom agent.
  • Auth. auth is replaced by username and password.
  • Header names. All header names are lowercased.

With fetch, the difference is more basic. It is a smaller API, so behavior request provided through options becomes code you write or a library you add.

Should you move?

Yes, now. This is code that talks to the network in production, and its own README says no new changes are expected to land. It has been fully deprecated since February 11, 2020.

The exception is a script or internal tool that calls only hosts you control and is not worth touching. For a direct dependency in a running service, schedule the replacement.

Common questions

Is request dead?

It is deprecated. The request README says that as of February 11, 2020 the package is fully deprecated and no new changes are expected to land.

What replaced request?

fetch built into Node.js, undici or got. Effort to move: Mechanical: same ideas, different calls

Should I move off request?

gen2.dev's view: Move now. request makes network calls in production code and its own README says no new changes are expected to land, so a flaw found today stays in place.

Sources

  1. request/request README - GitHub - The deprecation notice dated February 11, 2020, stating that no new changes are expected to land.
  2. Mikeal Rogers - Request's Past, Present and Future, issue 3142 - request/request (March 30, 2019) - The maintenance mode proposal and its reasons, written by the package's creator.
  3. Global objects: fetch - Node.js API documentation - The version history of the built-in fetch and the statement that it is based on undici.
  4. Fetching data with Node.js - nodejs.org - Describes undici as the HTTP client library behind fetch in Node.js, with examples of fetch, pools and streams.
  5. Migration guide: Request to Got - sindresorhus/got on GitHub - Option renames, removed options and behavior changes for request users moving to got.
  6. request - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
  7. undici - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.