Axios is a promise-based HTTP client for the browser and Node.js with automatic JSON data transformation and request/response interceptors.
Promise-based HTTP client for browsers and Node.js.
- Documentation: https://axios-http.com/docs/intro
- Promise-Based — Clean async/await and .then() chaining patterns.
- Browser and Node.js Support — Works in both environments with automatic adapter selection.
- Automatic JSON Transformation — Automatically serializes and parses JSON.
- Request and Response Interceptors — Add custom logic before requests and responses are handled.
- Request Cancellation — Cancel in-flight requests using AbortController.
- XSRF Protection — Built-in client-side XSRF protection.
- Timeout Support — Configure request timeouts for automatic cancellation.
- Progress Tracking — Track upload and download progress with callbacks.
- REST API Consumption — Consume RESTful APIs from frontend and Node.js applications.
- File Uploads — Upload files with progress tracking.
- Authentication — Add auth tokens and headers via request interceptors.
- Data Fetching — Fetch data in React, Vue, Angular, and other frameworks.
- API Testing — Test API integrations in Node.js scripts and test suites.
- Website: https://axios-http.com
- Documentation: https://axios-http.com/docs/intro
- GitHub: https://github.com/axios/axios
- npm: https://www.npmjs.com/package/axios
- Kin Lane — kin@apievangelist.com