For AI agents: visit https://docs.fansunitedmedia.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
The sports namespace exposes the new Sports API — multi‑sport competition data (football,
basketball, tennis, …) with seasons, stages, groups and standings.
Responses are cached and enriched automatically:
Cached with a stale‑while‑revalidate strategy — repeat reads are served instantly from a local
cache (browser: IndexedDB; server: in‑memory; React Native: AsyncStorage) and refreshed in the
background, so live standings stay up to date without extra round‑trips. The cache TTL is the value
configured for your client in the Management Portal (Features → Cache TTL).
Enriched — each competition is returned with its descriptive metadata (name, branding, assets, …), each stage with its resolved stage name, and each standing with its resolved competitor (team / athlete / national team). Text fields (name, shortName) are localized to the lang you configured (see Configuration).
getCompetitionById
Returns a single competition with its season, stages, groups and standings.
The first call for a competition fetches from the network; subsequent calls within the TTL are
served instantly from the local cache.
Once the TTL lapses, the next call still returns instantly (from the cached copy) and refreshes in
the background, so the following call has fresh data.
Pass disableCache: true to force a fresh origin response (bypasses both the SDK cache and the
server cache).
To tune how long the enrichment entities (stage names, competitors, competitions) are cached, use
the cache configuration option.