</>

Technology

Postman

Difficulty

Beginner

Interview Question

How do you send a GET request in Postman?

Answer

Sending a GET Request in Postman

Step-by-Step Guide

  1. ✓Open Postman and click New Request
  2. ✓Select GET from the HTTP method dropdown (default is usually GET)
  3. ✓Enter the URL in the request URL field:
    CODE
    https://reqres.in/api/users?page=2
    
  4. ✓Add Query Parameters (optional):
    • ✓Click the Params tab
    • ✓Add key-value pairs: page = 2
  5. ✓Add Headers (optional):
    • ✓Click the Headers tab
    • ✓Add: Content-Type: application/json
  6. ✓Click Send
  7. ✓Inspect the Response:
    • ✓Status code — e.g., 200 OK
    • ✓Body — JSON response data
    • ✓Headers — response headers
    • ✓Time — how long the request took

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

Follow AutomateQA

Related Topics