Use it when configuring, checking or troubleshooting Query Parameters in APIs.
Query Parameters
URL query components used for filtering, sorting, projection, search and pagination without changing the route identity.
1. Query parameters filter, sort, paginate.
2. URL-encode values.
3. Server-side filtering reduces load.
4. Don't put secrets in URLs (logged).
5. Document supported parameters.
URL ? key=value → server filters
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
filter intent → parameter names/values → encoding → server parsing/defaults → result set → completeness check
Healthy evidence: parameter encoding and defaults are explicit, unknown values fail predictably and result completeness is checked across pagination and authorization.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: manual URL concatenation, silent ignored filters, unbounded result assumptions or empty pages interpreted as absence.
Step 3 Common mistakes Narrow the fault
- Building query strings by hand without URL-encoding.
- Putting secrets in query parameters.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Query parameter accepted ≠ filter applied as intended; unknown parameters may be ignored silently.
- Empty result ≠ no matching data; encoding, authorization, pagination or filter syntax may be wrong.
- Repeated parameter ≠ one universal meaning; APIs may treat repeats as list, last-value-wins or error.
- Client-side encoded string ≠ server-decoded value assumed; reserved characters can change interpretation.
curl -sS --get --data-urlencode 'q=name:core' '<api>/v1/items'— encoded query- Filtering/sorting parameters — server-side
- URL encoding of values — correctness
ReferenceWhat it is1 section · depth on demand
What it is
Query parameters filter, sort and paginate collections: ?site=oslo&limit=100&offset=200. They are part of the URL, so they appear in logs.
ReferenceWhy it matters1 section · depth on demand
In depth
Query parameters are the ?key=value pairs at the end of a URL. APIs use them to filter, sort, search, paginate and select fields, so a script fetches only what it needs instead of downloading everything and filtering locally.
GET /api/dcim/devices/?site=oslo&role=access-switch&status=active&limit=100&offset=200
GET /api/ipam/prefixes/?q=10.20.&ordering=prefix
params = {"site": "oslo", "role": "access-switch", "limit": 100}
r = requests.get(f"{nb}/api/dcim/devices/", headers=h, params=params, timeout=30)
Let the HTTP library encode parameters (spaces, &, / must be escaped). Repeated keys (?tag=a&tag=b) often mean OR; check the API documentation, because filter semantics differ between platforms.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A syntactically valid query string shows only what was transmitted; server defaults, ignored parameters and authorization can change the returned set.
Example
requests.get(url, params={"site": "oslo", "limit": 100}, timeout=10)
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in APIs > Query Parameters. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9110 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Query Parameters API boundary map
Fast request/delivery, trust, processing and verification boundaries for Query Parameters.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Caller / request | Environment/version, identity and exact request contract are attributable | Hidden defaults, wrong endpoint/version, leaked or mismatched credentials |
| Server / response | Status, headers, structured body and request ID are interpreted together | Status-only handling, ignored error body, ambiguous async result or unsafe retry |
| State / proof | Write result is reconciled with resource read-back or acceptance test | Response success treated as final target success without verification |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind retries, credential rotation, replay or payload edits before evidence is captured |