How to use
- Paste a curl command, for example from API documentation or from DevTools (right-click a request → Copy as cURL).
- Choose the target: JavaScript
fetch, Pythonrequestsor Gonet/http. - JSON bodies are pretty-printed in the target language.
-Fform uploads,-ubasic auth,-Gquery data and line continuations are all supported.
FAQ
Are environment variables like $API_KEY expanded?
No. They are kept as literal text so you can see where to insert your secret. Replace them with your language’s way of reading environment variables (process.env, os.environ, os.Getenv).
Which curl options are ignored?
Transport options with no direct equivalent, such as --compressed, -s, -v, -o and timeouts, are skipped. -k becomes verify=False in Python.