query string

The part of a web address after the question mark, made of name=value pairs, such as ?state=open&limit=2.

In more detail

Query parameters modify the answer: they filter, sort, trim or page the representation of a resource that exists either way. Spaces and special characters are encoded, for example a space becomes + or %20, and submitting a form with the GET method puts its fields there. Never put a secret in a query string, because full addresses are copied into logs, history and proxies.

Example

The course's request logger records api_key=sk-live-… from a query string until a filter masks it.

Related terms

Taught in

References