Exploring an API by Hand
Why This Matters
Before you automate a test against an API, you should know how the API behaves: what it returns, which fields are there, what happens with wrong input. Exploring by hand is fast, and it gives you the facts your tests (and your AI prompts) should be based on.
A public practice API
TestRun Board’s API only exists inside the browser (it is mocked), so for exploring by hand we use JSONPlaceholder, a free public practice API with fixed example data. Here are real responses from it:
You can try the first one right now: open https://jsonplaceholder.typicode.com/todos/1 in your browser. A GET request is just a URL.
Tools for exploring
| Tool | Good for |
|---|---|
| Your browser | Quick GET requests: type the URL |
| Postman (or Bruno, Insomnia) | All methods, headers and bodies, saving requests in collections, and simple checks |
| curl in the terminal | Quick requests you can copy and share |
Postman’s own quick start walks you through sending your first request and writing a first check:
Screenshot of the Postman Docs.
What to look for while exploring
For every endpoint, write down:
- The happy path: method, URL, status code and the fields in the response.
- Not found: what happens with an id that does not exist? (
/todos/9999returns 404.) - Create: what comes back after a
POST? (/postsreturns 201 and a newid.) - Surprises: anything that does not match what you expected. Practice APIs fake some behaviour; JSONPlaceholder does not really store your new post. That is a finding worth noting.
These notes become your test cases in lesson 9, An API Test in Code.
Exercise
- In your browser, open
https://jsonplaceholder.typicode.com/users/1. Write down the user’s name, e-mail and city. - Install Postman (or Bruno), and send
GET https://jsonplaceholder.typicode.com/users/1/todos. How many todos are there, and how many are completed? - Send a
POSTtohttps://jsonplaceholder.typicode.com/postswith the JSON body{"title": "foo", "body": "bar", "userId": 1}. Which status code andiddo you get? - Ask your AI assistant to predict the answers to 1 to 3 before you look, and compare. Where did it guess instead of know?
Key Takeaways
- Explore an API by hand before you automate tests against it.
- A
GETis just a URL; Postman, Bruno or curl handle the other methods. - Note the happy path, not-found, create, and every surprise.
- An AI can describe an API, but only real responses tell you how it behaves.

