API Request Builder

Turn a JSON description of a request into both a fetch() call and a cURL command.

  • 100% Free
  • No account required
  • Runs in your browser
  • No data is uploaded
Not saved automatically

Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.

Saved API Request Builder workspaces

Saved only on this device. Clearing browser data removes your workspaces. Expired saves are removed when this app next checks storage.

No saved workspaces for this tool yet.

No settings needed
JSON to fetch() and cURL

Input

Paste or edit your request JSON, then click “Run tool”.

Type, paste or drop a file
JSON
Ln 1, Col 1Spaces: 2UTF-8124 bytes

Output

fetch() and cURL (read-only).

Read-only
JSON
Ln 1, Col 1Spaces: 2UTF-80 bytes
Ready when you arePaste your input, then press Run tool or ⌘ ↵

Using the API Request Builder

Overview

Turn a JSON description of a request into both a fetch() call and a cURL command.

Describe a request once and get both a fetch() call for code and a cURL command for the terminal.

How to use it

  1. Paste or type your JSON into Input, drop a file onto it, or press Example to load a sample.
  2. Press Run tool, or ⌘ ↵ from anywhere on the page.
  3. Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.

Input

Request JSON.

Output

fetch() and cURL.

  • fetch() and cURL together
  • Headers and JSON body
  • Shell-safe quoting
  • Rejects unsafe methods and URLs

Tips

  • Describe a request as JSON with method, url, headers and body.
  • A generated command is text: read it before you run it.
  • Query parsing accepts a full URL or a bare query string.

Keyboard shortcuts

⌘ ↵
Run the tool
⌘ K
Search every tool
/
Filter the sidebar