# request to fetch, undici or got: What to Do | gen2.dev

> The request npm package has been fully deprecated since February 11, 2020. Node now has fetch built in, and got publishes a guide for request users.

Source: https://gen2.dev/successors/request/

---

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.](https://gen2.dev/img/successor-request.png)

Status of the old tool

Deprecated

Effort to move

Mechanical

gen2.dev's view

Move now

Sources checked

2026-11-28

## Key facts

Gen 1

![request logo](https://gen2.dev/icons/tech/request.png)request, the npm package

Gen 2

![Node.js logo](https://gen2.dev/icons/tech/node.png)fetch built into Node.js, undici or got

Kind of tool

[Backend frameworks and APIs](https://gen2.dev/successors/backend/)

Status of Gen 1

Deprecated 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 move

Mechanical: same ideas, different calls

What breaks

request 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 checked

2026-11-28, [5 sources](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![request logo](https://gen2.dev/icons/tech/request.png)Gen 1

![Node.js logo](https://gen2.dev/icons/tech/node.png)Gen 2

Package

[request](https://www.npmjs.com/package/request)

[undici](https://www.npmjs.com/package/undici)

Latest version

2.88.2

8.14.0

Latest release

Feb 11, 2020

Nov 27, 2026

First release

Jan 22, 2011

Jul 26, 2018

License

Apache-2.0

MIT

Downloads, last week

13,206,421

326,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](https://gen2.dev/guide/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](https://github.com/request/request) - 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)](https://github.com/request/request/issues/3142) - The maintenance mode proposal and its reasons, written by the package's creator.
3.  [Global objects: fetch - Node.js API documentation](https://nodejs.org/api/globals.html) - 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](https://nodejs.org/en/learn/getting-started/fetch) - 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](https://github.com/sindresorhus/got/blob/main/documentation/migration-guides/request.md) - Option renames, removed options and behavior changes for request users moving to got.
6.  [request - npm](https://www.npmjs.com/package/request) - latest version, release dates, license and last week's downloads, read on November 29, 2026
7.  [undici - npm](https://www.npmjs.com/package/undici) - 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.

## How to do the move

The pattern that fits this kind of replacement:

[Branch by abstraction](https://gen2.dev/guide/branch-by-abstraction/)

[All successor entries](https://gen2.dev/successors/)

## More in Backend frameworks and APIs

-    [![Adobe ColdFusion logo](https://gen2.dev/icons/tech/coldfusion.png) Adobe ColdFusion to serverless functions Still active A real project Move when convenient](https://gen2.dev/successors/coldfusion/)
-    [![Apache Struts 1 logo](https://gen2.dev/icons/tech/struts-1.png) Apache Struts 1 to Spring Boot Abandoned A real project Move now](https://gen2.dev/successors/struts-1/)
-    [![ASP.NET Web Forms logo](https://gen2.dev/icons/tech/aspnet-web-forms.png) ASP.NET Web Forms to Blazor Maintenance only A real project Leave it](https://gen2.dev/successors/aspnet-web-forms/)
-    [![Classic ASP logo](https://gen2.dev/icons/tech/classic-asp.png) Classic ASP to ASP.NET Core Still active A real project Move when convenient](https://gen2.dev/successors/classic-asp/)
-    [![Log4j 1 logo](https://gen2.dev/icons/tech/log4j-1.png) Log4j 1 to Log4j 2 Abandoned Mechanical Move now](https://gen2.dev/successors/log4j-1/)
-    [![REST logo](https://gen2.dev/icons/tech/rest.png) REST to GraphQL or gRPC Still active A real project Leave it](https://gen2.dev/successors/rest/)
-    [![WCF logo](https://gen2.dev/icons/tech/wcf.png) WCF to ASP.NET Core Maintenance only A real project Leave it](https://gen2.dev/successors/wcf/)
-    [![Zend Framework logo](https://gen2.dev/icons/tech/zend-framework.png) Zend Framework to Laminas, Laravel or Symfony Abandoned A real project Move now](https://gen2.dev/successors/zend-framework/)

[All backend frameworks and apis](https://gen2.dev/successors/backend/)
