Skip to content

The best axios alternatives

4 tools that do a similar job to axios, 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

axios

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

  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

    got

    Open source · MIT · ★ 15k

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

    Best for: Node.js developers who call web APIs from server-side code; Projects that need built-in retries, advanced timeouts, or pagination helpers

  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

    window.fetch polyfill

    Open source · MIT · ★ 25.8k

    A browser polyfill that adds window.fetch to older browsers that lack it.

    Best for: Front-end developers maintaining web apps that must support older browsers; Teams replacing XMLHttpRequest code with a Promise-based API

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 axios. We don't take payment for placement.