Skip to content

Endpoint: Runs

A measurement (a run) is a single job in which all of a brand’s active prompts are asked on all platforms and the result is analysed. It takes minutes and it spends money, so it is not a synchronous operation: it is queued, and then its status is polled.

GET /v1/runs
GET /v1/runs/{run_id}
POST /v1/runs

GET /v1/runs query parameters

NameTypeRequiredDescription
brand_idUUIDNoThe measurements of a single brand. Every brand in the organization if omitted
statusstringNoqueued, collecting, analyzing, done, failed. Comma separated for several
triggerstringNoonboarding, manual, scheduled
date_fromstringNoYYYY-MM-DD, filters on the measurement day
date_tostringNoYYYY-MM-DD
sortstringNocreated_at, finished_at. Prefix with - for descending. Default -created_at
limitintegerNoPage size, default 50, 200 at most
cursorstringNoThe meta.next_cursor value from the previous response

POST /v1/runs body fields

NameTypeRequiredDescription
brand_idUUIDYesThe brand to measure
platformsarrayNoThe platform keys to measure. Every platform in the plan if omitted
notestringNoA short note for your own records, 200 characters at most

The trigger field is not sent. Every measurement queued from the API is marked manual; scheduled belongs only to runs started by the frequency setting, and onboarding only to the first run of a setup.

Terminal window
# queue the measurement
curl -X POST "https://api.zeoradar.com/v1/runs" \
-H "Authorization: Bearer $ZEO_RADAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"brand_id": "8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5",
"platforms": ["chat_gpt", "gemini", "claude", "perplexity", "aimode"]
}'
# poll its status
curl "https://api.zeoradar.com/v1/runs/b21c74e9-0a35-4d88-9f27-51ac3e6b8042" \
-H "Authorization: Bearer $ZEO_RADAR_API_KEY"

Queueing returns 202 Accepted:

{
"data": {
"id": "b21c74e9-0a35-4d88-9f27-51ac3e6b8042",
"brand_id": "8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5",
"trigger": "manual",
"status": "queued",
"date": null,
"started_at": null,
"finished_at": null,
"answers_count": 0,
"cost_usd": 0,
"error": null,
"created_at": "2026-08-27T09:18:07Z",
"estimated_answers": 150,
"platforms": ["chat_gpt", "gemini", "claude", "perplexity", "aimode"]
},
"meta": {
"request_id": "req_01K3ZAY6W1Q3F8ND5K",
"generated_at": "2026-08-27T09:18:07Z",
"count": 1,
"next_cursor": null
},
"error": null
}

A finished measurement also carries the snapshot summary:

{
"data": {
"id": "b21c74e9-0a35-4d88-9f27-51ac3e6b8042",
"brand_id": "8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5",
"trigger": "manual",
"status": "done",
"date": "2026-08-24",
"started_at": "2026-08-24T04:12:55Z",
"finished_at": "2026-08-24T04:41:19Z",
"answers_count": 150,
"cost_usd": 3.7412,
"error": null,
"created_at": "2026-08-24T04:12:41Z",
"snapshot": {
"visibility": 0.412000,
"share_of_voice": 0.187400,
"avg_position": 2.310,
"citation_share": 0.094600,
"sentiment_score": 0.784000,
"by_platform": {
"ChatGPT": 0.466667,
"Gemini": 0.400000,
"Claude": 0.366667,
"Perplexity": 0.500000,
"Google AI Mode": 0.326667
}
},
"coverage": {
"platforms": ["chat_gpt", "gemini", "claude", "perplexity", "aimode"],
"missing": []
}
},
"meta": {
"request_id": "req_01K3ZB0C4X9G2H7TM1",
"generated_at": "2026-08-27T09:18:44Z",
"count": 1,
"next_cursor": null
},
"error": null
}

On a failed measurement status is failed, the error field carries the reason and finished_at is filled in. A half finished job is never left in the collecting state.

HTTPerror.codeWhen
400invalid_parameterplatforms contains an unrecognised key
401invalid_api_keyThe key is wrong or has been revoked
403insufficient_scopeA measurement was queued with a read scoped key
403insufficient_creditsThe remaining credit does not cover the answers the measurement would produce
403plan_requiredA requested platform is not covered by the plan
404not_foundbrand_id or run_id does not exist, or belongs to another organization
409run_in_progressThe same brand already has a measurement in queued, collecting or analyzing
422validation_failedThe brand has no active prompts, or the brand is in onboarding and its setup is not finished
429rate_limitedThe hourly measurement limit is used up
  • The statuses and what they mean. The lifecycle runs one way and no intermediate state is skipped:

    StatusWhat it means
    queuedThe job is in the queue, nobody has picked it up yet
    collectingAnswers are being collected. This is the stage where credit is spent
    analyzingCollection is done; citations are being resolved, brand mentions found, sentiment evaluated
    doneThe snapshot has been written and the report endpoints have started returning this measurement
    failedThe job stopped halfway, the reason is in the error field
  • The polling interval should be 30 seconds. A typical measurement takes minutes; polling once a second does nothing except burn your rate limit. A stable approach is to poll for the first time after 60 seconds and then every 30 seconds.

  • Only one measurement runs per brand at a time. A second request is not held in a queue, it is rejected with 409 run_in_progress. Managing the queue on the client side is better than two measurements writing into the same day.

  • cost_usd is the real cost, not an estimate. It is 0 while queued and is written when the job finishes. The same information is also recorded at organization level in usage_events.

  • A measurement cannot be cancelled. There is no endpoint that stops a queued job, and once collection has started the credit spent cannot be recovered.

  • If coverage.missing is not empty, the measurement is incomplete. If an engine did not answer that day its name is written into this list, and that platform’s visibility is not counted as zero, it is left out of the calculation entirely.

feedback.question