API & Web Processed locally

HTTP Request Snippet Generator

Describe an HTTP request as JSON (method, url, headers, query, auth, body) and generate a client snippet — cURL, Browser Fetch, Node fetch, Axios, Python requests, or a Playwright API test. The request is validated (missing url, duplicate headers, body vs method, raw credentials) and template variables are surfaced. Runs in your browser; nothing is uploaded.

Auto-generates as you type. Ctrl+Enter to re-run.

How to use the Request Snippet Generator

Describe an HTTP request as a JSON spec — URL, method, headers, query, auth, and body — then export a client snippet: cURL, fetch, Node fetch, Axios, Python requests, or a Playwright API test. Useful for documenting an API, creating a reproducible request recipe for a bug report, or porting an example between languages. Runs locally; URL, headers, and body never leave your browser.

What it does

When to use it

How to use it

  1. Write the request as a JSON spec (or start from the sample).
  2. Set headers, auth, and a body via the spec fields (headers, auth, bodyType/body).
  3. Pick the target — cURL, fetch, Axios, Python, or Playwright.
  4. Open the Validation tab to catch issues and the Env vars tab to review template variables.
  5. Copy the snippet straight into your terminal, code, or test suite.
  6. For a cURL command as input, use the cURL Converter; for OpenAPI sources use the OpenAPI Client Snippets.

Tips & pitfalls

FAQ

Runs locally in your browser. No uploads. Use Mask secrets to redact token-shaped values before sharing.

Related guides