Search for libraries
Search for libraries by name with intelligent LLM-powered ranking based on your query context.
1 min read
get/v2/libs/search
Request example
Response
get/v2/libs/search
Query parameters
Library name to search for (e.g., 'react', 'nextjs', 'express')
Length: 1–500
User's original question or task - used for intelligent relevance ranking
Length: 1–500
When
true, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.Default: "false"
Options:
truefalseResponses
application/json
Search results ranked by relevance
Array of matching libraries ranked by relevance
Show child attributesHide child attributes
Library ID — the URL path of the library on context7.com.
/owner/repo for GitHub repositories, or /<source>/<id> for other sources (e.g., /vercel/next.js, /websites/uploadcare). See Library ID format.Display name of the library
Short description
Git branch being tracked
ISO 8601 timestamp of last update
Total tokens in documentation
Number of code snippets
GitHub stars count
Available version tags
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).