v1

latestOpenAPI 3.0.0raw.githubusercontent.com2026-01-242821.9 KB
Context

Get documentation context

Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question.

get/v2/context

Query parameters

libraryIdstring required

Context7-compatible library ID in format /owner/repo or /owner/repo/version

querystring required

User's original question or task - used for intelligent relevance ranking

type'json' | 'txt'

Response format type

Response

Documentation context

rulesobject

Optional library-specific rules