</>

Technology

Postman

Difficulty

Beginner

Interview Question

What is the difference between Params and Body in Postman?

Answer

Params vs Body in Postman

Params Tab

The Params tab adds query parameters to the URL. These appear after ? in the URL.

CODE
URL: https://api.example.com/users?page=2&limit=10

When to use:

  • GET requests to filter, sort, or paginate results
  • Any method where data is passed via URL
  • Search parameters

Example:

CODE
Key     | Value
page    | 2
limit   | 10
Result: GET /api/users?page=2&limit=10

Body Tab

The Body tab sends data in the HTTP request body. Used for POST, PUT, PATCH requests to create or update resources.

Body Types in Postman:

TypeUse Case
noneNo body (GET/DELETE)
form-dataFile uploads, mixed data
x-www-form-urlencodedHTML form submission
rawJSON, XML, plain text
binaryUpload files directly
GraphQLGraphQL queries

Raw JSON Example:

JSON
{
    "name": "John Doe",
    "email": "john@example.com",
    "job": "QA Engineer"
}

Quick Comparison

FeatureParamsBody
LocationURL (?key=value)Request body
MethodsGET (mainly)POST, PUT, PATCH
VisibilityVisible in URLNot in URL
Data typeSimple key-valueComplex JSON/XML/Form
Used forFiltering/searchingCreating/updating data

Rule of Thumb

  • Params = What you WANT (filter criteria)
  • Body = What you SEND (resource data)

Follow AutomateQA

Related Topics