OneCallData

Docs

Quickstart

Every product has the same small set of endpoints. This page describes the current code. The service is not public yet, so there is no live base URL: it comes with your early-access invitation.

Status: in development. The API code exists and runs end to end on test data. Live data feeds are not connected yet, there is no billing, and no public service URL. Join the early-access list to be told when that changes.

Endpoints

Method and pathWhat it does
POST /signupBody {"email": "you@example.com"}. Returns an API key. Asking again with the same email returns the same key.
POST /runThe product itself. Header x-api-key. Body has a query and any extra fields the product accepts. Returns {"count": n, "results": [...]}.
POST /watchSaves the same body as a standing order. It re-runs on the product's schedule and you are alerted when results change. Returns a watch_id.
GET /watchesLists your watches.
DELETE /watches/{id}Stops one watch.
GET /watches/{id}/historyEverything a watch has seen. JSON, or add ?format=csv to open it in a spreadsheet.
GET /usageYour meter: credits used and left.
GET /healthLiveness check, for uptime monitors.

Example session

# 1. get a key
curl -X POST "$BASE/signup" -H "content-type: application/json" \
  -d '{"email": "you@example.com"}'

# 2. run a query
curl -X POST "$BASE/run" -H "x-api-key: $KEY" -H "content-type: application/json" \
  -d '{"query": "wireless earbuds"}'

# 3. watch it, then export what it has seen
curl -X POST "$BASE/watch" -H "x-api-key: $KEY" -H "content-type: application/json" \
  -d '{"query": "wireless earbuds"}'
curl "$BASE/watches/1/history?format=csv" -H "x-api-key: $KEY"

Errors

  • 401: missing or unknown x-api-key.
  • 402: out of credits. The body lists the plans.
  • 404 on watch routes: that watch is not on your key.

Test data: until live feeds are connected, results are generated examples. Do not rely on them. Per-product result fields will be documented at launch.

Get a key

The API is not public yet. Join the early-access list.