BotsRated

Help › How-tos

API: GET /v1/export/changes.ndjson

purpose

Change-event export, NDJSON, live for Desk Pro (API name data-pro). One host per call, never x402 (no per-call payment). First line is export_meta with the window actually read. data-starter and alerts tokens get 403.

call

curl -sS 'https://botsrated.com/v1/export/changes.ndjson?host=api.agentweather.io' \
  -H 'Authorization: Bearer brs_…'

sample_response

source: live code. Without a bearer: 401 token_required (never per-call paid). With a Desk Pro (data-pro) token: 200 application/x-ndjson. The first line is export_meta (window_start, truncated), then one change event per line. Headers: X-BotsRated-Export-Window, X-BotsRated-Export-Window-Start, X-BotsRated-Export-Truncated. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true

{
  "service": "BotsRated",
  "error": {
    "code": "token_required",
    "message": "This export needs an active data-pro bearer token.",
    "hint": "See GET /v1/plans.",
    "charged": false,
    "charged_note": "This route is never paid per call; it needs a data-pro bearer token."
  }
}

errors

codewhenfix
token_required (live 401)No data-pro bearer.This needs Desk Pro / data-pro, not a free key and not per-call USDC.
403 plan_does_not_cover_routeAn active plan token that is not Desk Pro (data-pro), for example an alerts token.Use a Desk Pro (data-pro) bearer.