API Client

Enter a method and URL and press Send: your browser sends the request straight to the API, and you see the status, timing, headers and body. This site’s server relays nothing and never receives what you enter or your credentials.

To turn a curl command into Python, Go or PHP code without sending anything, use curl Converter.

On-deviceNetwork lookupMobile friendly
Request

An http:// or https:// URL. Nothing is sent when the page opens. Only when you press Send does your browser send the request straight to the other server.

Query parameters (added after ? in the URL)
Import from a curl command

Paste a curl command from the browser’s developer tools or a document, and the method, URL, headers and body are filled in above. Nothing is sent.

Response

Press Send and the response appears here.

Copy it (curl / fetch)

The request is not valid, so no code can be made.

History

Only the method, the URL (values of query parameters that look secret are emptied), the headers (those that look like credentials are left out) and the status code are saved. The body and credentials are not. Up to 30 entries.

How to use

  1. Enter the method (GET, POST …) and the URL. Add query parameters and headers in the Query and Headers rows.

  2. If the API needs authentication, enter a Bearer token or Basic credentials under Auth. Choose a JSON, form, text or file body under Body.

  3. Press Send (Ctrl/⌘+Enter also works). The status, time and size show on the right, with formatted JSON or raw text. You can list the headers and save the body.

  4. If you have a curl command, paste it under “Import from a curl command” and the fields are filled in. Under “Copy it” the current request becomes curl or fetch code.

  5. If you reuse the same requests, turn on the history option (secrets are not saved).

What it does

Sends straight from your browser

The request goes from your browser directly to the other server. This site’s server neither relays it nor receives the URL, headers, body or credentials you enter. Opening the page sends nothing; only pressing Send does.

Credentials are not kept

A Bearer token and a Basic password are not saved and never go into the history. They go only into the Authorization header of the request you send. In the code you copy, values that look like credentials are replaced with REDACTED (you can switch that off).

Explains a CORS failure

The browser does not show a page why CORS stopped a request. When one fails, the tool lists the usual causes in order and shows whether the request triggers a preflight (OPTIONS) first. Sending to http://, or from this https page to http://, is warned about before you send.

Responses are shown as text only

The response body is only displayed as text. It is never interpreted as HTML and no script in it runs. JSON can be formatted, and binary is not shown but can be saved. Status, total time, time until the headers arrived and size are shown.

Import and export curl

A curl command is read into the method, URL, query, headers, body and auth. The current request can be exported as curl or JavaScript (fetch) code. The import uses the same parser as the curl code generator.

JSON, form and file bodies

JSON is checked before it is sent. Forms support x-www-form-urlencoded and multipart (with one file), and text or a file can be the body as well. What you send can be up to 20 MB in total.

Use cases

  • Check quickly that an API in development returns the status code and JSON you expect
  • Try a curl example from the documentation as it is, inside the browser
  • Compare how the response changes with and without an Authorization header
  • Narrow down why a call from the browser is blocked (CORS) using what the browser reports
  • Turn a request you tested into curl or fetch code to hand over (credentials hidden)

Capability matrix

FeatureSupportNotes
Send GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONSSupported—
Query, headers, and JSON, form, multipart, text and file bodiesSupported—
Bearer and Basic authenticationSupportedNot saved. Fetching a token with OAuth is not included
Response status, timing, headers, formatted JSON, raw text and saving the bodySupported—
Import curl, and export as curl or fetch codeSupportedA body given as “@file”, or a file field, must be chosen again
Saving a historyPartialOff by default. When on, up to 30 entries without the body and credentials are saved in this browser
Sending to an API that does not allow CORSNot supportedThe browser does not allow it. This site’s server does not relay
Sending and receiving cookies, showing Set-CookieNot supportedRequests go without cookies. The browser hides Set-Cookie
Showing headers CORS does not expose, or changing headers the browser setsNot supportedOrigin, Host, Cookie and others cannot be set
DNS and TLS timing breakdown, HTTP/2 detailsNot supportedOnly the total time and the time until the headers arrived
Long-lived connections such as WebSocket and SSENot supportedUse the dedicated tools

Limits & notes

  • A URL can be up to 2,000 characters. It cannot have a # fragment, and a URL with a user name or password is refused.
  • Up to 30 headers. Headers the browser sets itself (Cookie, Host, Origin, Sec-* …) cannot be set.
  • What you send can be up to 20 MB in total. The first 10 MB of a response is read and the rest is not. The screen shows the first 500,000 characters; saving gives everything that was read.
  • A request with no response after 60 seconds is stopped.
  • Redirects are followed automatically by the browser. The responses in between are not visible.
  • Formatted JSON reads large numbers as JavaScript numbers, so integers with many digits may be rounded.
  • The history, when on, stays only in this browser. It keeps up to 30 entries of method, URL (values of secret-looking query parameters emptied), headers that do not look like credentials, and status code.

Privacy & safety

The only server contacted is the one at the URL you enter. The request goes straight from your browser to it; this site’s server neither relays nor stores it. Credentials are not saved and never go into the history or the analytics. The history is kept in this browser only when you turn it on, without the body and credentials.

FAQ

Why does a CORS error stop my request?
The browser hands a response to the page only when the API allows this page’s Origin with Access-Control-Allow-Origin. An API that does not allow it fails from a browser even if the server is up and curl works. Allow it on the server, or use this on an API that does. The reason is shown in the browser’s developer console.
Can I test any API, like Postman?
No. This runs inside the browser, so it only works with APIs that allow CORS. An API you are building can be tried once you add CORS settings. For one that does not allow it, use curl or another command-line tool.
Are tokens and passwords saved?
No. They disappear when you close the page. Even with the history on, credentials, headers that look like Authorization or API keys, query values that look secret, and the body are left out. Secrets with unusual names cannot be recognised, so never put a real secret in the URL even when using the history.
Is it safe to send to an http:// API?
To localhost or another server on your own machine, yes. An http:// server across the network is not encrypted, so a real key or password could be read on the way, and a warning is shown. The browser blocks a request from this https page to http:// (some browsers let localhost through).
What is a preflight (OPTIONS) request?
For PUT or DELETE, or a request with Authorization or Content-Type: application/json, the browser first sends OPTIONS to ask for permission. The server has to answer with a 2xx and allow the method and headers in Access-Control-Allow-Methods and Access-Control-Allow-Headers. When a request fails, the explanation also shows whether it falls under this.
How is this different from the curl code generator?
This one really sends the request and shows the response. To only convert a curl command into code in another language, or to check what its options mean, use the curl code generator, which sends nothing.

curl Converter

Paste “Copy as cURL” from Chrome or Firefox to see the method, URL, headers, cookies and body in tables, then convert to 15 kinds of code. The request is never sent and everything runs in your browser. Authorization and cookies can be hidden before you share.

No upload

CORS Studio

When the browser blocks a request with a CORS error, paste the request (Origin, method, headers, credentials) and the response headers. The tool says whether the browser allows it and why, header by header, and builds the server settings that allow it.

No upload

OpenAPI Studio — Viewer & Validator

Paste an OpenAPI 3.0 / 3.1 or Swagger 2.0 definition to browse endpoints by tag and schemas as trees, and to check it against the official schemas with line and column. It never calls the API or fetches external files, and nothing leaves your device.

No upload

GraphQL Client

Enter the endpoint URL and a query and press Run: your browser sends it straight to the GraphQL server, and you see data and errors. This site’s server relays nothing and never receives what you enter or your credentials.

WebSocket Client

Enter a ws:// or wss:// URL and press Connect: your browser connects straight to the server, and you can send and log messages. This site’s server relays nothing.

MQTT Client

Enter the URL of an MQTT-over-WebSocket broker (ws:// or wss://) and press Connect: your browser connects straight to the broker and you can subscribe and publish. This site’s server relays nothing. A browser cannot reach plain TCP (port 1883).

Last updated: