# Clerk documentation search

Search the Clerk docs. Results link to the markdown form of each page.

```
GET https://clerk.com/docs/search.md?q=<url-encoded query>
GET https://clerk.com/docs/search.md?q=middleware&sdk=nextjs
```

`page` (optional) defaults to 1. Results link to their next page, so there is no need to build it.

`sdk` (optional) ranks that SDK's pages first and links to its variant of a page when one exists. One of:

- `nextjs`
- `react`
- `expo`
- `tanstack-react-start`
- `react-router`
- `expressjs`
- `android`
- `astro`
- `chrome-extension`
- `electron`
- `fastify`
- `go`
- `ios`
- `js-frontend`
- `nuxt`
- `ruby`
- `vue`

The same search as JSON: `https://clerk.com/docs/search.json?q=<url-encoded query>`

Indexes: [Clerk docs index](https://clerk.com/docs/llms.txt), [Clerk site index](https://clerk.com/llms.txt)
