API v1 · Beta

Build your first
football data request.

Stats API is a JSON REST API. Create a key in the dashboard, add it as a Bearer token, and call an available v1 endpoint.

Base URLhttps://stats-api.com/api/v1

Authentication

Send the API key in the HTTP Authorization header. Keys are displayed once, stored as SHA-256 hashes, and can be revoked independently.

curl "https://stats-api.com/api/v1/football/competitions?limit=10" \
  -H "Authorization: Bearer $STATSAPI_KEY"

Pagination

Collection endpoints accept page and limit. The default limit is 25 and the maximum is 100.

ParameterTypeDefault
pageinteger1
limitinteger · 1–10025

Rate limits and quota

Every request counts toward monthly usage, including cache hits and non-2xx application responses after authentication. Response headers show both the per-minute allowance and billing-period quota.

X-RateLimit-LimitX-RateLimit-RemainingX-Quota-LimitX-Quota-RemainingX-Quota-ResetX-StatsAPI-CacheX-Request-ID

Errors

Errors use a consistent object with a stable machine-readable code.

JSON
{
  "error": {
    "code": "invalid_api_key",
    "message": "Provide an active Stats API key…",
    "details": {}
  }
}

Available endpoints

Loading the OpenAPI contract…

35-operation coverage map

Our roadmap uses the mature football API category as a capability benchmark. Only operations in the OpenAPI contract above are available today.