Skip to main content
get/v2/libs/search
Request example
Response
get/v2/libs/search

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

libraryNamestringrequired#
Library name to search for (e.g., 'react', 'nextjs', 'express')

Length: 1–500

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

Length: 1–500

fastenum<string>#
When true, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.

Default: "false"

Options:truefalse

Responses

application/json
Search results ranked by relevance
resultsobject[]required#
Array of matching libraries ranked by relevance
searchFilterAppliedbooleanrequired#
Indicates whether the search results were filtered by the teamspace's public library access settings. When true, some libraries may be excluded from results based on the teamspace's configuration (e.g., only verified libraries, selected libraries, or private repos only).