A game

External ids

Use this page to find a match from an id another system uses, to follow a merged match and to export every id we hold. Ids from other systems are called refs.

1. Find a match from another id

Matches carry refs, the ids other systems use for the same match. Look a match up from one with /refs. source is bet365, type is fixture, and id is the bet365 fixture id.

curl "https://odds-feed.on-forge.com/api/v2/refs?source=bet365&type=fixture&id=203186268" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": {
    "id": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e70",
    "kickoff": "2026-11-27T09:40:20+00:00",
    "home": "Brentford",
    "away": "Everton",
    "competition": "Premier League",
    "status": "live",
    "refs": [{ "source": "bet365", "type": "fixture", "id": "203186268" }]
  },
  "meta": {}
}

An id we do not hold returns 404 with the code match_not_found.

2. Follow a merged match

Two ids for the same match are merged into one. The old id keeps working: the response carries the surviving match and meta.redirected_from holds the id you asked for. Store the id in meta.match.

curl "https://odds-feed.on-forge.com/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e7f" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": { "id": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e70", "…": "…" },
  "meta": {
    "generated_at": "2026-11-27T10:41:00.000Z",
    "match": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e70",
    "redirected_from": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e7f"
  },
  "links": { "self": "/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e70" }
}

3. Export every ref

Read /refs/export once to learn every match id, then again to catch up. Each row is one ref, in the order it was created. next_cursor is the last seq, and it is null on the last page.

curl "https://odds-feed.on-forge.com/api/v2/refs/export?limit=2" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": [
    { "seq": 1, "match": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e70", "source": "bet365", "type": "fixture", "id": "203186268" },
    { "seq": 2, "match": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71", "source": "bet365", "type": "fixture", "id": "203186237" }
  ],
  "meta": { "count": 2, "next": 2, "next_cursor": "2" }
}

Send next_cursor back as cursor.

curl "https://odds-feed.on-forge.com/api/v2/refs/export?limit=2&cursor=YOUR_SEQ" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": [
    { "seq": 3, "match": "…", "source": "bet365", "type": "fixture", "id": "…" },
    "…"
  ],
  "meta": { "count": 2, "next": 4, "next_cursor": "4" }
}

Reference

Endpoint Parameters Notes
GET /refs source, type, id, all required source is bet365. type is fixture, team or player depending on what you hold.
GET /refs/export source, type, include=historical, cursor (or after), limit limit is 1 to 5000, default 1000. include=historical adds refs that have been retired.

Ref types you will see on a match: fixture for the match itself, team and player inside tables and player lists. Both endpoints need fixtures:read. Refs from partner sources show only to keys with the refs:partner ability.

Odds Yorkie

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