Skip to main content

GET /api/sports

Returns all sports that have bookmaker odds scraped within the last 10 minutes. Use this endpoint at startup to discover which competition codes are active — then use those codes to filter /api/events and /api/odds.

Query Parameters

None.

Response

Response Fields

Notes

  • competition_codes is ordered alphabetically.
  • Codes not recognized by the mapping table fall into a catch-all Other sport. This happens for raw bookmaker-specific codes from Vbet/DaznBet (French-language names). They are valid odds rows but their sport couldn’t be resolved.
  • Cache TTL: 60 seconds.

Code Examples