Sreenag Kuna

Lab 01 / Developer documentation

Make your first API request.

This sample quickstart uses JSONPlaceholder, a public test API, to demonstrate concise onboarding documentation.

Before you begin

You need a terminal with curl installed. This test endpoint does not require an API key.

1. Send a request

Run the following command to retrieve post 1:

curl https://jsonplaceholder.typicode.com/posts/1

2. Check the response

A successful request returns HTTP status 200 OK and a JSON object containing userId, id, title, and body.

What to verify

Confirm that the response contains all four fields. The id value should be 1.

If the request fails

Check your internet connection and confirm that the URL contains /posts/1. A resource that does not exist returns an empty object.

Where to go next

Change the final number to retrieve another post, or send a request to /users/1 to explore a different resource.