Free Online API Tester
Send HTTP requests to any REST or GraphQL API right in your browser: headers, auth, JSON, form and file bodies, cURL import and code snippets. Test localhost APIs too. Free, no sign-up, nothing to install.
Enter a URL and press Send.
Ctrl/⌘ + Enter sends from anywhere on the page. Paste a cURL command into the URL box to fill in the whole request.
Everything you need to test an API
Any method
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS and custom methods.
Every body type
JSON, XML, text, URL-encoded and multipart forms with files, binary files and GraphQL.
Auth built in
Bearer token, Basic auth, API key in a header or query, custom header and OAuth 2.0.
Readable responses
Collapsible JSON with search, raw view, HTML / image / PDF preview, headers, cookies and timing.
cURL in, code out
Paste a cURL command to fill the request; copy it as cURL, fetch, axios, Python, Go or PHP.
Localhost too
Send from your browser or the HitAPI extension to reach APIs on your machine.
How to test an API online
1 Enter the URL
Pick the method and type the API URL, or paste a cURL command and the whole request fills in.
2 Add what the API needs
Query params, headers, a JSON / form / file / GraphQL body and auth (Bearer, Basic, API key, OAuth 2.0).
3 Choose where to send from
HitAPI cloud for public APIs, this browser or the HitAPI extension for localhost.
4 Send and read the response
Status, time and size, JSON you can search and fold, headers, cookies and timing. Copy it as code when it works.
Three ways to send a request
HitAPI cloud
Public APIs, with no CORS errors. Runs on HitAPI's servers.
Public URLs only · 15 s · 2 MB
This browser
APIs on localhost or your network that allow CORS.
Browsers hide some headers and cookies
HitAPI extension
Anything: localhost, no CORS limits, Cookie and Origin headers.
Needs the free Chrome extension
Testing an API on your own machine? Add the free HitAPI extension to Chrome and choose "HitAPI extension": no CORS errors and no proxy.
From one request to automated API tests
The same tester is in the HitAPI Chrome extension, with collections, environments and {{variables}}, tests on every response, scenarios that chain requests, scheduled runs and a CLI for CI. Or import your OpenAPI spec and let HitAPI write the tests for you with AI.
Frequently asked questions
Is the HitAPI online API tester free?
Yes. Every feature on this page is free and needs no account: any HTTP method, headers, Bearer / Basic / API key / OAuth 2.0 auth, JSON, XML, form, file and GraphQL bodies, cURL import and code snippets. Sign in only if you want a higher rate limit.
Can I test an API running on localhost?
Yes. Choose "This browser" to send the request straight from your browser (your API must allow CORS), or install the free HitAPI Chrome extension and choose "HitAPI extension": it reaches localhost and private networks with no CORS limits. HitAPI cloud only reaches public URLs.
Why do I get a CORS error, and how do I avoid it?
Browsers block a web page from reading another site's API unless that API sends CORS headers. Send the request with "HitAPI cloud" (it runs on HitAPI's servers, where CORS doesn't apply) or with the HitAPI extension.
Do you store or log my requests?
No. Your request, its tokens and the response stay in your browser. When you use HitAPI cloud, the request passes through HitAPI's servers to reach the API, and its headers, body and response are not stored or logged.
What are the limits?
With HitAPI cloud: 60 requests a minute (300 when signed in), a 15-second timeout, 1 MB request bodies and 2 MB responses, and public URLs only. "This browser" and the HitAPI extension have no HitAPI limits.
Can I paste a cURL command or get code for my request?
Yes. Paste a cURL command (for example from Chrome DevTools "Copy as cURL") into the URL box and the whole request fills in. "Copy as cURL" and "Code" give you the request as cURL, JavaScript fetch, Node.js axios, Python requests, Go or PHP.
Does it work with GraphQL, file uploads and OAuth 2.0?
Yes. Choose GraphQL to send a query with variables, Form data to upload files (multipart), Binary file to send a file as the body, and OAuth 2.0 in the Auth tab: HitAPI gets the access token (client credentials) before the request.