/Knowledge/sources/honojs__hono/llms-full/honorequest-query--13221c06255d.md
HonoRequest: query() - hono-docs
HonoRequest: query() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt query Summary Get querystring par...
HonoRequest: query()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#query
Summary
Get querystring parameters. ```ts twoslash import { Hono } from 'hono' const app = new Hono() // ---cut--- // Query params app.get('/search', async (c) => { const query = c.req.query('q') // ^? }) // Get all params at once app.get('/sear...
Content
Get querystring parameters.
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
// Query params
app.get('/search', async (c) => {
const query = c.req.query('q')
// ^?
})
// Get all params at once
app.get('/search', async (c) => {
const { q, limit, offset } = c.req.query()
// ^?
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#query",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / HonoRequest > query()",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 571,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "HonoRequest: query()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}