Skip to content
EchoraAPI-data

Search across the Echora integration guides.

Documentation · API v1esc to close
Start building

Cursor pagination

The first request accepts optional start, end and limit. Default page size is 100; allowed values are 1–1,000.

GET /v1/data/news/pssi?start=2026-11-12&end=2026-11-18&limit=100

Read pagination from the response:

{
"limit": 100,
"has_more": true,
"next_cursor": "<TOKEN_FROM_THE_RESPONSE>"
}

The token above is a placeholder. Use the complete cursor returned by your API response.

Keep the same source and keyword path:

Terminal window
curl --get "$ECHORA_BASE_URL/v1/data/news/pssi" \
--header "X-API-Key: $ECHORA_API_KEY" \
--data-urlencode "cursor=$NEXT_CURSOR"

The cursor restores dates, effective page size and position. There is no need for cursor_start, cursor_end, page numbers or offsets.

  1. Process data and upsert using source_key + id.
  2. If has_more is true, follow next_cursor.
  3. Repeat until has_more is false and next_cursor is null.

There is no total-record count or total-page field. A valid query with no matches returns data: [], has_more: false and next_cursor: null with HTTP 200.

If you repeat start/end/limit alongside a cursor, those values must match the original query. To change any filter, begin a fresh request without a cursor.

The cursor is bound to the account, keyword revision, source and path. A modified token, different scope or changed keyword may return invalid_cursor (400). Authentication and eligibility are checked on every request; a cursor does not bypass key revocation or account expiry.

Treat cursors as opaque. Do not build, edit or depend on their decoded structure. Encoding is not encryption.

Pages read the dataset as it exists when each query runs. Data can be acquired or refreshed during pagination. For periodic synchronization, re-read the historical window you need and upsert records. Do not treat the final cursor as a permanent marker for all future content.

Keep independent cursors for independent source/keyword queries. Your cursor state can live in your application; the API does not require a cursor database or a separate initialization call.