Answer
Sending a GET Request in Postman
Step-by-Step Guide
- ✓Open Postman and click New Request
- ✓Select GET from the HTTP method dropdown (default is usually GET)
- ✓Enter the URL in the request URL field:
CODE
https://reqres.in/api/users?page=2 - ✓Add Query Parameters (optional):
- ✓Click the Params tab
- ✓Add key-value pairs:
page=2
- ✓Add Headers (optional):
- ✓Click the Headers tab
- ✓Add:
Content-Type: application/json
- ✓Click Send
- ✓Inspect the Response:
- ✓Status code — e.g.,
200 OK - ✓Body — JSON response data
- ✓Headers — response headers
- ✓Time — how long the request took
- ✓Status code — e.g.,
Example GET Request
CODE
GET https://reqres.in/api/users/2
Response:
JSON
{
"data": {
"id": 2,
"email": "janet.weaver@reqres.in",
"first_name": "Janet",
"last_name": "Weaver"
}
}
Quick Tips
- ✓Use Params tab to add query parameters (Postman appends them to the URL automatically)
- ✓Use Authorization tab to add Bearer tokens without manually typing the header
- ✓Save the request to a Collection for reuse
- ✓Use Pre-request Script to set dynamic values before the request fires
