Explore the sports data API quickstart
Concepts

Stable identifiers

Keep joins intact when a display name, roster, or schedule changes.

Choose the right entity

Each ID belongs to an entity type. These examples show how to choose a key for local storage.

PrefixEntityTypical use
evt_EventUpdate a scheduled game and its result in the same row
per_PersonJoin a player's appearances across teams
org_OrganizationAssociate a roster or schedule with a team
cmp_CompetitionGroup seasons and events within a league

Store the complete value

Treat an ID as an opaque string. The short, readable IDs in these docs belong to illustrative records. Store the entire string in a text column, and use a separate column for the current display name. A corrected spelling then requires a single update.

Keep the source's name alongside its identifier if your app uses another catalog. An external number can otherwise resolve to two different teams in two systems. Review ambiguous matches before recording a cross-reference. ID lookup · Mapping guide