cURL → Axios

Convert a cURL command into a JavaScript axios request.

Runs entirely in your browser

FAQ

Why axios and not fetch?
axios auto-serializes objects to JSON, throws on non-2xx by default, and works identically in Node and the browser — handy for scripts and back-end code.
Should I install the axios package?
Yes — the emitted snippet starts with import axios from 'axios'. Run `npm install axios` or `pnpm add axios` first.

Related tools