Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Outcome-based pricing: each call is charged for the work it did plus a per-token rate on returned content. Every JSON response reports its cost in metrics.cost_dollars (frontmatter cost_dollars with format=context). An empty balance answers 402.
  • Rate limits are per key, per endpoint, per second, set in the console; responses carry X-RateLimit-* headers and 429 carries Retry-After.

Endpoints

  • Full content is charged per token: cap it with maxContentLength and limit. extracts are free.
  • POST /api/v1/search takes the same parameters as a JSON body (and location fields); not in this entry.

Fetch and extract a web page

  • $0.001 per request plus $0.05 per 1M tokens of content. 422 and 503 answers are free.

List news feed topics

  • Free.

Get a curated topic news feed

  • results are ranked by relevance; news holds the same articles newest first. Charged for ranking plus per token of content.