Skip to main content
GET
Search documentation in one request

Authorizations

Authorization
string
header
required

Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Query Parameters

query
string
required

User's original question or task - used for intelligent relevance ranking

Required string length: 1 - 500
type
enum<string>
default:txt

Response format type

Available options:
json,
txt
library
string[]

Optional library hints. Repeat for up to four values; each may be a fuzzy product name such as next.js or an exact Context7 ID such as /vercel/next.js.

Maximum array length: 4
Required string length: 1 - 120
version
string

Optional version constraint. Requires at least one library value. It is strict when one library is provided and contextual when multiple libraries are provided.

Pattern: ^v?[0-9]+([._][0-9]+){0,2}([-+][a-zA-Z0-9.-]+)?$
language
string

Optional programming-language preference used for library selection, retrieval, and reranking. This is a soft preference and does not exclude language-neutral documentation.

Required string length: 1 - 40

Response

Bounded documentation evidence from the selected libraries

The response is of type string.