What is an API tester?
An API tester lets you send a request to an API — a GET to fetch data, a POST to create something, a PUT to update it, a DELETE to remove it — and see what comes back. You pick the method, type the URL, add headers and a body if the request needs them, and the tester sends it and shows the answer: the status code, the headers, and the body, usually as formatted JSON.
APIs are how programs talk to each other. When an app shows your profile, it asked an API for it. When a site shows the weather, it asked an API for that too. A tester is the tool for asking the same questions by hand, without writing any code — which is how a developer checks whether an API works before building anything on top of it.
This page is the front door to a tester, not a tester itself — and it says so plainly, because the reason matters. Read the next section before you press the button, so you know exactly what happens when you do, and why the request is sent from Hoppscotch instead of from this page.
It runs entirely in your browser. Nothing is uploaded, nothing is stored, and there is no account to create. The URL you test never leaves your device until you send the request yourself from Hoppscotch.
Why API testing opens Hoppscotch instead of running in this page
Testing an arbitrary API in this page would need fetch() to any origin, but the site's CSP only allows specific API origins — a site-wide CSP loosening was not authorised — and browsers block cross-origin fetches (CORS) for most APIs anyway. Those are two separate walls, and both of them stand in the way of an in-page tester, so this page does not pretend it can send the request. It validates your method and URL, then opens Hoppscotch, a free API tester that runs in the browser, where you send the request.
The first wall is the Content Security Policy. A site's CSP lists the origins its pages are allowed to fetch from, and this site's list is deliberately short — it names the specific APIs the site itself uses, and nothing else. Loosening it to allow any origin would let any script on the site fetch from anywhere, which is a security hole, not a feature. The loosening was not authorised, and this page respects that: it does not ask for it, and it does not work around it.
The second wall is CORS, and it belongs to the API, not to this site. A browser will not let a page on one origin read the answer from an API on another origin unless that API sends back a header saying it is allowed. Most public APIs do not send that header for browser requests, because they expect to be called from a server, not from a web page. So even without the CSP, an in-page tester would fail against most APIs — the browser would block the answer, and the tester would show nothing.
Hoppscotch gets around both walls by being the page itself. It is a full API client that runs in your browser, free and open source, with no install and no account needed for basic use. You open it, paste the URL, pick the method, add headers and a body, and send — and because Hoppscotch is a dedicated tool, it handles the request properly, including the cases where a plain page cannot. The button on this page does two things: it checks your method and URL first, and then, if they are valid, it opens Hoppscotch in a new tab.
Methods, URLs, headers, and bodies
The method says what you want to do. GET fetches data and changes nothing — it is the safe one, and the default on this page. POST creates something new, PUT updates something that exists, and DELETE removes it. The four methods on this page are the four that cover almost every API call, and the choice matters: sending a DELETE when you meant a GET is the kind of mistake that cannot be undone.
The URL says where to send it. The default on this page is https://api.github.com/users/octocat — a public API that needs no key, returns a JSON profile for the user 'octocat', and is the standard first request for anyone learning APIs. The page checks the URL before it opens Hoppscotch: it must be a real http or https address, and its host is shown so you can see where the request will go. A URL that is not valid gets 'Not a valid URL', and Hoppscotch does not open — there is nothing to test.
Headers are the extra instructions that travel with a request. The most common is Authorization, which carries the API key or token that proves you are allowed to ask. Others set the format you want back — Accept: application/json — or the format you are sending — Content-Type: application/json. Hoppscotch has a headers tab for these, and most APIs will answer with an error if a required header is missing.
The body is the data you send with a POST or a PUT, usually as JSON. The body box on this page is optional and empty by default, because a GET has no body at all. When you do send one, it is usually an object like {"name": "Viv"} — and a JSON formatter can check that the body is valid JSON before you send it, because an API will reject a broken body without telling you why.
A worked example: checking a public API
Take the default request exactly as it sits on the page: GET https://api.github.com/users/octocat, no body. The page reports 'Valid GET request — ready to test', method GET, host api.github.com. Press the button and Hoppscotch opens in a new tab. Paste the URL, make sure GET is selected, and send — and the answer comes back as JSON, with the user's name, company, and public repository count, and a status of 200, which means the request worked.
Now try a POST. Pick POST, type https://httpbin.org/post, and put {"a": 1} in the body box. The page reports 'Valid POST request — ready to test', method POST, host httpbin.org. In Hoppscotch, paste the URL, pick POST, put the same body in, and send — and httpbin answers with an echo of everything you sent, including the body, so you can check that the request arrived exactly as you meant it. Httpbin is a test service built for exactly this: it answers, and it shows you what it received.
A third case shows what happens with a bad URL. Type 'not a url' into the box and press the button. The page reports 'Not a valid URL', the host row shows a dash, and Hoppscotch does not open — there is nothing to test. That check saves a wasted trip: Hoppscotch would reject the same input, and this page tells you first.
One more check worth doing: send the same GET twice, once with the right URL and once with a typo in the host. The right one returns 200 and the profile. The typo returns an error about the host not being found — and the error is the answer, because it tells you the URL was wrong before the API ever saw it. When a request fails, read the error: it usually says exactly what went wrong.
Who tests APIs, and why
Web developers test APIs every day. Before building a feature on an API, a developer sends a few requests by hand to learn what the API actually returns — not what the documentation says it returns, but what it really sends back, including the fields the documentation forgot. A tester is the tool for that first look.
Testers and QA engineers use an API tester to check an API systematically: every endpoint, every method, every error case. A GET that should return 200, a POST with a missing field that should return 400, a request with a bad key that should return 401 — each one is a test, and the tester is how each test is run by hand before it is automated.
Support staff use a tester to reproduce a customer's problem. A customer says 'the app cannot load my data', and the support engineer sends the same request the app sends, by hand, and reads the answer. If the API returns an error, the problem is the API. If it returns the data, the problem is the app. The tester turns a vague report into a specific one.
Then there are the everyday uses: checking whether a public API is up, trying a new API before signing up for it, or confirming that a key works after it is created. A URL encoder-decoder can help when the URL itself has characters that need encoding, and a Base64 encoder-decoder can help when an API key needs to be encoded for a header.
API tester vs JSON formatter
An API tester and a JSON formatter are neighbours that do different jobs. The tester sends a request and shows the answer. The formatter tidies a piece of JSON so a human can read it. One asks the question, the other reads the answer — and in practice they are used together, because an API's answer is usually JSON, and raw JSON on one line is hard to read.
Use the tester when the question is 'what does this API return?' Use the formatter when the question is 'what does this JSON mean?' The tester gives you the answer; the formatter makes it readable. A tester without a formatter shows you a wall of text; a formatter without a tester has nothing to format.
They also fail differently. A tester fails when the request is wrong — a bad URL, a missing header, a wrong method — and the error tells you what went wrong. A formatter fails when the JSON is broken, and it says so plainly instead of guessing. If a request fails, check the tester first. If the answer looks wrong, check the formatter next.
One more neighbour worth knowing: the random UUID generator makes the unique ids that many APIs want as keys — a fresh id for each test, so no two test requests collide. A tester, a formatter, and a UUID generator together cover most of what anyone does with an API by hand.
Common API testing mistakes
The most common mistake is testing against the live API with real data. A DELETE sent to the live API deletes real data, and a POST creates a real record — and neither can be undone by wishing. Test against a test service such as httpbin first, or against the API's sandbox if it has one, and only touch the live API when you know the request is right.
Second: sending a key in the URL. An API key in a query string ends up in logs, in browser history, and in shared links — and anyone who sees it can use it. Send keys in the Authorization header, where they belong, and never paste a key into a URL. Third: forgetting the Content-Type header on a POST. An API that expects JSON will reject a body sent without Content-Type: application/json, and the error will not always say why.
Fourth: testing only the happy path. A GET that works tells you the API is up; it does not tell you what happens when the id does not exist, when the key is wrong, or when a required field is missing. Test the errors too — a 404 for a missing id, a 401 for a bad key, a 400 for a broken body — because those are the cases your users will meet.
And fifth: trusting a 200 status without reading the body. A 200 means the request worked, not that the answer is what you expected. Read the body, check the fields, and confirm the data is the data you asked for. An API can return 200 with an empty list, a wrong record, or an error message dressed up as success — and the status alone will not tell you.
How to use this API tester
Using it takes about ten seconds. Pick the method — GET is the default — type the API URL into the box, and add a body if the request is a POST or a PUT. The default is a GET to the GitHub API for the user 'octocat', which needs no key and always answers. The page checks the method and URL at once, and shows the host so you can see where the request will go.
Press 'Open Hoppscotch' and Hoppscotch opens in a new tab — but only if the request is valid. Paste the URL there, pick the same method, add any headers and the body, and send. The answer comes back with its status code, its headers, and its body, usually as JSON that you can read or copy out.
Everything on this page runs in your browser, so nothing you type is uploaded or stored here. The request itself is sent from Hoppscotch, which is a free service that needs no account for basic use. One practical tip: test against httpbin or a sandbox first, and only touch a live API with real data when you know the request is right. A DELETE cannot be undone.
And if the answer comes back as a wall of JSON on one line, the JSON formatter will spread it out so you can read it. The tester asks the question; the formatter reads the answer — and together they cover most of what anyone does with an API by hand. Testing a request is one half — if the other side needs to call YOU, our webhook tester gives you a live URL on webhook.site and a curl command to fire at it.