Skip to content

The best got alternatives

4 tools that do a similar job to got, 4 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

got

A Node.js library for making HTTP requests, with retries, timeouts, and JSON support.

  1. 1

    ky

    Open source · MIT · ★ 17.1k

    A tiny HTTP client for JavaScript that wraps the Fetch API with simpler calls and error handling.

    Best for: JavaScript or TypeScript developers who already use fetch and want less boilerplate; Projects that call a REST API and want JSON parsing and error handling in one call

  2. 2

    axios

    Open source · MIT · ★ 109k

    A promise-based HTTP client that works in both browsers and Node.js.

    Best for: JavaScript developers calling REST or other HTTP APIs from a browser front end; Node.js developers who want one HTTP client API across client and server code

  3. 3

    superagent

    Open source · MIT · ★ 16.6k

    A small JavaScript library for making HTTP requests in Node.js and browsers.

    Best for: JavaScript developers who want one HTTP client API that works in both Node.js and browsers; Projects that need to call web APIs with JSON request bodies and custom headers

  4. 4

    cpp-httplib

    Open source · MIT · ★ 17k

    A single-header C++11 library for building HTTP/HTTPS servers and clients.

    Best for: C++ developers who need a simple embedded HTTP server or client without a large framework; Projects that want to avoid a complex build setup by using a single header file

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to got. We don't take payment for placement.