# Search: Voxlang

Search the Voxlang language reference by heading, keyword and body text. Results link straight to the matching section or heading.

## The endpoint

The endpoint: GET https://vox-lang.dev/docs/search?q=<words>&limit=20 returns JSON, {query, spec, slugRule, hits: [{url, title, section, excerpt, score}]}. The query is capped at 120 characters and the limit at 50, default 20. A short or empty query returns an empty hit list, never an error.

## This page

This page runs the same query at /search/?q=<words> and shows the results to a person instead of a script, in the browser, so it needs JavaScript. The endpoint above and the static /docs/search.json do not.

## Example queries

- /search/?q=file+io
- /search/?q=ranges
