# axios

> Promise based HTTP client for the browser and node.js

Source: https://talira.ai/catalog/axios-0sg488rd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- API: yes[^1]
- Creator: Matt Zabriskie

axios is a promise-based HTTP client for JavaScript with one API in browsers (XMLHttpRequest or fetch) and in Node.js (its http module). It adds interceptors for requests and responses, request and response transforms, automatic JSON handling, cancellation, multipart and URL-encoded form serialization, upload and download progress, and client-side XSRF protection. Adapters decide how requests are sent (`xhr`, `http`, or `fetch` since 1.7.0) and can be replaced with your own, which also helps in tests. It includes [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) definitions and installs with npm, yarn, [pnpm](https://talira.ai/catalog/pnpm-b9z8sye0.md), [Bun](https://talira.ai/catalog/bun-z64kv5wg.md) or Deno.

## Links

- Website: https://axios-http.com
- GitHub: https://github.com/axios/axios
- Docs: https://axios-http.com/docs/intro

## Problems it solves

- make HTTP requests from the browser and from Node.js with the same code
- add an auth token header to every API request in one place
- log or modify every request and response my frontend sends to the backend
- cancel an in-flight request when the user navigates away or types again
- show an upload progress bar while sending a big file from the browser
- send multipart file uploads or form data from JavaScript without building the body by hand
- set a timeout on HTTP calls so a slow API doesn't hang my app
- I want HTTP error status codes to throw instead of checking response.ok every time
- create a preconfigured API client with a base URL and default headers
- limit upload or download speed in a Node.js script
- send an XSRF token header with browser requests to guard against cross-site request forgery
- stub out network calls in tests by swapping how requests are sent

## Features

- XMLHttpRequest and fetch in browsers, http module in Node.js
- Promise API with async/await
- request and response interceptors
- request and response data transforms
- cancellation with AbortController
- automatic JSON serialization and parsing
- multipart/form-data and URL-encoded serialization
- upload and download progress events
- upload and download rate limits in Node.js
- client-side XSRF protection
- replaceable adapters (xhr, http, fetch, or your own)
- instances with base URL, headers and timeouts
- experimental HTTP/2 in the Node.js adapter
- TypeScript definitions and an isAxiosError type guard

## Limitations

- HTTP/2 support is experimental: only the Node.js http adapter has it, and behaviour depends on the runtime and Node.js version[^1]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Matt Zabriskie

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Got](https://talira.ai/catalog/got-0csab4w7.md): Human-friendly and powerful HTTP request library for Node.js
- [SuperAgent](https://talira.ai/catalog/superagent-b9qa7pyb.md): Ajax for Node.js and browsers (JS HTTP client)
- [Ky](https://talira.ai/catalog/ky-7jhb33p5.md): Tiny & elegant JavaScript HTTP client based on the Fetch API
- [ofetch](https://talira.ai/catalog/ofetch-brxwg7d2.md): A better fetch API. Works on node, browser, and workers.
- [node-fetch](https://talira.ai/catalog/node-fetch-f6wxdep8.md): A light-weight module that brings the Fetch API to Node.js
- [undici](https://talira.ai/catalog/undici-kmdjat1w.md): An HTTP/1.1 client, written from scratch for Node.js

## Sources

[^1]: https://github.com/axios/axios (checked 20 Nov 2026)
[^2]: https://github.com/axios/axios/blob/v1.x/LICENSE (checked 20 Nov 2026)
