Skip to main content

API Tester

Server-processed
API reference

Send HTTP requests online — GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS with custom headers and a JSON, form or text body — and see the status, timing, response headers and pretty-printed body, plus the matching cURL command.

Input

One per line as Name: value. Host, Content-Length and other transport headers are set automatically.

Output

Response
PropertyValue
No data yet
Response body
Response headers
HeaderValue
No data yet
cURL command
 
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/api-tester \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "GET",
    "url": "https://httpbin.org/get",
    "headers": "Accept: application/json",
    "followRedirects": "true",
    "prettyPrint": "true"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `api-tester` tool (API Tester) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

Send an HTTP request online

The API Tester sends a real HTTP request to any public URL and shows you what came back. Pick a method, type the URL, add headers and a body if the endpoint needs them, and press Send request. You don't need to install Postman, write a script or open a terminal, and you don't need an account.

It's useful when you want to:

  • check that a REST endpoint answers and returns the JSON you expect
  • try a POST, PUT or PATCH with a JSON or form body before you write the client code
  • see which status code, Cache-Control or CORS headers an API really sends
  • fire a test payload at a webhook receiver
  • show a teammate exactly what a request returns, with a cURL command they can rerun

What you get back

  • Response: the status code, the final URL, how many redirects were followed, the response time, the body size and the Content-Type. If you sent a body without a Content-Type header, it also shows the type that was added for you.
  • Response body: the body as text. JSON is pretty-printed with two-space indentation, so nested objects are easy to read. Turn Pretty-print JSON responses off to see the bytes exactly as the server sent them. Binary responses such as images are summarized rather than dumped. Bodies over 1 MB are cut off, and the summary says so.
  • Response headers: every header the server sent. Copy them, or download them as a CSV.
  • cURL command: the same request as a curl command, ready to paste into a terminal, a README or a bug report.

Methods, headers and bodies

The tester supports GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS. Write headers one per line as Name: value, for example Authorization: Bearer <token> or Accept: application/json. Lines that start with # are ignored, so you can comment one out without deleting it. Host, Content-Length, Transfer-Encoding, Connection and other transport headers are set automatically and can't be overridden.

The body field appears for methods that can carry one. If you don't set a Content-Type header, the tester picks one from the body itself: application/json for valid JSON, application/x-www-form-urlencoded for name=value&other=value pairs, application/xml for markup and text/plain for anything else. The body can be up to 64 KB.

How redirects are handled

With Follow redirects on, the tester follows up to 10 hops, the way curl -L and browsers do. A 303, or a 301/302 answering a POST, becomes a GET without the body. A 307 or 308 keeps the method and the body. When a redirect leaves the original site, Authorization and Cookie headers are dropped so your credentials aren't handed to another host. Turn following off to see the redirect response itself, including its Location header.

Is it safe to paste an API key?

The request is sent from our server, not your browser, because browsers block reading another site's response (CORS). Your headers and body are used for that one request and aren't stored. Share links for this tool include the URL and options, but never the headers or body. If a key is sensitive, use a test key or rotate it afterwards, as you would with any third-party tool. Only public addresses can be reached: localhost, private networks and cloud metadata addresses are refused.

Why does the response differ from what my app gets?

The request comes from our server's IP address with no cookies, using the iotools user agent unless you set your own User-Agent header. APIs may answer differently depending on the region, the user agent, rate limits or a session cookie your app sends. If you only need the headers of a page, use the HTTP Header Checker, which also reviews security headers. To turn a request you've already written into code for your language, paste it into the cURL to Code Converter.

http request onlinerest clienthttp clientpostman alternativetest endpointsend post requestcurl onlinewebhook testjson api

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.