Client
The side that asks for something. Examples: your phone app, Chrome browser, Postman, or this API Lab page.
API Lab
Made for beginners with zero API knowledge. We start with how the internet works, then HTTP, JSON, methods, login/API keys, Postman, and free live practice — all in simple English.
Read in this order. No coding required. Each chapter uses simple words first, then shows the real technical name.
Client, server, browser, website vs API.
Open →Restaurant analogy + real life examples.
Open →How a request travels and how to read a URL.
Open →Method, headers, body, response, JSON.
Open →GET, POST, PUT, PATCH, DELETE in detail.
Open →Postman-style playground with free APIs.
Open →API key, username/password, Bearer token.
Open →What 200, 401, 404 mean.
Open →Map this lab to the Postman app at work.
Open →Common errors + beginner questions.
Open →3-day plan to become confident.
Open →All important words in one place.
Open →Chapter 0 · From zero
If “API” feels scary, start here. These 6 words make everything else easy.
The side that asks for something. Examples: your phone app, Chrome browser, Postman, or this API Lab page.
A computer on the internet that answers. It stores data (users, products, weather) and runs rules.
The message the client sends: “Please give me user number 1” or “Please create a new post”.
The message the server sends back: success/fail number + data (often JSON text).
Website returns a page for humans (HTML, buttons, pictures).
API returns structured data for software (usually JSON).
Mobile apps, dashboards, and other servers need clean data — not a full webpage. APIs give exactly that.
When you open a weather app:
You did not see the API — but the app used an API behind the screen. Postman lets you see that hidden conversation.
Postman is a tool (desktop or web) where you manually build API requests, press Send, and read the response. Testers, developers, and support teams use it every day. This website’s playground looks like Postman so beginners can practice without installing anything first.
Chapter 1 · The big idea
API = Application Programming Interface. Plain meaning: a set of rules and URLs that let one program ask another program for data or actions.
/users, /orders, /weather)You never walk into the kitchen. You only talk to the waiter using the menu. That is exactly how APIs protect and organize systems.
Postman / app builds a request.
Over HTTPS to the server URL.
Checks auth, reads/writes data.
Status code + JSON body.
Chapter 2 · HTTP & URLs
HTTP is the rulebook for messages between client and server. HTTPS is the same thing with encryption (the lock icon). Almost all modern APIs use HTTPS.
https://api.example.com/v1/users/5?active=true
https:// — secure protocolapi.example.com — which server (host)/v1/users/5 — path (version 1, user id 5)?active=true — query (filter: only active)One specific URL path the API supports, e.g. GET /users or POST /login. Documentation lists all endpoints like a menu.
The common starting part shared by many endpoints:
https://jsonplaceholder.typicode.com
Then you add /users, /posts, etc.
In REST APIs (the most common style), URLs represent resources:
/users → collection of users/users/1 → one user/posts → collection of posts/posts/10/comments → comments belonging to post 10REST simply means: use HTTP methods + resource URLs in a clear, consistent way.
Chapter 3 · Anatomy
Memorize these five. Postman’s whole screen is just a form for filling them.
Address of the resource.
https://jsonplaceholder.typicode.com/users/1
GET read · POST create · PUT replace · PATCH edit · DELETE remove
Accept, Content-Type, X-Api-Key, Authorization
Mostly for POST/PUT/PATCH. Usually JSON. GET normally has no body.
Status code + body. Always check the number first (200 good, 401 login problem…).
Text format computers love. Keys in quotes. Values can be text, numbers, true/false, lists, nested objects.
{
"name": "Asha",
"age": 28,
"skills": ["API", "Postman"]
}
GET /users/1 HTTP/1.1
Host: jsonplaceholder.typicode.com
Accept: application/json
(no body)
---------- server replies ----------
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 1,
"name": "Leanne Graham",
"email": "sincere@april.biz"
}
Postman hides the raw text and shows friendly tabs — but under the hood it is still this.
Chapter 4 · Methods
Think of methods as verbs. Same door (/posts/1), different action. Click each card.
Chapter 5 · Practice setup
Do these once. After that, real Postman will feel familiar.
_limit=3.Accept: application/json.Chapter 5 · Live practice
These are real free APIs. No payment. Most need no key. Click left → read the lesson → Send.
First win for beginners: click GET · Users list → Send → look for status 200 and a list of names. That means you successfully called an API.
Step 1 for beginners: list users from a free fake API. No login. No API key. Press Send and look for status 200.
Params = options added after ?. Example: ?_limit=3 means “only 3 results”.
An API key is a secret the provider gives your account. This demo value only shows the header shape. Never paste real company keys here.
Demo login: user postman / password password. Wrong password → 401.
Bearer tokens usually arrive after login. Then every call sends Authorization: Bearer ….
Headers are metadata. Auth headers are added from the Authorization tab automatically.
Body = data you send. Needed for POST / PUT / PATCH. Leave empty for GET / DELETE.
Press Send.
Beginner tip: always look at the status number first.
200 / 201 = good. 401 = auth problem. 404 = wrong URL.
Chapter 6 · Authorization
Public free APIs often need no login. Company APIs almost always need proof of identity. Here are the 3 types beginners meet first.
Simple idea: the company gives you a long secret password for your app. You send it on every request.
Where do you get it? From that product’s dashboard (after signup) — not from this website.
X-Api-Key: your_real_key_here
Postman: Authorization → API Key → Key name + Value → Add to Header.
Practice here: collection item 10 · API Key demo (fake key, just to see the header).
Never share real API keys in chat, email, screenshots, or GitHub.
Simple idea: like a website login. Username + password are packed into one header.
Authorization: Basic cG9zdG1hbjpwYXNzd29yZA==
# means username:password → postman:password
Safe practice credentials (public test server only):
postmanpasswordTry wrong password once on purpose → you will see 401. That is an important beginner lesson.
Simple idea: login once → server gives a temporary ticket (token) → send the ticket on later requests until it expires.
Authorization: Bearer eyJhbGciOi…
Used by many modern apps (OAuth / JWT). In Postman: Authorization → Bearer Token.
There is no one global API key for the whole internet. Each service creates keys for your account. Free learning APIs in this course work without a key on purpose.
Chapter 7 · Status codes
The first thing to read after Send. Groups: 2xx success, 4xx your mistake, 5xx server mistake.
| Code | Plain English | Beginner action |
|---|---|---|
200 | OK — it worked | Read the JSON. Celebrate your first call. |
201 | Created | POST created something. Look for new id. |
204 | Success, empty body | Common after DELETE. Still success. |
400 | Your request is malformed | Check JSON commas/quotes and required fields. |
401 | Not logged in / wrong secret | Fix API key, password, or token. |
403 | Logged in but not allowed | Ask admin for permission / role. |
404 | Not found | Wrong URL or id does not exist. |
429 | Too many calls | Wait and retry. You hit a rate limit. |
500 | Server broke | Not your JSON. Retry later / tell API owner. |
Free APIs used in this course
Click a card to auto-run in the playground.
GET https://jsonplaceholder.typicode.com/users
GET https://jsonplaceholder.typicode.com/users/1
POST https://jsonplaceholder.typicode.com/posts
GET https://dog.ceo/api/breeds/image/random
GET https://api.open-meteo.com/v1/forecast?latitude=28.61&longitude=77.21¤t=temperature_2m
GET https://httpbin.org/basic-auth/postman/password
Chapter 8 · Real Postman
Install Postman (desktop) or use Postman web. Same ideas, more features for teams.
{{baseUrl}} and {{apiKey}}. Switch Dev / QA / Prod safely.Chapter 9 · Mistakes & FAQ
If something fails, check this list first.
Using GET when the docs say POST. Always match the documentation.
/user vs /users → often 404. Copy from docs carefully.
401 almost always means missing/wrong key, password, or token.
Missing comma or quote in Body → 400. Use a JSON validator or Postman format.
Most APIs ignore GET bodies. Put filters in Params/URL instead.
Pastings keys into public pages or git. Use Postman variables instead.
Short answers to questions new learners ask first.
No. Start with Postman / this playground. Coding helps later, but understanding requests comes first.
Yes. JSONPlaceholder, Dog CEO, Open-Meteo, and httpbin are free for learning. Most need no API key.
A secret string a service gives your account so their server can recognize your app’s requests.
Browsers enforce CORS security rules. Postman desktop is not a browser, so many APIs allow it. That is normal.
Reading/listing/showing → GET. Creating something new with data → POST. When unsure, read the API documentation line for that endpoint.
1) Recreate these calls in real Postman 2) Read one internal API doc at work 3) Learn environments/variables 4) Learn how your team stores secrets safely.
Chapter 10 · Become confident
Share this plan with a teammate who is starting from scratch.
Keep this open while you practice.
/users/1.? in the URL.1.