2026-03-07 16:34 Tags:Technical Literacy
1. First: What is a URL?
A URL (Uniform Resource Locator) is simply an address on the internet.
Example:
https://www.reddit.comJust like a physical address:
742 Evergreen Terrace
Springfield
USA
A URL tells the computer:
-
which server
-
where on that server
-
what resource
2. What is an API endpoint?
An endpoint is a specific URL where an API provides data or services.
Example:
https://api.github.com/usersThis endpoint returns user data.
Another endpoint:
https://api.github.com/reposThis returns repository data.
So an endpoint is basically:
a door into the server’s data
Each door gives you different information.
3. Example using Reddit (very concrete)
Example endpoint:
https://www.reddit.com/r/financialindependence/top.jsonThis endpoint returns:
-
top posts
-
from subreddit
financialindependence -
in JSON format
So the API endpoint describes:
| Part | Meaning |
|---|---|
| reddit.com | the server |
| /r/financialindependence | the resource |
| /top | the operation |
| .json | return format |
4. Endpoints are usually structured like folders
Most APIs follow a hierarchical structure.
Example:
/users
/users/42
/users/42/posts
/users/42/followersThink of it like a file system.
Example folder structure:
users/
42/
posts/
followers/
Each path is a different endpoint.
5. Real-world API example
Imagine a shopping website API.
Possible endpoints:
/products
/products/15
/products/15/reviews
/orders
/orders/108Meaning:
| Endpoint | Meaning |
|---|---|
| /products | list all products |
| /products/15 | product with ID 15 |
| /products/15/reviews | reviews for that product |
| /orders | all orders |
| /orders/108 | specific order |
So endpoints represent resources and relationships.
6. The full URL structure
A typical API URL looks like this:
https://api.example.com/users/42Breakdown:
| Part | Meaning |
|---|---|
| https | protocol |
| api.example.com | server |
| /users/42 | resource |
So this means:
Ask the server api.example.com for user 42.
7. Why APIs use “api.”
Many APIs use a special subdomain:
api.example.comInstead of:
www.example.comReason:
-
www→ website for humans -
api→ data for programs
Example:
https://api.stripe.com
https://api.github.com
https://api.notion.com8. Endpoint + Method = API request
An endpoint alone is not enough.
You combine it with an HTTP method.
Example:
GET https://api.example.com/usersMeaning:
retrieve users.
Another example:
POST https://api.example.com/usersMeaning:
create a new user.
So an API call always has:
HTTP Method + Endpoint9. How this appears in n8n
In your HTTP Request node, you fill:
Method:
GETURL:
https://www.reddit.com/r/financialindependence/top.jsonThat URL is the endpoint.
n8n sends a request there and receives JSON data.
10. Quick intuition test
If you see this endpoint:
https://api.example.com/users/123/ordersYou can probably guess:
It returns:
orders belonging to user 123
Even without documentation.
That’s why REST APIs are designed this way — the endpoints are human-readable.
✅ Key takeaway
Endpoint = the address where an API exposes a resource
Example pattern:
/resource
/resource/id
/resource/id/subresource