Requests without an API key are for testing only and are rate-limited by IP address. For real use, send your API key as a bearer token.
Send a question
type=json for structured results. The TypeScript SDK returns JSON by default.
Every snippet includes the library it came from and a link to the source page.
Add hints
A query is all you need. If you know the library, version, or language, add them to narrow the results:
If nothing matches, the API returns
404 no_documentation_found. Treat it as an empty result.
Pricing
Search API calls count as regular Context7 API calls. There is no separate price:- Free: 1,000 calls per month.
- Pro: 5,000 calls per month per seat, then $10 per 1,000 calls.
Search API or Context API?
Use the Search API for a quick answer: one request, and Context7 picks the libraries and snippets for you. It is the easiest way to integrate Context7 into an agent, for example as a grounding step before the agent writes code. Use the Context API (Search Library and Get Context) when you know exactly which library you want, or when you need to go deep: choose the library, ask follow-up questions, and combine results from several libraries yourself.Next steps
- Search Documentation reference for all parameters and the response schema
- TypeScript SDK for the
search()method - API guide for authentication, rate limits, and caching