skip to content

Context7 Query Docs

$0.01/req

POST /services/context7/query-docs

Fetches up-to-date documentation snippets for a resolved Context7 library ID, optionally focused on a topic, with a bounded token budget per request.

call it — the quote comes back in one round trip
curl -X POST https://api.1cent.sivaram.dev/services/context7/query-docs \
  -H 'content-type: application/json' \
  -d '{"libraryId":"/honojs/hono","topic":"middleware"}'

This returns 402 Payment Required with exact terms. Clients like @x402/fetch sign the quote and retry automatically, paying $0.01 — no other setup exists.

Providers

Every response names the providers it consulted, with per-call status, so you can weigh the evidence.

Response fields

  • docs

Guardrails

  • token budget capped at 5000
  • single library per request

Pricing note

Priced against Context7 Pro included-call economics. Token budget is capped at 5000 per request.

machine-readable detail: GET /services/context7-query-docs