/Knowledge/sources/honojs__hono/llms-full/honorequest-param--37fe8a0554fe.md
HonoRequest: param() - hono-docs
HonoRequest: param() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt param Summary Get the values of p...
HonoRequest: param()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#param
Summary
Get the values of path parameters. ```ts twoslash import { Hono } from 'hono' const app = new Hono() // ---cut--- // Captured params app.get('/entry/:id', async (c) => { const id = c.req.param('id') // ^? // ... }) // Get all params at o...
Content
Get the values of path parameters.
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
// Captured params
app.get('/entry/:id', async (c) => {
const id = c.req.param('id')
// ^?
// ...
})
// Get all params at once
app.get('/entry/:id/comment/:commentId', async (c) => {
const { id, commentId } = c.req.param()
// ^?
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#param",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / HonoRequest > param()",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 570,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "HonoRequest: param()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}