API Tester
Test REST APIs from your browser with custom methods, headers, query parameters and bodies. See status, timing, headers and the response body.
How to use this tool
Steps for using the API Tester.
- Pick a method and enter an absolute URL — or click one of the Examples, or click Import cURL at the top to paste a command from DevTools or API docs. Use
{{variables}}such as{{baseUrl}}and choose an environment (Development, Staging, Production) at the top; edit values with Variables. - Add query parameters in Params (with a Description column and Bulk Edit), auth in Auth (Bearer, Basic or API key), headers in Headers and, for POST, PUT and PATCH, a JSON, form or text Body. Pre-request sets extra variables like
{{$randomUUID}}just before sending. - Add checks in Tests — status code, response time, a header or a JSON path value. They run after every send.
- Press Send or Ctrl/⌘ + Enter (the arrow next to Send can also download the response). Read the status, time, size and received time, then switch between Body (Pretty, Raw or Preview, with search, wrap and foldable JSON), Headers, Cookies and Tests.
- Click Save Request to keep it in a collection, reopen earlier calls from Request History, and use Code or Export as cURL to copy the request as cURL, fetch, Axios, Python, Go or PHP.
Example
Copy a POST request as cURL
POST https://jsonplaceholder.typicode.com/posts
Content-Type: application/json
Authorization: Bearer abc123
{"title":"It's here"}curl -X POST 'https://jsonplaceholder.typicode.com/posts' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer abc123' \
--data-raw '{"title":"It'\''s here"}'Common use cases
- Checking that a public or staging endpoint returns the expected status and JSON shape before wiring it into a front-end.
- Reproducing a bug report by replaying a request with the same headers, query parameters and body.
- Calling internal or partner APIs that block browser requests with CORS.
- Trying a bearer token or API key against a staging server on the public internet.
- Turning a request built here into a cURL command to share with a teammate or paste into a ticket.
How the API Tester sends requests (and why there are no CORS errors)
When you press Send, the request — method, URL, headers and body, including any tokens — goes to the Koducat server, which sends it to the API and passes the full response back to the page. Nothing that passes through is stored or logged, and analytics only records that a request was sent and whether it succeeded — never the URL, headers or body. Your request history, saved collections and environments are kept in this browser's local storage, not on our servers; auth values are never written to history and are only saved with a collection if you choose Include auth values.
Sending from a server is what removes CORS errors. Browsers only let a page read a response from another site when that site allows it with Access-Control-Allow-Origin (and, for requests with custom headers like Authorization or methods like PUT and DELETE, a successful preflight OPTIONS request). Many internal APIs only allow their own front-end, so the same call that works in cURL or Postman fails in a browser. Servers aren't subject to CORS, so here it works like cURL does — and because it isn't a browser request, plain http:// APIs aren't blocked as mixed content either.
For safety, the server only calls public internet addresses — private and cloud metadata addresses are refused, and every redirect is checked again. Requests to your own computer or network — localhost, private IPs (10.x, 172.16–31.x, 192.168.x), local names such as myserver, printer.local or api.internal — are instead sent straight from your browser, which can reach them; they never touch our server, so the API must allow this site with CORS, and from this https:// page browsers only allow plain http:// to localhost and 127.0.0.1. If a public-looking host turns out to resolve to a private address, our server refuses it without contacting it and the request is automatically re-sent from your browser. Requests are rate-limited, bodies are limited to 1 MB and responses to 5 MB, and redirects are followed automatically (up to five; Authorization and Cookie headers are not sent to a different site).
On the response side, the status code is colour-coded by class (2xx success, 3xx redirect, 4xx client error, 5xx server error). Time is measured in your browser from pressing Send until the whole response arrives, so for server-relayed requests it includes the trip to our server as well as DNS, TLS, the API's processing time and the download. Size is the byte length of the decoded body. For server-relayed requests every response header is shown, including Set-Cookie (cookies are not stored); for local requests sent from your browser, only headers the API exposes through CORS are visible. JSON bodies are detected from the Content-Type (or a body that starts with { or [) and pretty-printed; everything else is shown raw. See the guide to testing a REST API for a step-by-step walkthrough.
Limitations
- Requests to
localhostand private networks are sent from your browser, so the API must allow CORS from this site, and plain http:// only works forlocalhostand127.0.0.1. When that isn't possible, use Copy as cURL and run the command on your machine. - Requests are rate-limited; request bodies are limited to 1 MB and responses to 5 MB.
- Connection-level headers — Host, Content-Length, Connection, Transfer-Encoding and Proxy-* — are set by the server for each request; any you add are left out. All other headers, including Cookie, Origin and Referer, are sent as entered.
- Bodies are sent as JSON, URL-encoded form fields or text — multipart file uploads and binary bodies are not supported. Binary responses are shown as text.
- History (the last 50 requests), collections and environments are stored in this browser only — they don't sync between devices. Use Export collections in the … menu to move them, and Delete all saved data on a shared computer.
- Redirects are followed automatically (the final URL is shown).
Frequently asked questions
Why does my request fail here but work in Postman or cURL?
Requests here are sent by the Koducat server, so CORS doesn't apply — they behave like cURL. If a request still fails, check the error: for hosts on your own network, the request goes from your browser and needs CORS, the URL or token may be wrong, or the API may be rejecting requests from outside its network.
Is my API key or token sent anywhere else?
The Koducat server forwards your request — including any token — to the API you enter and returns the response. It isn't stored or logged on our server, and analytics never includes URLs, headers or bodies. In your browser, history never includes auth values, and a saved request only keeps them if you tick Include auth values; environment variables you enter are stored locally. The token is of course sent to the API you call, so only use credentials you'd trust that API with.
Can I test an API running on localhost?
Yes. Requests to localhost, 127.0.0.1, private network addresses and local names (such as myserver or nas.local) are sent straight from your browser instead of our server, so they can reach your machine and network. Your API needs to allow this site with CORS (Access-Control-Allow-Origin, and in Chrome Access-Control-Allow-Private-Network). Plain http:// works for localhost and 127.0.0.1; other private addresses need https://, or use Copy as cURL and run the command in a terminal.
Can I see all the response headers?
For requests relayed by our server, yes — every header the API returns is shown, including Set-Cookie. For local requests sent from your browser, only headers the API exposes through CORS are visible. Paste them into the HTTP Header Inspector for an explanation of each one.
Why is the body editor disabled for GET?
The Fetch standard does not allow a body on GET or HEAD requests, and browsers throw an error if you try. Put data in query parameters instead, or switch to POST, PUT or PATCH.
How do I turn this request into code?
Click Copy as cURL, then paste the command into the cURL to Code converter to get JavaScript fetch, Axios, Python or Go. The cURL to JavaScript guide explains the mapping.