Finding games

Paging with cursors

Use this page to read a list that is longer than one page. Every list endpoint pages the same way, with an opaque cursor.

1. Read the first page

A list holds up to limit items. The default is 100 and the maximum is 500 for matches, competitions and teams. When meta.has_more is true, there is another page.

curl "https://odds-feed.on-forge.com/api/v2/matches?status=scheduled&limit=2" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": [
    { "…": "…" },
    { "…": "…" }
  ],
  "meta": { "next_cursor": "eyJzIjoia2lja29mZiIs...", "has_more": true, "…": "…" },
  "links": { "next": "/api/v2/matches?status=scheduled&limit=2&cursor=eyJzIjoia2lja29mZiIs..." }
}

2. Read the next page

Send meta.next_cursor back as cursor with the same filters, and keep going until has_more is false. Treat the cursor as opaque and never build one yourself.

curl "https://odds-feed.on-forge.com/api/v2/matches?status=scheduled&limit=2&cursor=YOUR_CURSOR" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": [
    { "…": "…" },
    { "…": "…" }
  ],
  "meta": { "next_cursor": null, "has_more": false, "…": "…" },
  "…": "…"
}

On the last page next_cursor is null. links.next is the same request for the next page as a relative path.

3. Start a feed from the beginning or from now

GET /changes is the one list that also accepts two special cursor values. Other endpoints reject them.

Cursor Meaning
Empty, as in cursor= Start from the latest change. The list is empty and meta.cursor is where to resume.
0 Start from the oldest change we keep.
A message id Everything after that message.

Reference

Page sizes.

Endpoint Default limit Maximum
GET /matches, /competitions, /teams 100 500
GET /changes 500 2000
GET /matches/{id}/odds/history 2000 2000
GET /matches/{id}/odds/lines 1000 5000
GET /refs/export 1000 5000
Odds Yorkie

Prices are shown as bet365 offers them. OddsYorkie supplies data only and does not take bets. 18+ only. BeGambleAware.org