Path Parameters
Repository owner (e.g., 'vercel', 'upstash')
Repository name (e.g., 'next.js', 'docs')
Specific version tag (e.g., 'v15.1.8', 'v14.3.0-canary.87')
Query Parameters
Format of the response: txt for plain text optimized for LLM contexts, or json for structured payload with metadata
txt, json Topic to search/rerank the results (e.g., 'routing', 'authentication', 'hooks')
Maximum token count to be included in the result
100 <= x <= 100000Response
Successful response with documentation content
Documentation content response with metadata and chunks
Library ID in format /owner/repo
"/vercel/next.js"
Version of the library
"v15.1.8"
Requested topic (if specified)
"routing"
Actual token count in the response
2950
Documentation chunks with content and metadata
API request metadata