Base URLs
Access our multi-sport API through dedicated sport-specific endpoints. The V2 Enhanced API is available for all 20+ sports:Football API (V2)
Basketball API (V2)
Any Sport (V2)
Legacy V1 endpoints remain available for backward compatibility. See the V1 Legacy (Deprecated) section for V1 documentation.
Quick Links
Football API Reference
1000+ leagues including Premier League, La Liga, Champions League
Basketball API Reference
50+ leagues including NBA, EuroLeague, WNBA
All Sports Overview
Tennis, Hockey, Baseball, Cricket, MMA, Esports & more
Authentication
All endpoints require authentication via thex-api-key header. The same API key works across all 20+ sports APIs:
Auto-Resolved Parameters
The upstream service automatically determines the userβs language, timezone, and country based on request context. You do not need to specify default values for these parametersβthey are resolved automatically.
| Parameter | Auto-Resolved | Description |
|---|---|---|
appTypeId | Yes | Application type identifier (default: 5) |
langId | Yes | Language ID (1 = English) |
timezoneName | Yes | Timezone for date/time values (see below) |
userCountryId | Yes | Userβs country for localization |
Timezone Handling
Timezone is automatically resolved based on the userβs country. You can also override it by passing the
timezoneName query parameter.How Auto-Resolution Works
The V2 API uses a country-based mechanism to determine the userβs timezone:- Country detection β Cloudflare identifies the userβs country from their IP address (via the
CF-IPCountryheader). - Country β Timezone mapping β The backend maps the detected country code (e.g.,
DEβEurope/Berlin,USβAmerica/New_York) to the primary IANA timezone for that country. - Applied to responses β All date/time fields in the response use the resolved timezone offset.
Timezone source Field
API responses include a source field in the timezone metadata indicating how the timezone was resolved:
| Source | Meaning |
|---|---|
"auto" | Timezone was auto-resolved from the userβs detected country |
"manual" | Timezone was explicitly set via the timezoneName parameter |
"default" | Fallback to UTC (country could not be detected) |
Manual Override
You can override auto-resolution by passing thetimezoneName query parameter with any valid IANA timezone identifier:
Code Examples
Use these examples to integrate timezone handling into your application. The API auto-resolves timezone from your IP, or you can override it manually.Parsing Timezone-Aware Responses
The API returns ISO 8601 dates with timezone offsets (e.g.,2026-01-07T15:00:00-05:00). Hereβs how to parse them correctly:
Date/Time Format in Responses
All date/time values are returned in ISO 8601 format with the resolved timezone offset:+00:00, -05:00, +09:00) reflects either the auto-resolved timezone or the manually specified one.
Example: Same Match in Different Timezones
The same match displays differentstartTime values depending on the timezone:
Common Timezone Examples
| Region | timezoneName Value |
|---|---|
| UTC/GMT | UTC or Etc/GMT |
| US Eastern | America/New_York |
| US Pacific | America/Los_Angeles |
| UK | Europe/London |
| Central Europe | Europe/Berlin |
| Japan | Asia/Tokyo |
| Australia Sydney | Australia/Sydney |
| India | Asia/Kolkata |
Best Practice: For server-to-server integrations, explicitly specify
timezoneName to ensure consistent behavior regardless of server location. For client-facing applications, rely on auto-resolution for the best user experience.V1 Legacy Note: V1 endpoints also support the
timezoneName parameter for manual override, but auto-resolution may behave differently. For the most reliable timezone handling, use the V2 API.Response Structure
All responses follow a consistent structure with built-in caching information:Common Response Fields
| Field | Type | Description |
|---|---|---|
lastUpdateId | number | Internal versioning ID for incremental updates |
requestedUpdateId | number | Update ID requested by client (-1 = latest data) |
ttl | number | Time To Live in secondsβhow long to cache the response |
Each endpoint has its own built-in cache with a defined TTL. No manual caching or client-side caching is required. The TTL value indicates the recommended cache duration.
Available Endpoints by Sport
Football API Endpoints
Games
Live scores, fixtures, results, and match stats
Competitions
1000+ leagues and tournaments
Athletes
Player stats, game logs, and profiles
Standings
League tables and rankings
Betting
Odds, lines, and predictions
Search
Find players, teams, and competitions
Basketball API Endpoints
Games
Live scores, fixtures, and results
Competitions
NBA, EuroLeague, WNBA, and 50+ leagues
Athletes
Player stats and game logs
Standings
Conference and division rankings
Betting
Lines, props, and predictions
Search
Find players and teams
Rate Limiting
Rate limits are shared across all 20+ sports APIs. Your daily quota applies to your total usage across Football, Basketball, Tennis, and every other sport.
| Header | Description |
|---|---|
X-RateLimit-Limit | Your daily request limit |
X-RateLimit-Remaining | Remaining requests today |
X-RateLimit-Reset | Unix timestamp when limit resets |
Sport IDs Reference
Use these IDs with thesports parameter to filter by sport type:
| ID | Sport | API Status |
|---|---|---|
| 1 | Football (Soccer) | β Available |
| 2 | Basketball | β Available |
| 3 | Tennis | β Available |
| 4 | Ice Hockey | β Available |
| 5 | Handball | β Available |
| 6 | American Football | β Available |
| 7 | Baseball | β Available |
| 8 | Volleyball | β Available |
| 10 | Cycling | β Available |
| 11 | Motorsport | β Available |
| 12 | Rugby | β Available |
| 15 | Table Tennis | β Available |
| 19 | Snooker | β Available |
| 22 | Darts | β Available |
| 26 | Water Polo | β Available |
| 29 | Futsal | β Available |
| 31 | Badminton | β Available |
| 32 | Bandy | β Available |
| 34 | Beach Volleyball | β Available |
| 62 | Cricket | β Available |
| 64 | Minifootball | β Available |
| 71 | Aussie Rules | β Available |
| 72 | Esports | β Available |
| 74 | Floorball | β Available |
| 117 | MMA | β Available |
Next Steps
Quickstart Guide
Get up and running in minutes
Football V2 API
Explore the Football API endpoints
Basketball V2 API
Explore the Basketball API endpoints