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.
Step: Find a match from another id, from "External ids" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/refs?source=bet365&type=fixture&id=203186268
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/external-ids.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.
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.
Step: Follow a merged match, from "External ids" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e7f
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/external-ids.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.
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.
Step: Export every ref, from "External ids" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/refs/export?limit=2
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/external-ids.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.
Step: Export every ref, from "External ids" in the OddsYorkie API documentation.
Write code in this project that does this step and prints or uses the result.
Request: GET https://odds-feed.on-forge.com/api/v2/refs/export?limit=2&cursor=YOUR_SEQ
Read the key from the ODDSYORKIE_KEY environment variable and send it as "Authorization: Bearer <key>". Never write the key into code.
Read https://odds-feed.on-forge.com/docs/external-ids.md for this step first. Then read https://odds-feed.on-forge.com/docs/llms-full.txt for the rest of the API and https://odds-feed.on-forge.com/docs/AGENTS.md for the rules to follow.
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.