axios
Promise based HTTP client for the browser and node.js
File Explorer
Download Latest Version (.zip)- devcontainer.json
- bundle-size.yml
- lockfile-lint.yml
- moderator.yml
- publish.yml
- release-branch.yml
- run-ci.yml
- verify-build-reproducibility.yml
- zizmor.yml
- CODEOWNERS
- copilot-instructions.md
- dependabot.yml
- FUNDING.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- commit-msg
- index.ts
- style.css
- config.mts
- search.mts
- tokenizeSearchText.js
- tokenizeSearchText.test.js
- sponsors.json
- adapters.md
- api-reference.md
- authentication.md
- cancellation.md
- config-defaults.md
- create-an-instance.md
- error-handling.md
- fetch-adapter.md
- file-posting.md
- header-methods.md
- headers.md
- html-form-processing.md
- http2.md
- interceptors.md
- multipart-form-data-format.md
- progress-capturing.md
- promises.md
- rate-limiting.md
- request-config.md
- request-method-aliases.md
- response-schema.md
- retry.md
- testing.md
- type-script.md
- x-www-form-urlencoded-format.md
- commonjs.md
- typescript.md
- features.md
- first-steps.md
- upgrade-guide.md
- security.md
- semver.md
- sponsors.md
- index.md
- adapters.md
- api-reference.md
- authentication.md
- cancellation.md
- config-defaults.md
- create-an-instance.md
- error-handling.md
- fetch-adapter.md
- file-posting.md
- header-methods.md
- headers.md
- html-form-processing.md
- http2.md
- interceptors.md
- multipart-form-data-format.md
- progress-capturing.md
- promises.md
- rate-limiting.md
- request-config.md
- request-method-aliases.md
- response-schema.md
- retry.md
- testing.md
- type-script.md
- x-www-form-urlencoded-format.md
- commonjs.md
- typescript.md
- features.md
- first-steps.md
- upgrade-guide.md
- security.md
- semver.md
- sponsors.md
- index.md
- adapters.md
- api-reference.md
- authentication.md
- cancellation.md
- config-defaults.md
- create-an-instance.md
- error-handling.md
- fetch-adapter.md
- file-posting.md
- header-methods.md
- headers.md
- html-form-processing.md
- http2.md
- interceptors.md
- multipart-form-data-format.md
- progress-capturing.md
- promises.md
- rate-limiting.md
- request-config.md
- request-method-aliases.md
- response-schema.md
- retry.md
- testing.md
- type-script.md
- x-www-form-urlencoded-format.md
- commonjs.md
- typescript.md
- features.md
- first-steps.md
- upgrade-guide.md
- security.md
- semver.md
- sponsors.md
- @splidejs+splide+4.1.4.patch
- android-chrome-192x192.png
- android-chrome-512x512.png
- apple-touch-icon.png
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- logo-light.svg
- logo.svg
- site.webmanifest
- words-light.svg
- words.svg
- process-sponsors.js
- selectLatestSponsorsBySlug.js
- utils.js
- adapters.md
- api-reference.md
- authentication.md
- cancellation.md
- config-defaults.md
- create-an-instance.md
- error-handling.md
- fetch-adapter.md
- file-posting.md
- header-methods.md
- headers.md
- html-form-processing.md
- http2.md
- interceptors.md
- multipart-form-data-format.md
- progress-capturing.md
- promises.md
- rate-limiting.md
- request-config.md
- request-method-aliases.md
- response-schema.md
- retry.md
- testing.md
- type-script.md
- x-www-form-urlencoded-format.md
- commonjs.md
- typescript.md
- features.md
- first-steps.md
- upgrade-guide.md
- security.md
- semver.md
- sponsors.md
- index.md
- favicon.ico
- index.md
- package-lock.json
- package.json
- site.webmanifest
- index.html
- server.js
- index.html
- index.html
- index.html
- server.js
- index.html
- server.js
- index.html
- server.js
- index.html
- index.html
- server.js
- improved-network-errors.md
- network_enhanced.js
- README.md
- server.js
- adapters.js
- fetch.js
- http.js
- README.md
- xhr.js
- CanceledError.js
- CancelToken.js
- isCancel.js
- Axios.js
- AxiosError.js
- AxiosHeaders.js
- buildFullPath.js
- dispatchRequest.js
- InterceptorManager.js
- mergeConfig.js
- methodList.js
- README.md
- setFormDataHeaders.js
- settle.js
- transformData.js
- index.js
- transitional.js
- FormData.js
- data.js
- README.md
- AxiosTransformStream.js
- AxiosURLSearchParams.js
- bind.js
- buildURL.js
- callbackify.js
- combineURLs.js
- composeSignals.js
- cookies.js
- deprecatedMethod.js
- estimateDataURLDecodedBytes.js
- formDataToJSON.js
- formDataToStream.js
- fromDataURI.js
- Http2Sessions.js
- HttpStatusCode.js
- isAbsoluteURL.js
- isAxiosError.js
- isURLSameOrigin.js
- normalizeURLForProtocolCheck.js
- null.js
- parseHeaders.js
- parseProtocol.js
- progressEventReducer.js
- readBlob.js
- README.md
- resolveConfig.js
- sanitizeHeaderValue.js
- shouldBypassProxy.js
- speedometer.js
- spread.js
- throttle.js
- toFormData.js
- toURLEncodedForm.js
- trackStream.js
- validator.js
- ZlibHeaderTransformStream.js
- Blob.js
- FormData.js
- URLSearchParams.js
- index.js
- utils.js
- Buffer.js
- FormData.js
- URLSearchParams.js
- index.js
- index.js
- axios.js
- utils.js
- client.html
- client.js
- server.js
- axios-build-instance.js
- adapter.browser.test.js
- basicAuth.browser.test.js
- cancel.browser.test.js
- cancelToken.browser.test.js
- cookies.browser.test.js
- defaults.browser.test.js
- formdata.browser.test.js
- headers.browser.test.js
- instance.browser.test.js
- interceptors.browser.test.js
- isURLSameOrigin.browser.test.js
- options.browser.test.js
- progress.browser.test.js
- promise.browser.test.js
- requests.browser.test.js
- settle.browser.test.js
- toFormData.browser.test.js
- transform.browser.test.js
- xsrf.browser.test.js
- cjs-added-types.ts
- cjs-is-cancel-typing.ts
- cjs-typing.ts
- fixture.cjs
- run-command.cjs
- ts-require-default.ts
- ts-require.ts
- fixture-cleanup.module.test.cjs
- ts-require-default.module.test.cjs
- ts-require.module.test.cjs
- typings.module.test.cjs
- package-lock.json
- package.json
- esm-added-types.ts
- esm-functions.ts
- esm-index.ts
- fixture.js
- run-command.js
- fixture-cleanup.module.test.js
- ts.module.test.js
- typings.module.test.js
- package-lock.json
- package.json
- vitest.config.js
- browser.setup.js
- server.js
- cancel.smoke.test.ts
- error.smoke.test.ts
- fetch.smoke.test.ts
- formData.smoke.test.ts
- headers.smoke.test.ts
- http.smoke.test.ts
- import.smoke.test.ts
- interceptors.smoke.test.ts
- progress.smoke.test.ts
- timeout.smoke.test.ts
- bun.lock
- package.json
- auth.smoke.test.cjs
- basic.smoke.test.cjs
- cancel.smoke.test.cjs
- error.smoke.test.cjs
- fetch.smoke.test.cjs
- files.smoke.test.cjs
- formData.smoke.test.cjs
- headers.smoke.test.cjs
- http2.smoke.test.cjs
- import.smoke.test.cjs
- instance.smoke.test.cjs
- interceptors.smoke.test.cjs
- progress.smoke.test.cjs
- rateLimit.smoke.test.cjs
- timeout.smoke.test.cjs
- urlencode.smoke.test.cjs
- package-lock.json
- package.json
- cancel.smoke.test.ts
- error.smoke.test.ts
- fetch.smoke.test.ts
- headers.smoke.test.ts
- import.smoke.test.ts
- deno.json
- deno.lock
- auth.smoke.test.js
- basic.smoke.test.js
- cancel.smoke.test.js
- error.smoke.test.js
- fetch.smoke.test.js
- files.smoke.test.js
- formData.smoke.test.js
- headers.smoke.test.js
- http2.smoke.test.js
- import.smoke.test.js
- instance.smoke.test.js
- interceptors.smoke.test.js
- progress.smoke.test.js
- rateLimit.smoke.test.js
- timeout.smoke.test.js
- urlencode.smoke.test.js
- package-lock.json
- package.json
- vitest.config.js
- adapters.test.js
- axios.png
- cert.pem
- errorDetails.test.js
- fetch.test.js
- http.test.js
- key.pem
- xhr.test.js
- canceledError.test.js
- isCancel.test.js
- Axios.test.js
- AxiosError.test.js
- buildFullPath.test.js
- dispatchRequest.test.js
- InterceptorManager.test.js
- mergeConfig.test.js
- settle.test.js
- transformData.test.js
- AxiosURLSearchParams.test.js
- bind.test.js
- buildURL.test.js
- combineURLs.test.js
- composeSignals.test.js
- formDataToJSON.test.js
- formDataToStream.test.js
- Http2Sessions.test.js
- HttpStatusCode.test.js
- isAbsoluteURL.test.js
- isAxiosError.test.js
- parseHeaders.test.js
- progressEventReducer.test.js
- resolveConfig.test.js
- shouldBypassProxy.test.js
- spread.test.js
- throttle.test.js
- validator.test.js
- endsWith.test.js
- extend.test.js
- forEach.test.js
- isX.test.js
- kindOf.test.js
- kindOfTest.test.js
- merge.test.js
- toArray.test.js
- toFlatObject.test.js
- trim.test.js
- api.test.js
- axios.test.js
- axiosHeaders.test.js
- composeSignals.test.js
- estimateDataURLDecodedBytes.test.js
- fromDataURI.test.js
- parseProtocol.test.js
- platform.test.js
- prototypePollution.test.js
- query.test.js
- regression.test.js
- syntaxCompat.test.js
- toFormData.test.js
- transformResponse.test.js
- utils.test.js
- README.md
- .gitignore
- .npmrc
- .prettierignore
- .prettierrc
- AGENTS.md
- CHANGELOG.md
- CLAUDE.md
- CODE_OF_CONDUCT.md
- COLLABORATOR_GUIDE.md
- CONTRIBUTING.md
- CONTRIBUTORS.md
- ECOSYSTEM.md
- eslint.config.js
- gulpfile.js
- index.d.cts
- index.d.ts
- index.js
- LICENSE
- MIGRATION_GUIDE.md
- package-lock.json
- package.json
- PRE_RELEASE_CHANGELOG.md
- PRE_RELEASE_DOCS.md
- README.md
- rollup.config.js
- SECURITY.md
- THREATMODEL.md
- tsconfig.json
- tslint.json
- vitest.config.js
- webpack.config.js
# Installation Guide
1. Get the code
git clone https://github.com/axios/axios
Downloads the entire project code from GitHub to your computer.
cd axios
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
$ npm install axios
Downloads and installs the libraries listed in package.json.
$ yarn add axios
Type this command into your terminal and run it.
$ pnpm add axios
Type this command into your terminal and run it.
<script src="https://cdn.jsdelivr.net/npm/axios@1.13.2/dist/axios.min.js"></script>
Type this command into your terminal and run it.
npm ci
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
