API Code Generator

Enter an API URL and optional body to generate cURL, fetch(), axios, and jQuery code.

Request
Configure method, URL, and body. Code updates as you type.

Optional. Used for POST, PUT, and PATCH. Accepts JSON objects or plain text strings. Leave empty for GET or no body.

Enter a URL

Add an API URL above to generate cURL, fetch(), axios, and jQuery code.