API-Football
Live and historical football (soccer) data from API-Football v3 (API-Sports): leagues, standings, fixtures with live scores & events, teams, players & statistics, predictions, injuries, transfers and betting odds.
7-day free trial · No credit card · EU-hosted
Ask API-Football anything
Try a real prompt against API-Football via AnythingMCP — Claude calls the tools, returns the answer. Press Enter on your own message to install on Cloud.
Install API-Football on CloudClaude is AI and can make mistakes. Please double-check responses.
Setup in 2 minutes
- 1Start a free trial on cloud.anythingmcp.com.
- 2Click API-Football in the connector store. Paste credentials when prompted.
- 3Mint an MCP API key and point your AI client at the generated MCP URL.
Guides for API-Football
Step-by-step setup for the most popular AI clients.
Setting up API-Football
From the connector definition itself: where to find the credentials, what they need to be allowed to do, and which API this adapter talks to.
API-Football v3 (API-Sports direct). Auth is a single header x-apisports-key (configured for you from API_FOOTBALL_KEY).
RESPONSE ENVELOPE — every endpoint returns the SAME wrapper:
{ get, parameters, errors, results, paging: { current, total }, response: [ ... ] }.
- The real data is ALWAYS in
response.resultsis its count. - IMPORTANT: check
errorseven on HTTP 200 — an empty array/object means OK; a non-emptyerrors(e.g. token/plan/parameter problems) meansresponseis empty and the call failed logically. - Pagination: up to 250 items per page; if
paging.total> 1 passpageto fetch more.
SEASONS: season is the 4-digit START year of the season (e.g. 2023 = season 2023/24).
DATES: YYYY-MM-DD. Times are UTC unless you pass timezone (get valid values from af_timezone).
TYPICAL FLOW (resolve ids first — do NOT guess numeric ids):
- af_leagues(search='Bundesliga') → league id (78) + available seasons.
- af_standings(league=78, season=2023) or af_fixtures(league=78, season=2023, next=10).
- af_fixtures(...) → a fixture
id, then af_fixture_statistics / af_fixture_events / af_fixture_lineups / af_predictions(fixture=id). - Teams: af_teams(search=...) → team id; Players: af_players(team=id, season=2023).
RATE LIMIT — the account is on the FREE plan: 100 requests/day (check anytime with af_status, which costs 0). Be economical: use precise filters, prefer a single fixtures/players call with the right filters over many broad calls, and reuse ids you already resolved. Responses expose x-ratelimit-requests-remaining.
Read-only data API: all tools are GET; nothing is written.
=== ANALYSIS ===
For ANY analysis (preview/prediction, post-match report, team form, head-to-head, standings, top scorers, player scouting, squad, injuries, transfers, odds, live), call af_analysis_playbook FIRST — it returns the exact af_* tool sequence for each case (it makes no API call). HARD RULES: read errors even on HTTP 200 (errors.plan -> season not in plan, tell the user to upgrade); there is NO referee endpoint (referee is only fixture.referee, set late); national-team head-to-head is barely covered; the pre-match odds tool is af_odds_prematch; the players endpoint is paginated (paging.total); never fabricate numbers.
PROFESSIONAL / COMPLETE PREDICTION — when the user wants a 'professional', 'complete' or 'detailed' prediction/analysis, run this FULL checklist in one go and DO NOT stop after the first call:
- af_teams(search=…)->team id, af_fixtures(team=<id>,next=1)->fixture id + opponent id (+ date, venue, referee).
- af_predictions(fixture=<id>) — probabilities, advice, comparison, form.
- af_odds_prematch(fixture=<id>) — bookmaker odds; convert to implied probabilities and COMPARE with the prediction %.
- af_fixture_lineups(fixture=<id>) — formations & XI (if published).
- af_team_statistics(league,season,team) AND af_injuries(league,season,team) for BOTH teams.
- af_topscorers + af_topassists(league,season) AND af_players(team,league,season) — individual player form/ratings.
- af_head_to_head(h2h='idA-idB') — prior meetings. Only AFTER collecting all of the above do you write the analysis. A one-call (predictions-only) answer is NOT professional — always enrich with odds, lineups, player stats, team stats, injuries and top performers.
Your AI is two clicks away from API-Football.
Install the connector, paste your credentials, ask your AI a question. 7-day free trial, no credit card.