HTTP request generator

Build an HTTP request and get it as cURL, fetch, Axios, PHP or Python code.

  • Development
  • 100% free & unlimited
  • No sign-up
  • Runs in your browser
HTTP request generator
One header per line: Name: value.
For a form body: one field per line, name=value.

What is the http request generator?

The HTTP request generator builds the code for an API call in five languages at once: a cURL command, JavaScript with fetch and with Axios, PHP with cURL and Python with requests. Set the method, URL, headers and a JSON, form or raw body.

It's the quickest way to turn API documentation into working code, or to share a request with a teammate who uses another language.

How to use the http request generator

  1. 1Choose the method and enter the URL.
  2. 2Add headers and a body if needed.
  3. 3Copy the code in your language.

Features

Five snippets

cURL, fetch, Axios, PHP and Python.

JSON and form bodies

Encoded correctly, with the Content-Type.

Live

The code updates while you type.

Highlighted

Every snippet in a code editor.

Frequently asked questions

Is the request sent?

No, the tool only writes the code. Use the webhook tester to see a real request.

How are quotes escaped in cURL?

The values are wrapped in single quotes and inner quotes are escaped for Bash.

Can I add authentication?

Yes, add an Authorization header such as Bearer YOUR_TOKEN.