In June 2026, the Internet Engineering Task Force published RFC 10008, introducing a new HTTP method called QUERY. This addition addresses a gap that developers have worked around for years when building APIs that need to run complex, read-only search or filter operations. This article explains what the QUERY method does, why it was introduced, and what it means for developers building or maintaining APIs.
The Problem QUERY Was Designed to Solve
Before QUERY, developers had two imperfect options for handling read-only requests with complex parameters. The GET method is safe, cacheable, and well understood, but it requires all parameters to be encoded into the URL. This becomes awkward for large or deeply structured queries, since URLs have practical length limits, are more likely to be logged by servers and proxies, and every distinct combination of parameters is treated as its own separate resource. The POST method solves the size and structure problem by allowing a request body, but it comes with no built in signal that the operation is read-only, which means caches and intermediaries cannot safely assume a POST request is repeatable or side-effect free.
What the QUERY Method Actually Does
QUERY combines the strengths of both existing methods. Like POST, it allows a structured request body, which makes it well suited for large or complex queries such as filters, sort criteria, or search parameters that would be unwieldy in a URL. Like GET, it is explicitly defined as a safe and idempotent method, meaning that any generic HTTP client, proxy, or cache can treat it as read-only and safely repeatable without needing to know anything specific about the API in question. This distinction is registered directly in the IANA HTTP Method Registry, making the guarantee part of the protocol itself rather than something documented separately in API guides.
How QUERY Requests Work in Practice
A QUERY request includes a request body describing the operation to be performed, along with a Content-Type header identifying the format of that content. Servers can advertise support for QUERY and indicate which content formats they accept using a new Accept-Query response header. Responses to QUERY requests can be cached, similar to GET, although the cache key must take the request body and related metadata into account, since the same URL can represent different queries depending on what is sent in the body. The specification also defines how QUERY interacts with conditional requests, range requests, and redirects, giving it consistent behavior across the broader HTTP ecosystem.
Why This Matters for API Design
Many modern APIs, including those built around GraphQL, analytics dashboards, and search heavy applications, have relied on POST for read-only operations simply because GET could not handle the complexity of the request. This has made it harder for caching layers and infrastructure tools to reason about which POST requests are safe to retry or cache. QUERY gives API designers a method that matches the actual semantics of the operation, allowing infrastructure to treat these requests appropriately without relying on assumptions or documentation that may be overlooked.
What to Expect as Adoption Grows
As with any new HTTP method, widespread adoption will take time and depends on support across browsers, HTTP client libraries, server frameworks, and content delivery networks. Since companies with significant infrastructure influence were involved in developing the specification, broader support at the network and CDN level may arrive before it becomes a standard feature in every web framework. Developers building or maintaining APIs with complex read-only endpoints should keep an eye on QUERY support in the tools and platforms they rely on, since it offers a more precise alternative to the GET and POST workarounds currently in common use.
What This Means for APIs We Are Building
At Pixelbey, several of the APIs we build for clients involve search or filter operations that have traditionally been awkward to implement with GET - particularly where filter criteria are complex enough to make URL encoding impractical. The QUERY method formalises an approach we have sometimes had to work around using POST, and as support grows across frameworks and CDNs, we expect to adopt it for new projects where it fits. The key practical advantage is the explicit cacheability signal, which simplifies how we configure caching layers without relying on custom headers.
Frequently Asked Questions
Does the QUERY method replace GET or POST?
No. QUERY is designed to complement GET and POST by filling a specific gap for complex, read-only requests that do not fit well into either existing method.
Is the QUERY method supported by browsers and tools today?
Support is still developing across browsers, server frameworks, and client libraries, since the specification was only recently published as a Proposed Standard.
Can QUERY requests be cached like GET requests?
Yes. QUERY responses can be cached, though the cache key must account for the request body and related metadata rather than the URL alone.
Why not just allow request bodies with GET instead of creating a new method?
Existing HTTP infrastructure has inconsistent behavior around GET requests with bodies, since many proxies and servers strip or ignore them, making a new dedicated method a safer path forward.
Is QUERY only useful for GraphQL style APIs?
No. While it fits GraphQL well, QUERY is broadly useful for any API involving complex filters, search parameters, or report style requests that need to remain safe and cacheable.
Conclusion
RFC 10008 fills a long standing gap in HTTP by giving developers a method specifically designed for safe, read-only requests that require a request body. By combining the cacheable, idempotent nature of GET with the structural flexibility of POST, the QUERY method offers a more precise tool for building modern, search heavy APIs, and is likely to become an important part of API design as support spreads across the broader web ecosystem.
