Team Results
team_resultsA team's football results and odds across one or more seasons of a single football-data.co.uk league, newest first. Default response is compact (closing lines, up to 50 matches); pass bookmakers:"all" or raise limit for more. For a main league with no seasons given, searches the 5 most recent seasons; an extra-league country file already spans its whole history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | Team name, case-insensitive partial match, e.g. "Man United" or "Barcelona". | |
| limit | No | Max matches to return, default 50, max 400. Response reports total_matches and truncated so you know if you need to raise this or narrow the filters. | |
| league | Yes | League code, e.g. "E0" or "SP1". Call list_odds_leagues for the full list. | |
| seasons | No | Optional: specific season codes to search (main-league short codes like "2425", or a year to match against an extra-league Season column). Defaults to the 5 most recent seasons for a main league, or the whole file for an extra league. | |
| bookmakers | No | Optional: "all" for opening+closing odds across every bookmaker, or an array of bookmaker codes (e.g. ["B365","PS"]) for opening+closing on just those. Omit for the compact default — closing-only odds from Pinnacle, Bet365 and the market average/max. |