Query parameters are key–value pairs appended to a URL to send data to a server. In Postman, query parameters are commonly used to filter results, search data, paginate responses, and pass optional inputs without modifying the request body.
?key=value&The general syntax of query parameters in a URL is:
// Basic structure of query parameters in a URL
https://api.example.com/users?role=admin&status=active
In Postman, query parameters can be added directly in the URL or using the Params tab.
// URL with query parameters added manually
https://reqres.in/api/users?page=2&per_page=3
page=2 requests the second page of usersper_page=3 limits the number of records returnedUse the simulator below to build a URL dynamically, just like in the Postman "Params" tab.
Think of query parameters as form inputs sent via URL:
?search=postman → keyword filter?sort=asc → sorting order?limit=10 → maximum records
// URL encoded query parameter with space and special character
https://api.example.com/search?query=web%20development%20%26%20api
page and limit