AI search and web reading

Context7 API

by context7.com

AI search and web reading Added on December 1st, 2026
Visit context7.com →

What it does

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
  • HTTP-GET
  • JSON
  • MCP
  • REST

At a glance

API key
Not needed · More APIs with no key
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

More information: https://context7.com/docs/api-guide

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

context7.com
Context7 API

Example request

curl

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

JavaScript

const response = await fetch("https://context7.com/api/v2/libs/search?libraryName=react&query=hooks");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://context7.com/api/v2/libs/search?libraryName=react&query=hooks",
    timeout=30,
)
print(response.json())

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.

Did it work for you?

Tell us what you found when you tried Context7 API.