Skip to main content
get/v3/fetch
Request example
Response
get/v3/fetch

Authorization

Authorizationstringheaderrequired#
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely. Every key can read the management API (/v2/teamspaces/*), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with Write access ticked; other keys get 403 write_access_required.

Query parameters

urlstringrequired#
The page to read. A public http or https address without credentials; local and private addresses are refused. The fragment is ignored.

Length: max 2048

querystring#
Optional question. When present, only the parts of the page that answer it are returned.

Length: max 2000

tokensinteger#
Maximum tokens to return (about four characters each). With query it caps the selected sections (default 1000); without, it sets the slice size (default 5000).

Range: 100–10000

offsetinteger#
Character offset to read from when query is absent. Use nextOffset from the previous response to continue.

Range: >= 0

typeenum<string>#
Response format type

Default: "txt"

Options:jsontxt

Responses

The relevant sections of the page (with query) or a slice of its Markdown (without)