Skip to content

Reference data

Reference records give display names and metadata to IDs in events and markets. Use the same ID to look up the record whether it came from REST, gRPC or RabbitMQ.

Append the ID to the corresponding list path. For example, call GET /local/v1/tournaments/019a2b3c-1000-7000-8000-000000000003 to resolve the match and outright’s tournament.

JSON member gRPC member Edge REST list path Record in the example
content.sportId content.sport_id /local/v1/sports Football (019a2b3c-1000-7000-8000-000000000001)
content.countryId content.country_id /local/v1/countries England (019a2b3c-1000-7000-8000-000000000002)
content.tournamentId or market snapshot tournamentId content.tournament_id or market.tournament_id /local/v1/tournaments Harbor League (019a2b3c-1000-7000-8000-000000000003)
content.teamAId and content.teamBId content.team_a_id and content.team_b_id /local/v1/teams Harbor Albion (019a2b3c-1000-7000-8000-000000000004) and Northbridge Rovers (019a2b3c-1000-7000-8000-000000000005)
markets[].marketTypeId market.markets[].market_type_id /local/v1/market-types Goals Over Under (019a2b3c-1000-7000-8000-000000000006) or Outright (019a2b3c-1000-7000-8000-000000000007)

Every record has id, name and updatedAt. Sports and countries also have a key, such as football or GB-ENG. A tournament has sportId and can have countryId. A team has iconUrl, which may be null. A market type has a key and lists sport-specific labels in sportNames as pairs of sportId and name. sportNames is empty when there are no such labels. For display, use the market’s own name when set, then the label for the event’s sport, then the market type’s name. The TOTALS market type uses Goals Over Under for Football and has the generic name Total.

The tournament lookup returns the record directly.

{
"id": "019a2b3c-1000-7000-8000-000000000003",
"sportId": "019a2b3c-1000-7000-8000-000000000001",
"countryId": "019a2b3c-1000-7000-8000-000000000002",
"name": "Harbor League",
"updatedAt": "2026-10-20T08:15:32.004Z"
}

A missing optional ID needs no lookup. For the Harbor League outright, the competitors are teams. Look up the selection’s participantId with GET /local/v1/teams/{id}. A gRPC client reads reference records through Edge REST because FeedEdge has no catalog lookup RPC.

Request a list such as GET /local/v1/tournaments?updatedSince=2026-10-20T08:15:32.004Z. Edge returns { items, nextCursor } in (updatedAt, id) order. The updatedSince boundary is inclusive, so this request includes the Harbor League record at exactly that timestamp. Upsert by id and use updatedAt to compare revisions of the same record.

As long as nextCursor is non-null, send the token back unchanged as cursor on the same list. Edge keeps the original filter in the cursor. Once you have processed the final page, save the largest processed updatedAt for the next incremental pass and expect to see boundary records again. List requests only include records through Edge’s catch-up watermark, so a by-ID lookup can resolve a record before the list includes it.

For example, GET /local/v1/teams?updatedSince=2026-10-20T08:15:33Z&limit=1 returns Harbor Albion on the first page. Request the next page with the returned token as cursor and the same limit. Northbridge Rovers can follow even when it has the same updatedAt because the cursor also records the last ID.

{
"items": [
{
"id": "019a2b3c-1000-7000-8000-000000000004",
"name": "Harbor Albion",
"iconUrl": null,
"updatedAt": "2026-10-20T08:15:33Z"
}
],
"nextCursor": "bHIxfHRlYW1zfDYzOTI4MDgwOTMzMDAwMDAwMHw2MzkyODA4MDkzMzAwMDAwMDB8MDE5YTJiM2MxMDAwNzAwMDgwMDAwMDAwMDAwMDAwMDQ"
}

For a catalog lookup or page request, Edge can call FeedHub over RabbitMQ. The broker reply wraps the same reference model that the local REST API returns directly. Success uses outcome: "Ok". The optional code is a machine-readable error code when supplied.

Decoded RabbitMQ ReferenceByIdReply<Tournament> body.

{
"schemaVersion": 1,
"outcome": "Ok",
"code": null,
"record": {
"id": "019a2b3c-1000-7000-8000-000000000003",
"sportId": "019a2b3c-1000-7000-8000-000000000001",
"countryId": "019a2b3c-1000-7000-8000-000000000002",
"name": "Harbor League",
"updatedAt": "2026-10-20T08:15:32.004Z"
}
}

Decoded RabbitMQ ReferencePageReply<Tournament> body for the last page.

{
"schemaVersion": 1,
"outcome": "Ok",
"code": null,
"page": {
"items": [
{
"id": "019a2b3c-1000-7000-8000-000000000003",
"sportId": "019a2b3c-1000-7000-8000-000000000001",
"countryId": "019a2b3c-1000-7000-8000-000000000002",
"name": "Harbor League",
"updatedAt": "2026-10-20T08:15:32.004Z"
}
],
"nextCursor": null
}
}