Skip to content
JS
Comparison

axios vs superagent

axios is a promise-based HTTP client for the browser and Node.js, and superagent is an HTTP request library for the browser and Node.js, with the same API in both.

HTTP clientsPackage data 25 Sept 2026
axiosv1.20.0, 26 Aug 2026

Promise-based HTTP client for the browser and Node.js.

$ npm install axios
superagentv10.4.1, 23 Sept 2026

HTTP request library for the browser and Node.js, with the same API in both.

$ npm install superagent
MetricaxiossuperagentDifference
Weekly downloads85,399,82916,110,103axios 5.3x higher
12-month download growth+47%+43%axios +4 pts
Gzip size---
Minified size---
Dependencies49superagent 5 more
Unpacked size1.9 MB592 kBsuperagent 3.3x smaller
Latest release1.20.0, 26 Aug 202610.4.1, 23 Sept 2026superagent 28 days more recent
Releases, last 12 months253axios 22 more
First published29 Aug 201422 Aug 2011superagent 3.0 years earlier
GitHub stars109,21216,636axios 6.6x higher
Open issues480axios 48 more
Open pull requests470axios 47 more
Contributors665--
Commits, last 52 weeks46631axios 15.0x higher
TypeScript typesBundledNoneDiffers
Module formatESM + CommonJSCommonJSDiffers
RuntimesBrowser, Node.js, Deno, BunBrowser, Node.jsOnly axios: Deno, Bun
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

axios85.4m latest weeksuperagent16.1m latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

axios

Major versions
  1. 0.1.029 Aug 2014
  2. 1.0.04 Oct 2022
Last 5 releases
  1. 0.34.016 Sept 2026
  2. 1.20.026 Aug 2026
  3. 1.19.029 Jul 2026
  4. 1.18.122 Jun 2026
  5. 1.18.014 Jun 2026
138 releases in total, 25 in the last 12 months

superagent

Major versions
  1. 0.1.122 Aug 2011
  2. 1.0.011 Mar 2015
  3. 2.0.029 May 2016
  4. 3.0.019 Nov 2016
  5. 4.0.017 Nov 2018
  6. 5.0.228 Mar 2019
  7. 6.0.08 Aug 2020
  8. 7.0.07 Jan 2022
  9. 8.0.024 Jun 2022
  10. 9.0.023 Apr 2024
  11. 10.0.05 Aug 2024
Last 5 releases
  1. 10.4.123 Sept 2026
  2. 10.4.022 Sept 2026
  3. 10.3.06 Jan 2026
  4. 10.2.322 Jul 2025
  5. 10.2.27 Jul 2025
166 releases in total, 3 in the last 12 months
axios

Promise-based, configurable instances with request and response interceptors

superagent

Chainable request builder, callback (.end) or promise (.then / await)

axios
  • Uses XMLHttpRequest in the browser and the Node.js http module on the server.
  • Has a fetch adapter since v1.7.0, used by default when the xhr and http adapters are unavailable.
  • Request and response interceptors can modify or transform data before it is sent or handled.
  • The README gives install commands for npm, Bun and Deno.
superagent
  • Requests are built by chaining methods such as .send() and .set(), then sent with .end() or awaited.
  • Supports both callbacks and promises.
  • Has a plugin system. Browser builds are published in the package's dist folder and on CDNs.
  • Need both ESM and CommonJS entry pointsaxios (axios: ESM + CommonJS; superagent: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfaxios (axios: Bundled; superagent: None)
  • Need to run in Denoaxios (as listed in its README)
  • Need to run in Bunaxios (as listed in its README)
  • Node.js version requirementaxios: none declared; superagent: >=14.18.0 (engines field in package.json)
  • Need the more recent releasesuperagent (10.4.1 on 23 Sept 2026 vs 1.20.0 on 26 Aug 2026)
  • Higher weekly npm downloadsaxios (85.4m vs 16.1m)

Each line is generated from the data above.

Indexability: Indexed: 20 US searches/month across both orderings ("axios vs superagent", "superagent vs axios").