Skip to main content
GET
/
v2
/
search
Search for libraries
curl --request GET \
  --url https://context7.com/api/v2/search \
  --header 'Authorization: Bearer <token>'
{
"results": [
{
"id": "/vercel/next.js",
"title": "Next.js",
"description": "Next.js enables you to create full-stack web applications by extending the latest React features and integrating powerful Rust-based JavaScript tooling for the fastest builds.",
"branch": "canary",
"lastUpdateDate": "2025-11-17T22:20:15.784Z",
"state": "finalized",
"totalTokens": 824953,
"totalSnippets": 3336,
"stars": 131745,
"trustScore": 10,
"benchmarkScore": 91.1,
"versions": [
"v14.3.0-canary.87",
"v13.5.11",
"v15.1.8",
"v15.4.0-canary.82",
"v12.3.7",
"v11.1.3"
]
}
],
"metadata": {
"authentication": "none"
}
}

Authorizations

Authorization
string
header
required

Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Query Parameters

query
string

Search query string. Returns empty results if not provided.

Maximum string length: 500

Response

Successful search response

Search results response

results
object[]
required

Array of matching libraries

metadata
object
required

Response metadata