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 天免费 · 无需信用卡 · EU 托管
问 API-Football 任何事
通过 AnythingMCP 对 API-Football 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 API-FootballClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 API-Football。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
API-Football 指南
面向主流 AI 客户端的逐步设置。
配置 API-Football
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
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.