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