API Request Builder
Requests are sent directly from your browser to the target API, including headers and body.
Request configuration
Examples only fill the input. JSONPlaceholder simulates POST requests without saving them.
Response
What is API Request Builder?
Build a browser fetch request from one JSON configuration containing url, method, headers and body. This tool displays the response body as text. It does not display the HTTP status or response headers; use the API Response Explorer when you need those details. Request preparation is local, while sending contacts the target server.
How to use API Request Builder
Choose Example GET to fill the editor without sending anything, then choose Send Request when you are ready. The equivalent configuration is {"url": "https://jsonplaceholder.typicode.com/posts/1", "method": "GET"}. The public JSONPlaceholder example returns the first demo post, including id 1 and userId 1. Replace the URL only with an endpoint you intend to contact.
When is API Request Builder useful?
In this POST example, body is a JSON object, not a pre-encoded request string. The tool applies JSON.stringify before sending it. Keep the Content-Type header consistent with that JSON payload. Multipart file uploads, raw binary bodies and a server-side CORS proxy are not part of this tool.
Example
For a JSON POST, load Example POST or paste {"url": "https://jsonplaceholder.typicode.com/posts", "method": "POST", "headers": {"Content-Type": "application/json"}, "body": {"title": "GhostBladeZero demo", "body": "Example request", "userId": 1}}. Sending it returns a simulated new post with id 101 and the submitted fields. JSONPlaceholder does not save this post: a later GET for /posts/101 does not retrieve a newly created record. A real API can have persistent effects.
Practical notes
A browser CORS policy, an unreachable URL or a rejected request header can cause a fetch error. An HTTP 404 or 500 can still return a visible response body; that body alone does not prove success. Check the status in API Response Explorer. Send credentials only to a trusted destination, and start with harmless test data.