Query Parameter
PronunciationKWEER-ee puh-RAM-ih-ter
Definition
A value added to the end of a URL after ?, used to filter, sort, or page results, for example /users?role=admin.
Where you hear it
API design, search pages, and analytics links.
Examples
Filter the list with the
statusquery parameter.Never put passwords in a query parameter.
The URL /orders?status=paid returns only the paid orders.
Common mistake
Putting secrets in the URL. URLs end up in logs, browser history, and shared links.
Don't confuse with
Query parameters are often confused with path parameters; query parameters are optional key-value pairs used for filtering or sorting, while path parameters are essential parts of the URL structure that identify a specific resource.
Say it at work
- In a meeting or chat
Can we add a query parameter to the endpoint so we can filter the products by category?
- In an email or ticket
Please ensure that the API documentation includes all supported query parameters for the search functionality.