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
- path segment — One slash-separated piece of the path in a web address, such as tasks or 1 in /tasks/1.
- URL — A web address, such as https://example.com/docs, made of a scheme, a host, an optional port and a path.
- filter parameter — A query parameter that narrows a collection to members matching an exact value, such as ?state=open.
- pagination — Splitting a large collection into bounded pages, each with a way to ask for the next one.
- model binding — Turning parts of an HTTP request, such as route values, the query string, headers and the JSON body, into typed parameters for your handler.
- searchParams — The page prop holding the URL query string values, such as { q: 'shoes' } for /search?q=shoes.
- WHATWG URL Standard — The web standard for parsing URLs, implemented by the global URL class in browsers and Node.js.
- path parameter — A value embedded in the path of a URL, such as 42 in /users/42, which a router extracts by matching a pattern.
- HTML form — A part of a web page with fields and a submit button that sends what the user entered to a server program.
- CGI — The Common Gateway Interface, an old standard for a web server to run a program for each request and send the program's printed output back as the page.
- access log — A log file where a web server writes one line per request, with the client address, time, method, path and status code.
- Referer header — The request header in which a browser tells a site which page linked to it, often including the full URL.
Taught in
- Headers And Content Negotiation — Modern API Architecture: REST, GraphQL & gRPC
- Naming Resources And Collections — Modern API Architecture: REST, GraphQL & gRPC
- Filtering And Searching — Modern API Architecture: REST, GraphQL & gRPC
- Building Routes with Controllers — Modern .NET Core, C# & Enterprise Microservices
- Root & Nested Layouts: State Preservation Semantics — Next.js 15 & Modern App Router Architecture
- Routing & Middleware: Path Parsing & Async Context — Node.js Internals & Backend Services
- Chapter Four In One Sitting — Hands-on Python: Complete Video Course & Book
- Why Secrets Leak — Application Security & Threat Modeling for Engineers
- Dynamic Scanning — Application Security & Threat Modeling for Engineers