Football xG: Understat Matches, Shots & Tables

io.github.serenido由 GitHub 账号 serenido 发布v1.0.0更新于 Oct 25, 2026

Understat football xG data: xG tables, matches, shots, players and lineups for top 5 leagues + RFPL.

发布方自己的服务:Shots

已验证Streamable HTTP可网页运行网页搜索与抓取数据与分析

概览

AI 生成的概览

托管在 Apify 上的远程 MCP 服务器,提供 Understat 预期进球(xG)数据:六大联赛的积分表、比赛、射门、球员与阵容。

可以做什么
  • 获取 xG 联赛积分表,含 xPts、xG、xGA、npxG、PPDA,可选近期状态表
  • 查询赛程与赛果,含主客队 xG 及胜平负概率
  • 读取球队逐场日志与球员赛季数据(每 90 分钟指标)
  • 拉取每次射门的 xG、位置、情形与射门方式,以及阵容和球员逐场记录
  • 按模式(table、matches、teamMatches、players、shots、lineups、playerMatches)及联赛、赛季筛选
适用场景
适合足球数据分析、博彩研究、依据 xG 与 xA 挑选梦幻足球球员,以及需要 Understat 数据的赛事报道与数据新闻,且不想自己写爬虫的场景。
运行要求
远程 MCP 端点 mcp.apify.com,需在 URL 中指定该工具;首次使用时通过 OAuth 连接 Apify 账户。运行在 Apify 云端,无需本地运行时或代理配置。按行计费。
安装前请注意
按行付费,每 1,000 行 3 美元,从 Apify 账户额度扣除(免费套餐每月含 5 美元)。OAuth 连接会授权服务器访问你的 Apify 账户。数据来自 Understat,经 Apify 云端传输。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Football xG: Understat Matches, Shots & Tables,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.serenido%2Ffootball-xg/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "football-xg-understat-matches-shots-tabl": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=serenido/football-xg-scraper"
    }
  }
}

README

Football xG Scraper API

Get Understat expected goals (xG) data as clean rows: xG league tables, fixtures and results with xG, team match logs (xG, xGA, PPDA), player stats per 90, every shot with xG, lineups. Premier League, La Liga, Bundesliga, Serie A, Ligue 1, RFPL, 2014 to now.

Runs in the cloud on Apify. No servers, no proxy setup, no code to maintain. Open it on Apify

Price: $3 per 1,000 rows. No monthly fee. Apify's free plan gives $5 of usage every month, no credit card needed. Current price.

What you get

  • xG league table: points vs expected points (xPts), xG, xGA, npxG, PPDA, deep passes; optional form table of the last N matches
  • Fixtures and results with home/away xG and Understat's win/draw/loss probabilities
  • Team match logs: xG, xGA, PPDA and deep passes per team per match
  • Player season stats with per-90 numbers (xG90, xA90, xGChain90)
  • Every shot with xG, pitch position, situation and shot type; lineups and player match logs

Quick start: Python

bash
pip install -U apify-client
python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("serenido/football-xg-scraper").call(run_input={    "mode": "table",    "leagues": [        "EPL",        "La_liga"    ],    "seasons": [        "current"    ]})
for item in client.dataset(run.default_dataset_id).iterate_items():    print(item)

Quick start: JavaScript (Node.js)

bash
npm install apify-client
javascript
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("serenido/football-xg-scraper").call({    "mode": "table",    "leagues": [        "EPL",        "La_liga"    ],    "seasons": [        "current"    ]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);

Quick start: one HTTP call

Runs the tool and returns the rows in one request. Good for runs under 5 minutes; for bigger runs use the Python or JavaScript example.

bash
curl -X POST "https://api.apify.com/v2/acts/serenido~football-xg-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \  -H "Content-Type: application/json" \  -d '{"mode": "table", "leagues": ["EPL", "La_liga"], "seasons": ["current"]}'

Get your token in Apify Console > Settings > API & Integrations.

Use it from AI apps (MCP)

Any app that supports remote MCP servers (Claude, ChatGPT, Cursor, VS Code and others) can run this tool for you. Add this server URL: https://mcp.apify.com?tools=serenido/football-xg-scraper. Your Apify account connects on first use. Example config for Cursor:

json
{  "mcpServers": {    "apify": {      "url": "https://mcp.apify.com?tools=serenido/football-xg-scraper"    }  }}

Input example

json
{  "mode": "table",  "leagues": [    "EPL",    "La_liga"  ],  "seasons": [    "current"  ]}

Other modes: matches, teamMatches, players, shots, lineups, playerMatches. All options are listed on the input page.

Output example (one row)

json
{  "type": "shot",  "league": "Premier League (England)",  "season": "2026/27",  "matchId": "31239",  "date": "2026-10-12 19:00:00",  "homeTeam": "Coventry",  "awayTeam": "Newcastle United",  "minute": 5,  "team": "Coventry",  "player": "Jack Rudoni",  "result": "Goal",  "isGoal": true,  "xG": 0.7612,  "x": 0.885,  "y": 0.5,  "situation": "Penalty",  "shotType": "LeftFoot"}

Download as JSON, CSV or Excel, or connect to Make, Zapier or n8n.

Use cases

  • Football models and betting research
  • Fantasy football (FPL) player picks by xG and xA
  • Match reports and data journalism

More tools by Serenido

Support

Found a bug or need a field? Open an issue here or on the Issues tab on Apify.

Use it only for public data and follow the website's terms and the laws that apply to you. This project is not affiliated with the websites it reads.

来源:README.md,提交 2d35e2b

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Oct 25, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Shots 集成