# Context7 API

Category: [AI search and web reading](https://free-web-services.com/web-services/ai/search/)  
Page: https://free-web-services.com/web-services/ai/search/context7-api.html  
Documentation: https://context7.com/docs/api-guide

The Context7 API searches up-to-date documentation and code examples of programming libraries, for example so that a coding assistant uses the current version of a framework. Find a library, then ask for the passages that answer a question; GET requests return JSON or plain text. Free plan with 1,000 API calls a month on a free API key; calls without a key work with a smaller allowance. Private repositories need a paid plan. An official MCP server at https://mcp.context7.com/mcp gives AI agents the same search.

- API key: Not needed
- Pricing: Free plan with 1,000 API calls a month on a free API key; calls without a key work with a smaller allowance.
- From the browser: No, call it from a server
- Formats: JSON
- Interface: REST, HTTP-GET, MCP
- Provider: context7.com

Example request:

```sh
curl 'https://context7.com/api/v2/libs/search?libraryName=react&query=hooks'
```

Run the JavaScript on a server, such as Node.js 18 or newer: this API does not accept calls from web pages on other sites.

