Generated cURL
curl -X GET "https://jsonplaceholder.typicode.com/posts/1" \ -H "Content-Type: application/json"
Building HTTP Requests Visually
The API Request Builder lets you construct HTTP requests without writing code. Choose the method (GET, POST, PUT, etc.), enter the URL, add headers and query parameters, and optionally set a request body. Click Send to execute the request and view the response.
All requests run in your browser using fetch(). CORS applies: cross-origin servers must allow your request. Same-origin and CORS-enabled APIs work fully. The tool also generates a cURL command you can copy and run in a terminal.
Understanding HTTP Methods and Headers
GET retrieves data; POST creates; PUT and PATCH update; DELETE removes. HEAD returns headers only; OPTIONS checks allowed methods. Headers convey metadata: Content-Type specifies body format (application/json for JSON), Authorization carries credentials (Bearer token or Basic auth), and Accept tells the server what format you want in the response.
Query parameters go in the URL after ? (e.g., ?key=value&foo=bar). The body is used for POST, PUT, and PATCH. Choose JSON for most REST APIs, form-data for file uploads, or text for plain content.
Response Inspection and cURL Export
After sending, you see the status code (200, 404, 500, etc.), response headers, and body. Response time helps gauge performance. Use Copy cURL to export the configured request as a curl command. Paste it into a terminal to run the same request outside the browser, bypassing CORS for testing.
Frequently Asked Questions
Related Tools
Explore More Tools
Find this tool useful? Buy us a coffee to keep DuskTools free and ad-light.