How to Test an API Without Installing Anything (Step by Step)
Sometimes you can’t install software. Maybe it’s a locked-down work laptop, or you only need to check one endpoint. You don’t need an app for that: a web-based API client runs in a browser tab and sends real requests. This guide walks through a GET, a POST with a JSON body and a request with an auth header, using free practice APIs so you can follow along now.
The short answer: to test an API without installing anything:
- Open the Hoppscotch web app at hoppscotch.io.
- Choose the method (GET to read, POST to send) and paste the URL.
- For a POST, open the Body tab, set the content type to
application/jsonand paste your JSON. - For a key or token, open the Authorization tab and choose Bearer, API Key or Basic Auth.
- Click Send, then check the status code and the response.
If a request fails in the browser but works elsewhere, it’s probably CORS (see below). To compare every option first, see test an API.
What you need
- Hoppscotch (hoppscotch.io), a free, open-source API client that runs in your browser. Its docs put it simply: “You can start using the web client by opening hoppscotch.io in your browser.”
- Two free practice APIs with no sign-up: JSONPlaceholder (jsonplaceholder.typicode.com) returns sample posts and users, and httpbin (httpbin.org) echoes your request back.
A fast, open-source API client that runs in your browser.
Step 1: send a GET request
A GET request reads data. Set the method to GET, paste this URL and click Send:
https://jsonplaceholder.typicode.com/posts/1
You should get a 200 OK status and a JSON post with an id, a title and a body. Always check the status code first: it tells you whether the request worked at all.
Step 2: send a POST with a JSON body
A POST request sends data, usually to create something.
- Change the method to POST and set the URL to
https://jsonplaceholder.typicode.com/posts. - Open the Body tab and set the content type to
application/json. - Paste this body and click Send:
{
"title": "foo",
"body": "bar",
"userId": 1
}
The response echoes your data back with "id": 101. Nothing is really saved (“the response is faked as if”), so it’s a safe place to practice. If you get an error, check the content type first.
Step 3: add an auth header
Most real APIs want a token in an Authorization header, written as Bearer followed by the token.
- Switch back to GET and set the URL to
https://httpbin.org/get. - Open the Authorization tab, choose Bearer and enter
my-test-token. - Click Send.
httpbin returns the headers it received, so look for "Authorization": "Bearer my-test-token". If it’s there, your header is set correctly, which rules out the most common cause of a 401 Unauthorized error. Never paste a real production key into a request you plan to share.
Reading the response
| Status code | What it means | What to check |
|---|---|---|
| 200 OK, 201 Created | It worked | The response body has the data you expected |
| 400 Bad Request | The server couldn’t read your request | The JSON body and content type |
| 401 Unauthorized | Missing or wrong credentials | The Authorization tab and your token |
| 403 Forbidden | Your credentials don’t have access | Your key’s permissions |
| 404 Not Found | Wrong URL | Typos, missing path segments, the base URL |
| 500 Internal Server Error | The server hit a problem | Usually not your request; try again later |
If a request fails: CORS
Browsers have a security rule called CORS that stops a page from reading responses from another site unless that site allows it. Many real APIs don’t, even though the same request works from a desktop app. Hoppscotch’s Interceptor settings get around it three ways:
- Hoppscotch Agent: a small app that routes requests through your machine. Recommended, but it’s a download.
- Proxy: switch it on in Settings, under Interceptors.
- Browser extension: for Chrome and Firefox.
On a laptop where you can’t install anything, the proxy is usually the option left.
Another browser option: Postman runs in the browser at postman.com, but recommends its Desktop Agent to avoid “the browser’s CORS limitations”, so you’ll hit the same wall. HTTPie also has a web version at httpie.io/app.
When you’ll need a real client
Install a desktop client when you’re saving dozens of requests, sharing them with a team, calling an API on your own machine (localhost) or running tests in CI. Bruno saves requests as plain files in your Git repo with no account. Postman adds shared workspaces, mocks and monitoring.
An offline API client that saves requests as plain files in your repo.
Conclusion
To test an API without installing anything, open hoppscotch.io, pick the method, paste the URL and click Send. Use the Body tab for JSON and the Authorization tab for tokens, and switch on an interceptor if CORS gets in the way. Try the three requests above, then point the same steps at the API you need to test.
Related guides
Frequently asked questions
Can I test an API in my browser?
Yes. A web-based API client like Hoppscotch runs in a browser tab: choose the method, paste the URL, add headers or a JSON body and click Send to see the real response. It's ideal on a locked-down laptop or for one quick check.
Where does an API key go in a request?
Usually in the Authorization header, written as Bearer followed by your token. Some APIs want a custom header such as X-API-Key, or a query parameter instead. In Hoppscotch, the Authorization tab handles all of these, and the API's documentation says which one it expects.
What do API status codes mean?
The first digit tells you what happened. 200s mean it worked, 400s mean something was wrong with your request, such as a missing key (401) or a wrong URL (404), and 500s mean the server hit a problem.
Why does my API request fail in the browser but work elsewhere?
Most likely it's CORS, a browser rule that stops a web page from reading responses from another site unless that site allows it. Hoppscotch's Interceptor settings get around it with the Hoppscotch Agent, a proxy or a browser extension for Chrome and Firefox.
Is there a free API I can practice on?
Yes. JSONPlaceholder returns sample posts and users with no sign-up or key, and fakes the response to POST requests without saving anything. httpbin.org echoes your request back, so you can check exactly which headers you sent.
When should I install a desktop API client?
When you're saving dozens of requests, sharing them with a team, writing tests or calling an API on your own machine (localhost). Bruno and Postman are the usual choices. For a one-off request, a browser tab is still the fastest option.