{
    "openapi": "3.1.0",
    "info": {
        "title": "5DollarFootballAPI — Football Data API",
        "version": "1.0.0",
        "summary": "Football (soccer) data: live scores, fixtures, standings, match events, corner and card statistics, and bookmaker odds with tick history.",
        "description": "[Affordable Football API](https://5dollarfootballapi.com/) · [Get a free API key](https://5dollarfootballapi.com/signup) · [Full API documentation](https://5dollarfootballapi.com/docs)\n\nThe 5DollarFootballAPI is a read-only REST API. Every response is JSON with a top-level \"success\" flag. All timestamps are UTC (ISO-8601). The base URL is https://api.5dollarfootballapi.com/v1.\n\nAuthenticate every request with your API key in an Authorization header: `Authorization: Bearer fb_live_your_key`. You can also send it as `X-API-Key`. Get a key by creating a free account — no card required. Keys are shown once; store them securely and never embed them in public client-side code.\n\nEach plan has one rate window: {free_quota} on Free, {community_quota} on Community, and a per-minute rate on the paid plans ({pro_quota} on Pro, {ultra_quota} on Ultra). Ultra can go faster on the same data — {ultra_rate_tiers} — picked on your billing page. The window belongs to your account, so every key you create shares it — extra keys are for organising projects, not multiplying quota. Short parallel bursts are fine as long as the window total holds, and there are no daily caps or monthly pools. The hourly plans (Free and Community) also carry a {burst_per_minute}-requests-per-minute ceiling, so a loop left running cannot spend the whole hour in seconds; a request refused by it is not counted against the hour. Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` for the current window. When you exceed the limit you get HTTP 429 with a `Retry-After` header — back off and retry.\n\nList endpoints accept `page` (default 1) and `per_page` (default 50, max 100), and return a `pagination` object: `{ page, per_page, count, has_more }`. Keep requesting the next page while `has_more` is true. The underlying set can change between two page requests (a match kicks off or finishes); for the volatile live view, request `status=live` with a large `per_page` (up to 500) so a single page holds everything.\n\nErrors return `{ \"success\": 0, \"error\": { ... } }` with an HTTP status. The error object has a machine-readable `type` and `code`, a human `message`, an optional `param`, a `doc_url`, and a `request_id` to quote in support. We never return a silent `200` with empty data for a missing resource — you get a proper 404.",
        "termsOfService": "https://5dollarfootballapi.com/terms",
        "contact": {
            "name": "5DollarFootballAPI support",
            "url": "https://5dollarfootballapi.com/contact",
            "email": "contact@5dollarfootballapi.com"
        }
    },
    "servers": [
        {
            "url": "https://api.5dollarfootballapi.com/v1",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "bookmakers",
            "description": "The bookmakers quoted by the odds endpoints."
        },
        {
            "name": "chinasportslottery",
            "description": "Fixtures on sale in China's football lotteries, with their numbers and official Jingcai 1X2 prices."
        },
        {
            "name": "countries",
            "description": "The country master referenced by league and team records."
        },
        {
            "name": "events",
            "description": "The match timeline: goals, corners, yellow and red cards, substitutions and period scores."
        },
        {
            "name": "fixtures",
            "description": "Matches: the daily window and a single fixture, with its score, corners and cards."
        },
        {
            "name": "leagues",
            "description": "Competitions and their seasons, plus a whole season of fixtures."
        },
        {
            "name": "odds",
            "description": "Bookmaker odds for a fixture: current prices and the tick-by-tick price history."
        },
        {
            "name": "standings",
            "description": "League tables — points, and the corner and card tables."
        },
        {
            "name": "statistics",
            "description": "Live match statistics: attacks, shots and possession, with first-half splits."
        },
        {
            "name": "status",
            "description": "Your plan, limits and usage."
        },
        {
            "name": "teams",
            "description": "Clubs and national teams, plus their fixture history."
        }
    ],
    "paths": {
        "/fixtures": {
            "get": {
                "operationId": "fixtures",
                "summary": "List fixtures",
                "description": "The window view: fixtures and results for a time window of up to 24 hours (default: today UTC), or every in-play match with ?status=live. For a whole season or one team's matches, see /v1/leagues/{id}/fixtures and /v1/teams/{id}/fixtures. Add ?include=odds,events,stats to expand every row in place — one call per screen, not one call per match. How far back you can query follows your plan: 3 months on Free, 12 months on Pro, back to 2014 on Ultra.",
                "tags": [
                    "fixtures"
                ],
                "parameters": [
                    {
                        "name": "start_time",
                        "in": "query",
                        "required": false,
                        "description": "Window start as a unix timestamp (seconds, UTC), inclusive. Defaults to 00:00 UTC today; if only end_time is sent, defaults to 24h before it.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "end_time",
                        "in": "query",
                        "required": false,
                        "description": "Window end as a unix timestamp (seconds, UTC), exclusive. Defaults to start_time + 24h. The window may span at most 24 hours — pick any day boundary in any timezone.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "league",
                        "in": "query",
                        "required": false,
                        "description": "Filter by league id. A league id retired by a merge answers 301 league_moved with the surviving id in error.canonical_id (see League merges).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "all | scheduled | live | finished | unknown. Defaults to all. \"live\" returns every in-play match right now, regardless of date; \"unknown\" the rows the feed lost (see Fixture status).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of odds | events | stats — expands each fixture with the Bet365 market lines (odds is Pro and above on lists; Free reads the same markets per fixture at /v1/fixtures/{id}/odds), the event timeline, and the in-play statistics, in the same shapes as the per-fixture endpoints. Caps per_page at 50. odds_full: Only with status=live, and part of the Business plan (contact us to switch it on). Adds an odds_full block to every in-play match: all eleven Bet365 markets with their opening, closing and in-play prices, in the same shape as the bet365 entry of /v1/fixtures/{id}/odds (the fixed goal lines ladder stays there) — one call prices every live match instead of one call per match. A market with no price yet keeps its line with null prices. It refreshes every few seconds and can be combined with odds, events and stats. Anywhere else it is a 400 invalid_include; on other plans, a 403 insufficient_plan.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "esports",
                        "in": "query",
                        "required": false,
                        "description": "true | false. Defaults to false (real football only); true returns esoccer (e-football) matches instead. Esoccer requires the Ultra plan — other plans get a 403 insufficient_plan.",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize team & league names (21 languages besides English, e.g. zh-cn, ja, es, de, pt). Missing translations fall back to English.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include; 500 with status=live, so one page holds every live match).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include; 500 with status=live, so one page holds every live match).",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "id": 422841891,
                                            "league": {
                                                "id": 1385749887,
                                                "name": "USA USL Cup"
                                            },
                                            "teams": {
                                                "home": {
                                                    "id": 659461348,
                                                    "name": "Birmingham Legion FC"
                                                },
                                                "away": {
                                                    "id": 2095841428,
                                                    "name": "Tulsa"
                                                }
                                            },
                                            "kickoff_utc": "2026-07-12T00:00:00+00:00",
                                            "kickoff_ts": 1783814400,
                                            "status": "finished",
                                            "status_reason": null,
                                            "status_code": "full",
                                            "goals": {
                                                "home": 3,
                                                "away": 1
                                            },
                                            "corners": {
                                                "home": 13,
                                                "away": 4
                                            },
                                            "cards": {
                                                "home": {
                                                    "yellow": 1,
                                                    "red": 0
                                                },
                                                "away": {
                                                    "yellow": 4,
                                                    "red": 0
                                                }
                                            },
                                            "odds": {
                                                "1x2": {
                                                    "opening": {
                                                        "home": 1.53,
                                                        "draw": 3.75,
                                                        "away": 5,
                                                        "opened_at": "2026-08-13T07:19:00+00:00"
                                                    },
                                                    "closing": {
                                                        "home": 1.18,
                                                        "draw": 5.5,
                                                        "away": 15
                                                    },
                                                    "inplay": null
                                                },
                                                "asian_handicap": {
                                                    "opening": -0.25,
                                                    "closing": -0.5,
                                                    "inplay": -1
                                                },
                                                "goal_line": {
                                                    "opening": 2.5,
                                                    "closing": 2.75,
                                                    "inplay": 3
                                                },
                                                "corner_line": {
                                                    "opening": 9.5,
                                                    "closing": 10,
                                                    "inplay": 10.5
                                                },
                                                "corner_asian": {
                                                    "opening": 0,
                                                    "closing": -0.5,
                                                    "inplay": null
                                                },
                                                "card_line": {
                                                    "opening": 4.5,
                                                    "closing": 5,
                                                    "inplay": null
                                                },
                                                "card_asian": {
                                                    "opening": 0,
                                                    "closing": 0,
                                                    "inplay": null
                                                },
                                                "asian_handicap_half": {
                                                    "closing": -0.25,
                                                    "inplay": null
                                                },
                                                "goal_line_half": {
                                                    "closing": 1.25,
                                                    "inplay": 1.5
                                                },
                                                "corner_line_half": {
                                                    "closing": 4.5,
                                                    "inplay": 5
                                                }
                                            },
                                            "statistics": {
                                                "attacks": {
                                                    "home": 24,
                                                    "away": 30
                                                },
                                                "dangerous_attacks": {
                                                    "home": 11,
                                                    "away": 14
                                                },
                                                "shots_on_target": {
                                                    "home": 3,
                                                    "away": 5
                                                },
                                                "shots_off_target": {
                                                    "home": 4,
                                                    "away": 2
                                                },
                                                "possession": {
                                                    "home": 51,
                                                    "away": 49
                                                },
                                                "first_half": {
                                                    "attacks": {
                                                        "home": 15,
                                                        "away": 18
                                                    },
                                                    "dangerous_attacks": {
                                                        "home": 6,
                                                        "away": 8
                                                    },
                                                    "shots_on_target": {
                                                        "home": 1,
                                                        "away": 2
                                                    },
                                                    "shots_off_target": {
                                                        "home": 2,
                                                        "away": 0
                                                    },
                                                    "possession": {
                                                        "home": 50,
                                                        "away": 50
                                                    }
                                                }
                                            },
                                            "events": [
                                                {
                                                    "type": "goal",
                                                    "minute": 20,
                                                    "team": "away",
                                                    "count": 1
                                                },
                                                {
                                                    "type": "corner",
                                                    "minute": 23,
                                                    "team": "home",
                                                    "count": 1
                                                },
                                                {
                                                    "type": "yellow_card",
                                                    "minute": 41,
                                                    "team": "home",
                                                    "count": 1
                                                },
                                                {
                                                    "type": "period_score",
                                                    "minute": null,
                                                    "team": null,
                                                    "period": "first_half",
                                                    "score": {
                                                        "home": 0,
                                                        "away": 1
                                                    }
                                                },
                                                {
                                                    "type": "missed_penalty",
                                                    "minute": 55,
                                                    "team": "away"
                                                },
                                                {
                                                    "type": "substitution",
                                                    "minute": 63,
                                                    "team": "away",
                                                    "player_in": "R. Silva",
                                                    "player_out": "J. Costa"
                                                },
                                                {
                                                    "type": "red_card",
                                                    "minute": 78,
                                                    "team": "away"
                                                },
                                                {
                                                    "type": "period_score",
                                                    "minute": null,
                                                    "team": null,
                                                    "period": "second_half",
                                                    "score": {
                                                        "home": 3,
                                                        "away": 1
                                                    }
                                                }
                                            ]
                                        }
                                    ],
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 50,
                                        "count": 1,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/fixtures"
                }
            }
        },
        "/fixtures/{id}": {
            "get": {
                "operationId": "fixture",
                "summary": "Get a fixture",
                "description": "A single fixture with goals, corners, cards and odds lines. Add ?include=events,stats to fold the event timeline and in-play statistics into the same call.",
                "tags": [
                    "fixtures"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Fixture id.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of events | stats — adds the event timeline and in-play statistics, in the same shapes as the per-fixture endpoints.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize the team & league names (21 languages, English fallback).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "id": 422841891,
                                        "league": {
                                            "id": 1385749887,
                                            "name": "USA USL Cup"
                                        },
                                        "teams": {
                                            "home": {
                                                "id": 659461348,
                                                "name": "Birmingham Legion FC"
                                            },
                                            "away": {
                                                "id": 2095841428,
                                                "name": "Tulsa"
                                            }
                                        },
                                        "kickoff_utc": "2026-07-12T00:00:00+00:00",
                                        "kickoff_ts": 1783814400,
                                        "status": "finished",
                                        "status_reason": null,
                                        "status_code": "full",
                                        "round": 12,
                                        "league_season_id": 2288481746,
                                        "goals": {
                                            "home": 3,
                                            "away": 1,
                                            "half_home": 1,
                                            "half_away": 1
                                        },
                                        "corners": {
                                            "home": 13,
                                            "away": 4,
                                            "half_home": 6,
                                            "half_away": 2
                                        },
                                        "cards": {
                                            "home": {
                                                "yellow": 1,
                                                "red": 0
                                            },
                                            "away": {
                                                "yellow": 4,
                                                "red": 0
                                            }
                                        },
                                        "odds": {
                                            "1x2": {
                                                "opening": {
                                                    "home": 1.53,
                                                    "draw": 3.75,
                                                    "away": 5,
                                                    "opened_at": "2026-08-13T07:19:00+00:00"
                                                },
                                                "closing": {
                                                    "home": 1.18,
                                                    "draw": 5.5,
                                                    "away": 15
                                                },
                                                "inplay": null
                                            },
                                            "asian_handicap": {
                                                "opening": -0.5,
                                                "closing": -0.75,
                                                "inplay": -1
                                            },
                                            "goal_line": {
                                                "opening": 2.5,
                                                "closing": 2.75,
                                                "inplay": 3
                                            },
                                            "corner_line": {
                                                "opening": 9.5,
                                                "closing": 10,
                                                "inplay": 10.5
                                            },
                                            "corner_asian": {
                                                "opening": 0,
                                                "closing": -0.5,
                                                "inplay": null
                                            },
                                            "card_line": {
                                                "opening": 4.5,
                                                "closing": 5,
                                                "inplay": null
                                            },
                                            "card_asian": {
                                                "opening": 0,
                                                "closing": 0,
                                                "inplay": null
                                            },
                                            "asian_handicap_half": {
                                                "closing": -0.25,
                                                "inplay": null
                                            },
                                            "goal_line_half": {
                                                "closing": 1.25,
                                                "inplay": 1.5
                                            },
                                            "corner_line_half": {
                                                "closing": 4.5,
                                                "inplay": 5
                                            }
                                        },
                                        "statistics": {
                                            "attacks": {
                                                "home": 24,
                                                "away": 30
                                            },
                                            "dangerous_attacks": {
                                                "home": 11,
                                                "away": 14
                                            },
                                            "shots_on_target": {
                                                "home": 3,
                                                "away": 5
                                            },
                                            "shots_off_target": {
                                                "home": 4,
                                                "away": 2
                                            },
                                            "possession": {
                                                "home": 51,
                                                "away": 49
                                            },
                                            "first_half": {
                                                "attacks": {
                                                    "home": 15,
                                                    "away": 18
                                                },
                                                "dangerous_attacks": {
                                                    "home": 6,
                                                    "away": 8
                                                },
                                                "shots_on_target": {
                                                    "home": 1,
                                                    "away": 2
                                                },
                                                "shots_off_target": {
                                                    "home": 2,
                                                    "away": 0
                                                },
                                                "possession": {
                                                    "home": 50,
                                                    "away": 50
                                                }
                                            }
                                        },
                                        "events": [
                                            {
                                                "type": "goal",
                                                "minute": 20,
                                                "team": "away",
                                                "count": 1
                                            },
                                            {
                                                "type": "corner",
                                                "minute": 23,
                                                "team": "home",
                                                "count": 1
                                            },
                                            {
                                                "type": "yellow_card",
                                                "minute": 41,
                                                "team": "home",
                                                "count": 1
                                            },
                                            {
                                                "type": "period_score",
                                                "minute": null,
                                                "team": null,
                                                "period": "first_half",
                                                "score": {
                                                    "home": 1,
                                                    "away": 1
                                                }
                                            },
                                            {
                                                "type": "missed_penalty",
                                                "minute": 55,
                                                "team": "away"
                                            },
                                            {
                                                "type": "substitution",
                                                "minute": 63,
                                                "team": "away",
                                                "player_in": "R. Silva",
                                                "player_out": "J. Costa"
                                            },
                                            {
                                                "type": "red_card",
                                                "minute": 78,
                                                "team": "away"
                                            },
                                            {
                                                "type": "period_score",
                                                "minute": null,
                                                "team": null,
                                                "period": "second_half",
                                                "score": {
                                                    "home": 3,
                                                    "away": 1
                                                }
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/fixture"
                }
            }
        },
        "/fixtures/{id}/odds": {
            "get": {
                "operationId": "odds",
                "summary": "Fixture odds",
                "description": "Full prices for every market, one entry per requested bookmaker — each of opening, closing and in-play carries the line and both prices. Bet365 (the default) serves twelve markets: 1X2 plus Asian handicap, goal, corner, corner-Asian and card lines — full-time and half-time — both-teams-to-score, and the fixed goal lines ladder (goal_line_fixed: Over/Under 0.5, 1.5, 2.5 … 9.5 quoted side by side, one entry per line with its own opening, closing and in-play prices; null when the book withdrew that line, [] before the ladder feed began on 26 September 2026 or where Bet365 quotes no alternatives). Add more books with ?bookmakers=bet365,pinnacle,… (GET /v1/bookmakers) — they carry 1X2, Asian handicap, goal line and corner line where recorded. Bookmakers beyond bet365 require the Ultra plan. The bet365 1X2 opening carries opened_at (ISO 8601, UTC): when Bet365 first quoted that price.",
                "tags": [
                    "odds"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Fixture id.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "bookmakers",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of bookmaker slugs, default bet365 — e.g. bet365,pinnacle,1xbet. One odds entry per bookmaker; slugs come from GET /v1/bookmakers. Non-bet365 slugs need the Ultra plan.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "required": false,
                        "description": "1x2 | asian | goalline | goalline_fixed | corner | corner_asian | cards | cards_asian | asian_half | goalline_half | corner_half | btts.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "fixture_id": 422841891,
                                        "bookmakers": [
                                            {
                                                "name": "Bet 365",
                                                "slug": "bet365",
                                                "odds": {
                                                    "1x2": {
                                                        "opening": {
                                                            "home": 1.53,
                                                            "draw": 3.75,
                                                            "away": 5,
                                                            "opened_at": "2026-08-13T07:19:00+00:00"
                                                        },
                                                        "closing": {
                                                            "home": 1.18,
                                                            "draw": 5.5,
                                                            "away": 15
                                                        },
                                                        "inplay": null
                                                    },
                                                    "asian_handicap": {
                                                        "opening": {
                                                            "line": -0.25,
                                                            "home": 1.95,
                                                            "away": 1.85
                                                        },
                                                        "closing": {
                                                            "line": -0.5,
                                                            "home": 2.02,
                                                            "away": 1.78
                                                        },
                                                        "inplay": {
                                                            "line": -1,
                                                            "home": 1.9,
                                                            "away": 1.9
                                                        }
                                                    },
                                                    "goal_line": {
                                                        "opening": {
                                                            "line": 2.5,
                                                            "over": 1.9,
                                                            "under": 1.9
                                                        },
                                                        "closing": {
                                                            "line": 2.75,
                                                            "over": 1.85,
                                                            "under": 1.95
                                                        },
                                                        "inplay": {
                                                            "line": 3,
                                                            "over": 2.05,
                                                            "under": 1.75
                                                        }
                                                    },
                                                    "corner_line": {
                                                        "opening": {
                                                            "line": 9.5,
                                                            "over": 1.85,
                                                            "under": 1.85
                                                        },
                                                        "closing": {
                                                            "line": 10,
                                                            "over": 1.9,
                                                            "under": 1.8
                                                        },
                                                        "inplay": {
                                                            "line": 10.5,
                                                            "over": 2,
                                                            "under": 1.7
                                                        }
                                                    },
                                                    "corner_asian": {
                                                        "opening": {
                                                            "line": 0,
                                                            "home": 1.875,
                                                            "away": 1.875
                                                        },
                                                        "closing": null,
                                                        "inplay": null
                                                    },
                                                    "card_line": {
                                                        "opening": {
                                                            "line": 4.5,
                                                            "over": 1.95,
                                                            "under": 1.75
                                                        },
                                                        "closing": {
                                                            "line": 5,
                                                            "over": 1.85,
                                                            "under": 1.85
                                                        },
                                                        "inplay": null
                                                    },
                                                    "card_asian": {
                                                        "opening": {
                                                            "line": 0,
                                                            "home": 1.9,
                                                            "away": 1.8
                                                        },
                                                        "closing": null,
                                                        "inplay": null
                                                    },
                                                    "asian_handicap_half": {
                                                        "opening": {
                                                            "line": -0.25,
                                                            "home": 1.98,
                                                            "away": 1.82
                                                        },
                                                        "closing": {
                                                            "line": -0.25,
                                                            "home": 2.05,
                                                            "away": 1.75
                                                        },
                                                        "inplay": null
                                                    },
                                                    "goal_line_half": {
                                                        "opening": {
                                                            "line": 1,
                                                            "over": 1.95,
                                                            "under": 1.85
                                                        },
                                                        "closing": {
                                                            "line": 1.25,
                                                            "over": 2,
                                                            "under": 1.8
                                                        },
                                                        "inplay": {
                                                            "line": 1.5,
                                                            "over": 2.1,
                                                            "under": 1.7
                                                        }
                                                    },
                                                    "corner_line_half": {
                                                        "opening": {
                                                            "line": 4.5,
                                                            "over": 1.85,
                                                            "under": 1.85
                                                        },
                                                        "closing": {
                                                            "line": 4.5,
                                                            "over": 1.9,
                                                            "under": 1.8
                                                        },
                                                        "inplay": {
                                                            "line": 5,
                                                            "over": 2,
                                                            "under": 1.7
                                                        }
                                                    },
                                                    "btts": {
                                                        "opening": {
                                                            "yes": 1.8,
                                                            "no": 1.95
                                                        },
                                                        "closing": {
                                                            "yes": 1.72,
                                                            "no": 2.05
                                                        },
                                                        "inplay": null
                                                    },
                                                    "goal_line_fixed": [
                                                        {
                                                            "line": 0.5,
                                                            "opening": {
                                                                "over": 1.05,
                                                                "under": 11
                                                            },
                                                            "closing": {
                                                                "over": 1.05,
                                                                "under": 11
                                                            },
                                                            "inplay": null
                                                        },
                                                        {
                                                            "line": 1.5,
                                                            "opening": {
                                                                "over": 1.22,
                                                                "under": 4
                                                            },
                                                            "closing": {
                                                                "over": 1.25,
                                                                "under": 3.75
                                                            },
                                                            "inplay": null
                                                        },
                                                        {
                                                            "line": 2.5,
                                                            "opening": {
                                                                "over": 1.8,
                                                                "under": 2
                                                            },
                                                            "closing": {
                                                                "over": 1.85,
                                                                "under": 1.95
                                                            },
                                                            "inplay": {
                                                                "over": 2.63,
                                                                "under": 1.44
                                                            }
                                                        },
                                                        {
                                                            "line": 3.5,
                                                            "opening": {
                                                                "over": 2.75,
                                                                "under": 1.4
                                                            },
                                                            "closing": {
                                                                "over": 2.88,
                                                                "under": 1.36
                                                            },
                                                            "inplay": {
                                                                "over": 5.5,
                                                                "under": 1.14
                                                            }
                                                        },
                                                        {
                                                            "line": 4.5,
                                                            "opening": {
                                                                "over": 5.5,
                                                                "under": 1.14
                                                            },
                                                            "closing": {
                                                                "over": 6,
                                                                "under": 1.12
                                                            },
                                                            "inplay": null
                                                        },
                                                        {
                                                            "line": 5.5,
                                                            "opening": {
                                                                "over": 11,
                                                                "under": 1.05
                                                            },
                                                            "closing": null,
                                                            "inplay": null
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/odds"
                }
            }
        },
        "/bookmakers": {
            "get": {
                "operationId": "bookmakers",
                "summary": "List bookmakers",
                "description": "The bookmakers accepted by ?bookmakers= on /v1/fixtures/{id}/odds, in display order. Bet365 carries every market and comes with every plan; the rest require Ultra — the coverage table on the docs index shows what each carries.",
                "tags": [
                    "bookmakers"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "name": "Bet 365",
                                            "slug": "bet365"
                                        },
                                        {
                                            "name": "Pinnacle",
                                            "slug": "pinnacle"
                                        },
                                        {
                                            "name": "William Hill",
                                            "slug": "williamhill"
                                        },
                                        {
                                            "name": "Ladbrokes",
                                            "slug": "ladbrokes"
                                        },
                                        {
                                            "name": "Hong Kong Jockey Club",
                                            "slug": "hkjc"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/bookmakers"
                }
            }
        },
        "/fixtures/{id}/odds/history": {
            "get": {
                "operationId": "oddsHistory",
                "summary": "Odds movement history",
                "description": "The full pre-match and in-play tick history for one market — every recorded price/line change with the score at that moment. Bet365 (the default) carries thirteen markets: 1X2, Asian handicap, goal line and corner line (each full-time and half-time), plus corner Asian handicap, card line, card Asian handicap, both-teams-to-score and the fixed goal lines ladder (goalline_fixed — the response groups the page's ticks per line under lines instead of ticks; ?line=2.5 narrows to one line). Any other bookmaker (?bookmaker=, one at a time) carries 1x2, asian, goalline and corner. The whole endpoint requires the Ultra plan or above — Free and Pro keys get a 403 insufficient_plan. On bet365 1x2 the first tick is always the opening /v1/fixtures/{id}/odds serves.",
                "tags": [
                    "odds"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Fixture id.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "bookmaker",
                        "in": "query",
                        "required": false,
                        "description": "One bookmaker slug, default bet365 (see GET /v1/bookmakers). Slugs other than bet365 support only market=1x2 | asian | goalline | corner — any other market value returns a 400 invalid_market.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "required": true,
                        "description": "1x2 | asian | goalline | goalline_fixed | corner | 1x2_half | asian_half | goalline_half | corner_half | corner_asian | cards | cards_asian | btts.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "line",
                        "in": "query",
                        "required": false,
                        "description": "goalline_fixed only: one fixed line (0.5, 1.5 … 9.5), e.g. line=2.5. Default is the whole ladder in one call.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page default 100, max 500; goalline_fixed default and max 1000, which takes a whole match in one call). Ticks are ordered oldest first; goalline_fixed pages the same stream and groups each page per line, so in the rare case a line continues on the next page, append by line.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page default 100, max 500; goalline_fixed default and max 1000, which takes a whole match in one call). Ticks are ordered oldest first; goalline_fixed pages the same stream and groups each page per line, so in the rare case a line continues on the next page, append by line.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "fixture_id": 481163241,
                                        "bookmaker": {
                                            "name": "Bet 365",
                                            "slug": "bet365"
                                        },
                                        "market": "asian",
                                        "ticks": [
                                            {
                                                "minute": null,
                                                "line": -0.75,
                                                "home": 1.8,
                                                "away": 2.05,
                                                "score": {
                                                    "home": null,
                                                    "away": null
                                                },
                                                "recorded_at": "2025-06-21T01:33:14+00:00"
                                            },
                                            {
                                                "minute": null,
                                                "line": -1,
                                                "home": 2.05,
                                                "away": 1.8,
                                                "score": {
                                                    "home": null,
                                                    "away": null
                                                },
                                                "recorded_at": "2025-08-16T13:06:03+00:00"
                                            },
                                            {
                                                "minute": null,
                                                "line": -0.75,
                                                "home": 1.925,
                                                "away": 1.925,
                                                "score": {
                                                    "home": null,
                                                    "away": null
                                                },
                                                "recorded_at": "2025-08-17T09:15:01+00:00"
                                            },
                                            {
                                                "minute": null,
                                                "line": -0.75,
                                                "home": 1.875,
                                                "away": 1.975,
                                                "score": {
                                                    "home": null,
                                                    "away": null
                                                },
                                                "recorded_at": "2025-08-17T11:34:08+00:00"
                                            },
                                            {
                                                "minute": 0,
                                                "line": -0.5,
                                                "home": 1.825,
                                                "away": 2.025,
                                                "score": {
                                                    "home": 0,
                                                    "away": 0
                                                },
                                                "recorded_at": "2025-08-17T13:01:27+00:00"
                                            },
                                            {
                                                "minute": 1,
                                                "line": -0.5,
                                                "home": 1.85,
                                                "away": 2,
                                                "score": {
                                                    "home": 0,
                                                    "away": 0
                                                },
                                                "recorded_at": "2025-08-17T13:02:05+00:00"
                                            },
                                            {
                                                "minute": 2,
                                                "line": -0.5,
                                                "home": 1.825,
                                                "away": 2.025,
                                                "score": {
                                                    "home": 0,
                                                    "away": 0
                                                },
                                                "recorded_at": "2025-08-17T13:03:11+00:00"
                                            },
                                            {
                                                "minute": 3,
                                                "line": -0.75,
                                                "home": 2.025,
                                                "away": 1.825,
                                                "score": {
                                                    "home": 0,
                                                    "away": 0
                                                },
                                                "recorded_at": "2025-08-17T13:04:51+00:00"
                                            },
                                            {
                                                "minute": 8,
                                                "line": -0.75,
                                                "home": 2.05,
                                                "away": 1.8,
                                                "score": {
                                                    "home": 0,
                                                    "away": 0
                                                },
                                                "recorded_at": "2025-08-17T13:09:26+00:00"
                                            },
                                            {
                                                "minute": 8,
                                                "line": -0.5,
                                                "home": 1.825,
                                                "away": 2.025,
                                                "score": {
                                                    "home": 0,
                                                    "away": 0
                                                },
                                                "recorded_at": "2025-08-17T13:09:29+00:00"
                                            }
                                        ]
                                    },
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 10,
                                        "count": 10,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/odds-history"
                }
            }
        },
        "/fixtures/{id}/events": {
            "get": {
                "operationId": "events",
                "summary": "Fixture events",
                "description": "The chronological match timeline: goals, corners, yellow and red cards, substitutions, missed penalties, and half-time / full-time period scores — corners included, which most football APIs leave out.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Fixture id.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "fixture_id": 422841891,
                                        "events": [
                                            {
                                                "type": "corner",
                                                "minute": 3,
                                                "team": "home",
                                                "count": 1
                                            },
                                            {
                                                "type": "goal",
                                                "minute": 4,
                                                "team": "home",
                                                "count": 1
                                            },
                                            {
                                                "type": "yellow_card",
                                                "minute": 27,
                                                "team": "away",
                                                "count": 1
                                            },
                                            {
                                                "type": "period_score",
                                                "minute": null,
                                                "team": null,
                                                "period": "first_half",
                                                "score": {
                                                    "home": 1,
                                                    "away": 0
                                                }
                                            },
                                            {
                                                "type": "missed_penalty",
                                                "minute": 49,
                                                "team": "away"
                                            },
                                            {
                                                "type": "substitution",
                                                "minute": 60,
                                                "team": "home",
                                                "player_in": "R. Lewis",
                                                "player_out": "J. Cole"
                                            },
                                            {
                                                "type": "red_card",
                                                "minute": 78,
                                                "team": "away"
                                            },
                                            {
                                                "type": "period_score",
                                                "minute": null,
                                                "team": null,
                                                "period": "second_half",
                                                "score": {
                                                    "home": 2,
                                                    "away": 1
                                                }
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/events"
                }
            }
        },
        "/fixtures/{id}/statistics": {
            "get": {
                "operationId": "statistics",
                "summary": "Fixture statistics",
                "description": "Live match statistics: attacks, shots and possession — with first-half splits.",
                "tags": [
                    "statistics"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Fixture id.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "fixture_id": 422841891,
                                        "statistics": {
                                            "attacks": {
                                                "home": 112,
                                                "away": 88
                                            },
                                            "dangerous_attacks": {
                                                "home": 54,
                                                "away": 39
                                            },
                                            "shots_on_target": {
                                                "home": 6,
                                                "away": 3
                                            },
                                            "shots_off_target": {
                                                "home": 7,
                                                "away": 5
                                            },
                                            "possession": {
                                                "home": 58,
                                                "away": 42
                                            },
                                            "first_half": {
                                                "attacks": {
                                                    "home": 47,
                                                    "away": 40
                                                },
                                                "dangerous_attacks": {
                                                    "home": 23,
                                                    "away": 18
                                                },
                                                "shots_on_target": {
                                                    "home": 2,
                                                    "away": 1
                                                },
                                                "shots_off_target": {
                                                    "home": 3,
                                                    "away": 2
                                                },
                                                "possession": {
                                                    "home": 55,
                                                    "away": 45
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/statistics"
                }
            }
        },
        "/standings": {
            "get": {
                "operationId": "standings",
                "summary": "Standings",
                "description": "League tables by season, plus corner and card tables via ?type. Corner tables include first-half splits; card tables split yellows and reds. Every response names its \"source\": \"feed\" is the table as the data feed carries it; where the feed tracks none, the current table is computed from finished results and marked \"computed\" (administrative point adjustments excluded). Leagues whose format a computed table cannot represent faithfully return an explicit standings_not_available error — fixtures, results and odds for those leagues are unaffected.",
                "tags": [
                    "standings"
                ],
                "parameters": [
                    {
                        "name": "league",
                        "in": "query",
                        "required": true,
                        "description": "League id. A league id retired by a merge answers 301 league_moved with the surviving id in error.canonical_id (see League merges).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "season",
                        "in": "query",
                        "required": false,
                        "description": "A season as listed for the league on /v1/leagues/{id}: 26/27 for leagues spanning two years, 2026 for calendar-year ones. Defaults to the current season where the feed tracks one.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "total (default) | corner | card.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize team & league names (21 languages besides English, e.g. zh-cn, ja, es, de, pt). Missing translations fall back to English.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "league_id": 3120672213,
                                        "season": "26/27",
                                        "league_season_id": 2288481746,
                                        "type": "corner",
                                        "source": "feed",
                                        "round": 38,
                                        "table": [
                                            {
                                                "position": 1,
                                                "team": {
                                                    "id": 3815543475,
                                                    "name": "Arsenal"
                                                },
                                                "played": 38,
                                                "total_for": 251,
                                                "total_against": 148,
                                                "average_for": 6.6,
                                                "average_against": 3.9,
                                                "points": 86,
                                                "first_half": {
                                                    "total_for": 118,
                                                    "total_against": 71,
                                                    "average_for": 3.1,
                                                    "average_against": 1.9
                                                }
                                            },
                                            {
                                                "position": 2,
                                                "team": {
                                                    "id": 1933592177,
                                                    "name": "Chelsea"
                                                },
                                                "played": 38,
                                                "total_for": 243,
                                                "total_against": 155,
                                                "average_for": 6.4,
                                                "average_against": 4.1,
                                                "points": 81,
                                                "first_half": {
                                                    "total_for": 109,
                                                    "total_against": 76,
                                                    "average_for": 2.9,
                                                    "average_against": 2
                                                }
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/standings"
                }
            }
        },
        "/countries": {
            "get": {
                "operationId": "countries",
                "summary": "List countries",
                "description": "The countries leagues belong to, each with its code — the value /v1/leagues?country= takes. Codes are ISO 3166-1 alpha-2 (DE, BR, JP); the football home nations use their ISO 3166-2 subdivision (GB-ENG, GB-SCT, GB-WLS, GB-NIR); continental and international competitions sit under region codes — EUROPE, ASIA, AFRICA, AMERICAS, OCEANIA and WORLD (e.g. the UEFA Champions League is EUROPE, the World Cup is WORLD). The region rows are listed first, then countries alphabetically by English name.",
                "tags": [
                    "countries"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "description": "Match on country name.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize country names (21 languages besides English, e.g. zh-cn, zh-tw, ja, es, de, pt). Unrecognized non-country rows fall back to English.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "code": "WORLD",
                                            "name": "International"
                                        },
                                        {
                                            "code": "EUROPE",
                                            "name": "Europe"
                                        },
                                        {
                                            "code": "AMERICAS",
                                            "name": "America"
                                        },
                                        {
                                            "code": "AF",
                                            "name": "Afghanistan"
                                        },
                                        {
                                            "code": "AL",
                                            "name": "Albania"
                                        }
                                    ],
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 50,
                                        "count": 5,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/countries"
                }
            }
        },
        "/leagues": {
            "get": {
                "operationId": "leagues",
                "summary": "List leagues",
                "description": "Competitions, filterable by popularity, country, search or recent activity. Each carries the kickoff of its latest fixture on record (last_fixture_utc / last_fixture_ts), so a client can tell a live competition from a dormant one.",
                "tags": [
                    "leagues"
                ],
                "parameters": [
                    {
                        "name": "popular",
                        "in": "query",
                        "required": false,
                        "description": "Set to 1 for popular leagues only.",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "Filter by country code as listed by /v1/countries, e.g. DE or GB-ENG, or a region code for continental and international competitions — EUROPE, ASIA, AFRICA, AMERICAS, OCEANIA, WORLD (case-insensitive). An unknown code returns 400 invalid_country.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "description": "Match on league name.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "seasons — adds each league's seasons array (newest first, exactly one marked current, as /v1/leagues/{id} returns it), so one page tells you the valid ?season= values for every league on it.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "active_since",
                        "in": "query",
                        "required": false,
                        "description": "Unix timestamp (seconds, UTC). Only leagues whose latest fixture on record — played or scheduled — kicks off at or after this instant. Pass \"six months ago\" to skip the competitions the feed has not seen a match in since; without it every competition is returned, including ones dormant for years.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "esports",
                        "in": "query",
                        "required": false,
                        "description": "true | false. Defaults to false (real football only); true returns the curated list of active esoccer (e-football) competitions instead. Esoccer requires the Ultra plan — other plans get a 403 insufficient_plan.",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize team & league names (21 languages besides English, e.g. zh-cn, ja, es, de, pt). Missing translations fall back to English.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "id": 3120672213,
                                            "name": "Premier League",
                                            "short_name": "EPL",
                                            "country": {
                                                "code": "GB-ENG",
                                                "name": "England"
                                            },
                                            "is_popular": true,
                                            "has_standings": true,
                                            "last_fixture_utc": "2026-09-14T19:00:00+00:00",
                                            "last_fixture_ts": 1789412400
                                        },
                                        {
                                            "id": 1810150156,
                                            "name": "La Liga",
                                            "short_name": "LL",
                                            "country": {
                                                "code": "ES",
                                                "name": "Spain"
                                            },
                                            "is_popular": true,
                                            "has_standings": true,
                                            "last_fixture_utc": "2026-09-13T20:00:00+00:00",
                                            "last_fixture_ts": 1789329600
                                        }
                                    ],
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 50,
                                        "count": 2,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/leagues"
                }
            }
        },
        "/leagues/{id}": {
            "get": {
                "operationId": "league",
                "summary": "Get a league",
                "description": "A single competition, with its seasons newest first — the valid ?season= values for /v1/leagues/{id}/fixtures and /v1/standings. Exactly one season is marked current. Not every covered league lists seasons: where the feed defines none, seasons is empty and fixtures are queried by start_time/end_time instead.",
                "tags": [
                    "leagues"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "League id. A league id retired by a merge answers 301 league_moved with the surviving id in error.canonical_id (see League merges).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize the league name (21 languages, English fallback).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "id": 3120672213,
                                        "name": "Premier League",
                                        "short_name": "EPL",
                                        "country": {
                                            "code": "GB-ENG",
                                            "name": "England"
                                        },
                                        "is_popular": true,
                                        "has_standings": true,
                                        "last_fixture_utc": "2026-09-14T19:00:00+00:00",
                                        "last_fixture_ts": 1789412400,
                                        "seasons": [
                                            {
                                                "season": "26/27",
                                                "current": true
                                            },
                                            {
                                                "season": "25/26",
                                                "current": false
                                            },
                                            {
                                                "season": "24/25",
                                                "current": false
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/league"
                }
            }
        },
        "/leagues/{id}/fixtures": {
            "get": {
                "operationId": "leagueFixtures",
                "summary": "League fixtures",
                "description": "One league's fixtures and results, newest kickoff first — the bulk entry point for historical data and backtesting. Defaults to your plan's whole history window plus the upcoming schedule, so page 1 is the current season; narrow it with start_time/end_time (no 24h span cap here), pass ?season where the league lists seasons, or ?order=asc to walk the same set chronologically. Supports the same include, status and lang options as /v1/fixtures.",
                "tags": [
                    "leagues"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "League id. A league id retired by a merge answers 301 league_moved with the surviving id in error.canonical_id (see League merges).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "season",
                        "in": "query",
                        "required": false,
                        "description": "A season as listed for the league on /v1/leagues/{id}, e.g. 2026 or 26/27 — shorthand for that season's kickoff window. Leagues that list no seasons take start_time/end_time instead.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start_time",
                        "in": "query",
                        "required": false,
                        "description": "A [start_time, end_time) kickoff window — unix seconds, UTC, start inclusive, end exclusive, no span limit. Handy for slicing historical data.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "end_time",
                        "in": "query",
                        "required": false,
                        "description": "A [start_time, end_time) kickoff window — unix seconds, UTC, start inclusive, end exclusive, no span limit. Handy for slicing historical data.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "all | scheduled | live | finished | unknown. Defaults to all.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of odds | events | stats — same as /v1/fixtures. Caps per_page at 50.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize team & league names (21 languages, English fallback).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "desc (default, newest kickoff first) or asc. For a stable full-history crawl, pin the window with start_time/end_time rather than relying on the order — the plan history floor moves as you page.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include). Fixtures are ordered by kickoff, newest first by default.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include). Fixtures are ordered by kickoff, newest first by default.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "id": 2688654353,
                                            "league": {
                                                "id": 3120672213,
                                                "name": "Premier League"
                                            },
                                            "teams": {
                                                "home": {
                                                    "id": 3815543475,
                                                    "name": "Arsenal"
                                                },
                                                "away": {
                                                    "id": 1933592177,
                                                    "name": "Chelsea"
                                                }
                                            },
                                            "kickoff_utc": "2026-08-15T16:30:00+00:00",
                                            "kickoff_ts": 1786811400,
                                            "status": "scheduled",
                                            "status_reason": null,
                                            "status_code": null,
                                            "goals": {
                                                "home": null,
                                                "away": null
                                            },
                                            "corners": {
                                                "home": null,
                                                "away": null
                                            },
                                            "cards": {
                                                "home": {
                                                    "yellow": null,
                                                    "red": null
                                                },
                                                "away": {
                                                    "yellow": null,
                                                    "red": null
                                                }
                                            }
                                        }
                                    ],
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 50,
                                        "count": 1,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/league-fixtures"
                }
            }
        },
        "/teams/{id}": {
            "get": {
                "operationId": "team",
                "summary": "Get a team",
                "description": "A single team.",
                "tags": [
                    "teams"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Team id.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize the team name (21 languages, English fallback).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "id": 4171488668,
                                        "name": "Pyunik Yerevan"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/team"
                }
            }
        },
        "/teams/{id}/fixtures": {
            "get": {
                "operationId": "teamFixtures",
                "summary": "Team fixtures",
                "description": "One team's matches, home and away, most recent first — recent form, head-to-head material and upcoming games in one list. Supports the same include, status and lang options as /v1/fixtures.",
                "tags": [
                    "teams"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Team id.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "all | scheduled | live | finished | unknown. Defaults to all; \"scheduled\" lists upcoming games, \"finished\" past results, \"unknown\" the rows the feed lost (see Fixture status).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start_time",
                        "in": "query",
                        "required": false,
                        "description": "Narrow to a [start_time, end_time) kickoff window — unix seconds, UTC, start inclusive, end exclusive, no span limit.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "end_time",
                        "in": "query",
                        "required": false,
                        "description": "Narrow to a [start_time, end_time) kickoff window — unix seconds, UTC, start inclusive, end exclusive, no span limit.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of odds | events | stats — same as /v1/fixtures. Caps per_page at 50.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize team & league names (21 languages, English fallback).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "desc (default, newest kickoff first) or asc.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include). Matches are ordered by kickoff, newest first by default.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include). Matches are ordered by kickoff, newest first by default.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "id": 2295892117,
                                            "league": {
                                                "id": 3120672213,
                                                "name": "Premier League"
                                            },
                                            "teams": {
                                                "home": {
                                                    "id": 3815543475,
                                                    "name": "Arsenal"
                                                },
                                                "away": {
                                                    "id": 2437155481,
                                                    "name": "Everton"
                                                }
                                            },
                                            "kickoff_utc": "2026-08-08T14:00:00+00:00",
                                            "kickoff_ts": 1786197600,
                                            "status": "finished",
                                            "status_reason": null,
                                            "status_code": "full",
                                            "goals": {
                                                "home": 2,
                                                "away": 0
                                            },
                                            "corners": {
                                                "home": 8,
                                                "away": 3
                                            },
                                            "cards": {
                                                "home": {
                                                    "yellow": 1,
                                                    "red": 0
                                                },
                                                "away": {
                                                    "yellow": 2,
                                                    "red": 0
                                                }
                                            }
                                        }
                                    ],
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 50,
                                        "count": 1,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such resource.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/team-fixtures"
                }
            }
        },
        "/chinasportslottery": {
            "get": {
                "operationId": "chinaSportsLottery",
                "summary": "China Sports Lottery",
                "description": "The /v1/fixtures window narrowed to matches on sale in China's state football lotteries, each with its official lottery numbers and the official China Sports Lottery Jingcai (竞彩) 1X2 prices. China Sports Lottery Jingcai (竞彩) is the fixed-odds football lottery with a published price per match; Beijing Single Match (北单) is the Beijing lottery's single-match pool; the Traditional football lottery (传统足球) is the 14-match pool. Same parameters, order and pagination as /v1/fixtures, plus types. Ultra plan and above.",
                "tags": [
                    "chinasportslottery"
                ],
                "parameters": [
                    {
                        "name": "start_time",
                        "in": "query",
                        "required": false,
                        "description": "Window start as a unix timestamp (seconds, UTC), inclusive. Defaults to 00:00 UTC today; if only end_time is sent, defaults to 24h before it.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "end_time",
                        "in": "query",
                        "required": false,
                        "description": "Window end as a unix timestamp (seconds, UTC), exclusive. Defaults to start_time + 24h. The window may span at most 24 hours.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "types",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of jingcailottery (竞彩) | beijingsingle (北单) | traditional (传统足球). Defaults to all three. A fixture is returned when it carries a number for at least one of them, and the lottery block lists only the requested ones.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "league",
                        "in": "query",
                        "required": false,
                        "description": "Filter by league id. A league id retired by a merge answers 301 league_moved with the surviving id in error.canonical_id (see League merges).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "all | scheduled | live | finished | unknown. Defaults to all; \"live\" returns every in-play match on sale right now, regardless of the window.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of odds | events | stats — the same expansions as /v1/fixtures (odds is the Bet365 block, not the Jingcai prices, which are always inline). Caps per_page at 50.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Localize team & league names (21 languages, English fallback).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include). Ordered by kickoff, oldest first, exactly like /v1/fixtures.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Pagination (per_page max 100; 50 with include). Ordered by kickoff, oldest first, exactly like /v1/fixtures.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": [
                                        {
                                            "id": 3335649313,
                                            "league": {
                                                "id": 80636319,
                                                "name": "UEFA Nations League A"
                                            },
                                            "teams": {
                                                "home": {
                                                    "id": 2254257989,
                                                    "name": "England"
                                                },
                                                "away": {
                                                    "id": 3596550507,
                                                    "name": "Spain"
                                                }
                                            },
                                            "kickoff_utc": "2026-09-26T18:45:00+00:00",
                                            "kickoff_ts": 1790448300,
                                            "status": "finished",
                                            "status_reason": null,
                                            "status_code": "full",
                                            "goals": {
                                                "home": 2,
                                                "away": 3,
                                                "half_home": 2,
                                                "half_away": 1
                                            },
                                            "corners": {
                                                "home": 6,
                                                "away": 3,
                                                "half_home": 3,
                                                "half_away": 3
                                            },
                                            "cards": {
                                                "home": {
                                                    "yellow": 3,
                                                    "red": 0
                                                },
                                                "away": {
                                                    "yellow": 0,
                                                    "red": 0
                                                }
                                            },
                                            "lottery": {
                                                "jingcailottery": {
                                                    "number": "周六016",
                                                    "odds": {
                                                        "opening": {
                                                            "home": 2.7,
                                                            "draw": 3.2,
                                                            "away": 2.25,
                                                            "at": 1790300220
                                                        },
                                                        "closing": {
                                                            "home": 3.46,
                                                            "draw": 3.4,
                                                            "away": 1.83,
                                                            "at": 1790433120
                                                        },
                                                        "ticks": 12
                                                    }
                                                },
                                                "beijingsingle": {
                                                    "number": "87"
                                                },
                                                "traditional": {
                                                    "number": "7"
                                                }
                                            }
                                        }
                                    ],
                                    "pagination": {
                                        "page": 1,
                                        "per_page": 50,
                                        "count": 1,
                                        "has_more": true
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/china-sports-lottery"
                }
            }
        },
        "/status": {
            "get": {
                "operationId": "status",
                "summary": "Account status",
                "description": "Your plan, limits and today's usage.",
                "tags": [
                    "status"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "description": "Requests allowed in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Remaining": {
                                "description": "Requests left in the current window.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-RateLimit-Reset": {
                                "description": "Unix timestamp when the window resets.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SuccessEnvelope"
                                },
                                "example": {
                                    "success": 1,
                                    "data": {
                                        "plan": "pro",
                                        "limits": {
                                            "rate_limit": 10,
                                            "rate_window_seconds": 60,
                                            "burst_per_minute": null
                                        },
                                        "usage": {
                                            "today": 124
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameter.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API key.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The resource is outside your plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "description": "Seconds to wait before retrying.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Unexpected server error.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorEnvelope"
                                }
                            }
                        }
                    }
                },
                "externalDocs": {
                    "description": "Endpoint reference",
                    "url": "https://5dollarfootballapi.com/docs/status"
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "Send your key as `Authorization: Bearer <key>`."
            },
            "apiKeyHeader": {
                "type": "apiKey",
                "in": "header",
                "name": "X-API-Key",
                "description": "Alternative to the Authorization header."
            }
        },
        "schemas": {
            "SuccessEnvelope": {
                "type": "object",
                "description": "Every successful response. `data` is the endpoint payload — see the example on each operation. List endpoints add `pagination`.",
                "required": [
                    "success",
                    "data"
                ],
                "properties": {
                    "success": {
                        "type": "integer",
                        "const": 1
                    },
                    "data": {
                        "description": "Endpoint payload: an object, or an array of objects on list endpoints.",
                        "oneOf": [
                            {
                                "type": "object"
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            }
                        ]
                    },
                    "pagination": {
                        "$ref": "#/components/schemas/Pagination"
                    }
                }
            },
            "Pagination": {
                "type": "object",
                "description": "Returned by list endpoints. Keep requesting pages while `has_more` is true.",
                "properties": {
                    "page": {
                        "type": "integer"
                    },
                    "per_page": {
                        "type": "integer"
                    },
                    "count": {
                        "type": "integer",
                        "description": "Rows on this page."
                    },
                    "has_more": {
                        "type": "boolean"
                    }
                }
            },
            "ErrorEnvelope": {
                "type": "object",
                "description": "Every error response. The status code and `error.code` identify the failure; `message` is for humans.",
                "required": [
                    "success",
                    "error"
                ],
                "properties": {
                    "success": {
                        "type": "integer",
                        "const": 0
                    },
                    "error": {
                        "type": "object",
                        "required": [
                            "type",
                            "code",
                            "message"
                        ],
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "Error family, e.g. authentication_error."
                            },
                            "code": {
                                "type": "string",
                                "description": "Machine-readable code, e.g. missing_api_key."
                            },
                            "message": {
                                "type": "string"
                            },
                            "param": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The parameter at fault, when one applies."
                            },
                            "doc_url": {
                                "type": "string"
                            },
                            "request_id": {
                                "type": "string",
                                "description": "Quote this in support requests."
                            }
                        }
                    }
                }
            }
        }
    },
    "security": [
        {
            "bearerAuth": []
        },
        {
            "apiKeyHeader": []
        }
    ],
    "externalDocs": {
        "description": "Full documentation",
        "url": "https://5dollarfootballapi.com/docs"
    }
}