football-docs 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +76 -3
  2. package/data/docs.db +0 -0
  3. package/docs/driblab/api-access.md +14 -0
  4. package/docs/driblab/api-endpoints.md +3 -0
  5. package/docs/driblab/data-model.md +169 -44
  6. package/package.json +1 -1
  7. package/docs/_reference/skillcorner-crunch-help/getting-started-api-access-dynamic-events.md +0 -134
  8. package/docs/_reference/skillcorner-crunch-help/getting-started-api-access-our-tracking-data.md +0 -160
  9. package/docs/_reference/skillcorner-crunch-help/getting-started-best-practice-analysis-guidance.md +0 -16
  10. package/docs/_reference/skillcorner-crunch-help/getting-started-dynamic-events-check.md +0 -33
  11. package/docs/_reference/skillcorner-crunch-help/getting-started-explore-game-intelligence-data-1.md +0 -37
  12. package/docs/_reference/skillcorner-crunch-help/getting-started-explore-game-intelligence-data.md +0 -29
  13. package/docs/_reference/skillcorner-crunch-help/getting-started-first-requests.md +0 -99
  14. package/docs/_reference/skillcorner-crunch-help/getting-started-generate-visual-reports.md +0 -90
  15. package/docs/_reference/skillcorner-crunch-help/getting-started-make-your-first-queries.md +0 -92
  16. package/docs/_reference/skillcorner-crunch-help/getting-started-off-ball-run-sportscode-xml.md +0 -32
  17. package/docs/_reference/skillcorner-crunch-help/getting-started-on-ball-engagement-video-definitio.md +0 -15
  18. package/docs/_reference/skillcorner-crunch-help/getting-started-python-retrieve-dynamic-events-fil.md +0 -102
  19. package/docs/_reference/skillcorner-crunch-help/getting-started-python-retrieve-game-intelligence-.md +0 -158
  20. package/docs/_reference/skillcorner-crunch-help/getting-started-python-sync-your-database-with-ski.md +0 -192
  21. package/docs/_reference/skillcorner-crunch-help/getting-started-run-detection-and-classification.md +0 -131
  22. package/docs/_reference/skillcorner-crunch-help/getting-started-skill-corner-tracking-data.md +0 -82
  23. package/docs/_reference/skillcorner-crunch-help/getting-started-skillcorner-python-client.md +0 -70
  24. package/docs/_reference/skillcorner-crunch-help/getting-started-using-skillcorner-api.md +0 -146
  25. package/docs/_reference/skillcorner-crunch-help/getting-started.md +0 -43
  26. package/docs/_reference/skillcorner-crunch-help/glossaries-coordinates-distance-speeds-and-directi.md +0 -149
  27. package/docs/_reference/skillcorner-crunch-help/glossaries-dynamic-events-csv-specifications.md +0 -15
  28. package/docs/_reference/skillcorner-crunch-help/glossaries-forward-momentum.md +0 -13
  29. package/docs/_reference/skillcorner-crunch-help/glossaries-game-intelligence-v2-metrics.md +0 -17
  30. package/docs/_reference/skillcorner-crunch-help/glossaries-in-possession-package-content.md +0 -19
  31. package/docs/_reference/skillcorner-crunch-help/glossaries-line-breaking-passes.md +0 -103
  32. package/docs/_reference/skillcorner-crunch-help/glossaries-off-ball-run-dynamic-events.md +0 -197
  33. package/docs/_reference/skillcorner-crunch-help/glossaries-overcoming-pressure.md +0 -105
  34. package/docs/_reference/skillcorner-crunch-help/glossaries-passing-metrics-1.md +0 -144
  35. package/docs/_reference/skillcorner-crunch-help/glossaries-passing-moment-frame-selection.md +0 -19
  36. package/docs/_reference/skillcorner-crunch-help/glossaries-peak-sprint-velocity.md +0 -26
  37. package/docs/_reference/skillcorner-crunch-help/glossaries-phases-of-play-video-definitions.md +0 -15
  38. package/docs/_reference/skillcorner-crunch-help/glossaries-physical-data-glossary.md +0 -127
  39. package/docs/_reference/skillcorner-crunch-help/glossaries-running-off-ball-metrics-1.md +0 -135
  40. package/docs/_reference/skillcorner-crunch-help/glossaries.md +0 -43
  41. package/docs/_reference/skillcorner-crunch-help/index.md +0 -33
  42. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-pass-completion-probabilit.md +0 -15
  43. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-passing-option.md +0 -30
  44. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-physical-load-prediction-m.md +0 -63
  45. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-pressure-detection.md +0 -46
  46. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-pressure-intensity.md +0 -80
  47. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-threat.md +0 -40
  48. package/docs/_reference/skillcorner-crunch-help/models-general-concepts.md +0 -37
  49. package/docs/_reference/skillcorner-crunch-help/product-updates-1-changelog-2025.md +0 -57
  50. package/docs/_reference/skillcorner-crunch-help/product-updates-1-game-intelligence-v2-migration.md +0 -64
  51. package/docs/_reference/skillcorner-crunch-help/product-updates-1-product-updates.md +0 -200
  52. package/docs/_reference/skillcorner-crunch-help/product-updates-1.md +0 -25
  53. package/docs/_reference/skillcorner-crunch-help/tool-box-api-data-version.md +0 -255
  54. package/docs/_reference/skillcorner-crunch-help/tool-box-data-availability.md +0 -55
  55. package/docs/_reference/skillcorner-crunch-help/tool-box-python-event-tracking-synchronization-1.md +0 -442
  56. package/docs/_reference/skillcorner-crunch-help/tool-box-python-event-tracking-synchronization.md +0 -276
  57. package/docs/_reference/skillcorner-crunch-help/tool-box-python-off-ball-runs-radar-plots.md +0 -69
  58. package/docs/_reference/skillcorner-crunch-help/tool-box-rule-based-event-synchronisation.md +0 -44
  59. package/docs/_reference/skillcorner-crunch-help/tool-box.md +0 -35
  60. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-averaging-per-match-per-even.md +0 -179
  61. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-benchmarking-normalisation.md +0 -27
  62. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-data-quality-standards.md +0 -45
  63. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-physical-data-glossary-1-1.md +0 -54
  64. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-physical-data-glossary-1.md +0 -25
  65. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-pitch-modelisation.md +0 -27
  66. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-playing-time-info.md +0 -133
  67. package/docs/_reference/skillcorner-crunch-help/working-with-the-data.md +0 -43
package/README.md CHANGED
@@ -4,7 +4,7 @@ Searchable football data provider and tooling documentation for AI coding agents
4
4
 
5
5
  **Who it's for:** Developers and analysts who use AI coding tools (Claude Code, Cursor, VS Code Copilot) to work with football data. Works with any tool that supports MCP.
6
6
 
7
- **What it does:** Gives your AI agent a searchable index of documentation for 23 football data providers and tools — event types, qualifier IDs, coordinate systems, API endpoints, data models, identity surfaces, and cross-provider comparisons for the data providers (StatsBomb, Opta, Wyscout, Impect, SkillCorner, Sportradar, TheSportsDB, FMDB Pro, TransferRoom, and more), plus the open-source libraries people build with (kloppy, mplsoccer, socceraction, soccerdata, floodlight, fast-forward, unravelsports, and more). Your agent looks up the real docs instead of guessing from training data.
7
+ **What it does:** Gives your AI agent a searchable index of documentation for 24 football data providers and tools — event types, qualifier IDs, coordinate systems, API endpoints, data models, identity surfaces, and cross-provider comparisons for the data providers (StatsBomb, Opta, Wyscout, Impect, SkillCorner, Sportradar, TheSportsDB, FMDB Pro, TransferRoom, and more), plus the open-source libraries people build with (kloppy, mplsoccer, socceraction, soccerdata, floodlight, fast-forward, unravelsports, and more). Your agent looks up the real docs instead of guessing from training data.
8
8
 
9
9
  **Why not just let the AI figure it out?** LLMs get football data specifics wrong constantly — Opta qualifier IDs, StatsBomb coordinate ranges, API endpoint URLs, library method signatures. These are mutable facts that change across versions. football-docs gives the agent verified, sourced documentation with provenance tracking so you know where every answer came from.
10
10
 
@@ -127,13 +127,13 @@ Provider filters use the indexed provider keys shown by `list_providers`, but co
127
127
  | Sportradar | 30 | api-access, api-endpoints, data-model, charting-and-stories, integration-notes |
128
128
  | socceraction | 34 | SPADL format, VAEP, Expected Threat |
129
129
  | BeSoccer | 14 | api-access, api-endpoints |
130
- | Driblab | 27 | api-access, api-endpoints, data-model |
130
+ | Driblab | 30 | api-access, api-endpoints, data-model |
131
131
  | TheSportsDB | 18 | api-access, api-endpoints, livescore, identity-surfaces |
132
132
  | FotMob | 3 | identity-surfaces |
133
133
  | Soccerdonna | 3 | identity-surfaces |
134
134
  | Transfermarkt | 3 | identity-surfaces |
135
135
 
136
- **2,322 searchable chunks** across 24 providers and tools.
136
+ **2,325 searchable chunks** across 24 providers and tools.
137
137
 
138
138
  > **Impect** documentation is built solely from the public
139
139
  > [ImpectAPI/open-data](https://github.com/ImpectAPI/open-data) repository — a
@@ -213,6 +213,79 @@ npm run ingest -- --provider kloppy # re-ingest one provider (incremental)
213
213
 
214
214
  Each crawled doc carries provenance metadata (source URL, source type, upstream version, crawl timestamp) that is surfaced in search results, so agents can distinguish between curated content and upstream documentation.
215
215
 
216
+ ### Cutting a release
217
+
218
+ **Pushing the tag is the release.** `.github/workflows/release.yml` runs on any
219
+ `v*` tag and does the rest: it re-runs the full check suite, creates the GitHub
220
+ Release, and publishes to npm.
221
+
222
+ ```bash
223
+ # 1. Bump the version in package.json and server.json (three fields in total).
224
+ # Land it on main through a pull request, as `chore: release vX.Y.Z`.
225
+ #
226
+ # 2. Tag the merge commit and push the tag.
227
+ git tag -a v0.11.0 -m "v0.11.0"
228
+ git push origin v0.11.0
229
+ ```
230
+
231
+ Release notes come from the body of the `chore: release vX.Y.Z` commit, so write
232
+ that message as the release notes you want readers to see. The workflow reads it
233
+ from the second parent when the tag sits on a merge commit, strips the commit
234
+ trailers, and falls back to GitHub's generated notes if the body is empty.
235
+
236
+ Three properties worth knowing, because each one exists to stop a specific
237
+ failure:
238
+
239
+ - **The tag must match `package.json`.** A mismatch fails the job before
240
+ anything is created or published, so a version can never ship under another
241
+ version's name.
242
+ - **The full suite runs again.** A tag can be pushed to any commit, including
243
+ one that never went through a pull request, so the release path cannot assume
244
+ CI already passed on that tree.
245
+ - **Re-running is safe.** An existing Release is left alone and an
246
+ already-published version is skipped, so a failed job can simply be re-run.
247
+
248
+ **There is no npm token in this repository.** Publishing uses npm
249
+ [trusted publishing](https://docs.npmjs.com/trusted-publishers): the registry
250
+ authenticates the workflow itself over OIDC, against a trust configuration on the
251
+ package that names this repository and this workflow file. Publishing rights are
252
+ bound to `release.yml` rather than to a secret that would work from anywhere it
253
+ leaked to, and there is nothing to rotate.
254
+
255
+ That trust was configured once, with the npm CLI:
256
+
257
+ ```bash
258
+ npm trust github football-docs \
259
+ --repo withqwerty/football-docs \
260
+ --file release.yml \
261
+ --allow-publish
262
+ ```
263
+
264
+ `npm trust list football-docs` shows it; `npm trust revoke` removes it. **Renaming
265
+ `release.yml`, or publishing from a different workflow, breaks the match** — by
266
+ design. Re-point it with `npm trust github ... --file <new-name>` if the file
267
+ ever moves.
268
+
269
+ Trusted publishing generates [provenance](https://docs.npmjs.com/generating-provenance-statements)
270
+ automatically, so the tarball on npm is attested to this repository and this
271
+ workflow run without the workflow asking for it.
272
+
273
+ Two consequences worth knowing:
274
+
275
+ - **The release job runs on Node 24.** Trusted publishing needs npm >= 11.5.1 and
276
+ Node 22 still ships npm 10. The whole job uses one Node version, because
277
+ switching mid-job would leave `better-sqlite3`'s native binding built for the
278
+ wrong ABI and `pnpm ingest` would fail on it. Node 24 is in the CI matrix for
279
+ the same reason: a release must not be the first time the suite meets it.
280
+ - **The release job does not cache dependencies.** This is the tree that gets
281
+ published, so it is resolved fresh from the lockfile rather than rehydrated
282
+ from a cache that earlier runs could have poisoned.
283
+
284
+ Note that `prepublishOnly` runs `pnpm build && pnpm ingest`, which rebuilds
285
+ `data/docs.db`. Publishing by hand therefore leaves that file dirty in the
286
+ working tree; the content is unchanged, only SQLite's page layout differs, so
287
+ `git checkout data/docs.db` clears it.
288
+
216
289
  ## License
217
290
 
218
291
  MIT
package/data/docs.db CHANGED
Binary file
@@ -60,6 +60,20 @@ logic keyed on 405 as a routing bug will misreport it.
60
60
  403 is worth handling separately from 401: entitlement is per resource, so a
61
61
  valid token can read some competitions and not others.
62
62
 
63
+ **A 403 can also mean the route does not exist.** Checked on 2026-09-22: a
64
+ request to a path the API does not define, such as a stats path with the wrong
65
+ spelling, returns `403` with an AWS API Gateway message about the
66
+ `Authorization` header ("Invalid key=value pair (missing equal-sign)"), not a
67
+ `404`. It reads like an authentication or entitlement failure but is a routing
68
+ one. When a new path returns 403 on a token that works elsewhere, check the path
69
+ spelling before the entitlement.
70
+
71
+ **409 is not in the guide's table.** On 2026-09-22 some requests with a valid
72
+ token returned `409` with no body, for example a player's season physical stats
73
+ and `GET /team/{id}/game-stats`. The guide does not document 409, so its meaning
74
+ is not stated; treat it as "no data available for this request" only after
75
+ confirming with Driblab.
76
+
63
77
  ## Rate limits
64
78
 
65
79
  | Window | Limit |
@@ -68,6 +68,9 @@ own ID, not a year attribute on a competition.
68
68
  endpoint is `GET /season/{id}/players/stats`; the team equivalent is
69
69
  `GET /team/{id}/season/{seasonId}/player-stats`. The two differ in both the
70
70
  hyphen and the plural, and neither spelling works on the other resource.
71
+ Checked against the live API on 2026-09-22: the swapped spelling fails with a
72
+ `403`, not a `404` (see [api-access.md](api-access.md)), so the error looks like
73
+ an entitlement problem rather than a typo.
71
74
 
72
75
  ## Team
73
76
 
@@ -40,6 +40,13 @@ stats { <group>: { <metric>: <number> } }
40
40
  `minutes_played` and `games_played` ride along on the `player` object in stats
41
41
  responses, so per-90 normalisation needs no second call.
42
42
 
43
+ **Game-level player rows are flat.** In live responses (checked 2026-09-22),
44
+ `GET /game/{id}/player-stats` does not nest `player`, `team` and `season`
45
+ objects. Each row carries flat camelCase keys instead: `playerId`, `playerName`,
46
+ `playerPosition`, `teamId`, `teamName`, `seasonId`, `seasonName`,
47
+ `minutesPlayed`, and `stats`. A parser written for the season-level rows will not
48
+ find `player.id` here.
49
+
43
50
  The guide does not state how any metric is normalised. Judging by the names and
44
51
  the sample values, the counting metrics (`shots`, `passes`, `tackles`) look like
45
52
  totals, while `*Pct`, `*Efficiency`, `catching`, `handPassing`, `shooting` and
@@ -48,61 +55,162 @@ comparing players — do not assume per-90.
48
55
 
49
56
  ## Technical stat groups
50
57
 
51
- Seven groups for players; teams add an eighth, `predictive`.
58
+ **The live API does not match the guide here.** The guide's field tables list
59
+ seven player groups in snake_case (`shooting`, `passing`, `association`,
60
+ `defending`, `ball_handling`, `aerial`, `saving`) plus `predictive` for teams.
61
+ Live responses, checked on 2026-09-22 against `GET /season/{id}/players/stats`,
62
+ `GET /player/{id}/season/{seasonId}/stats`, `GET /game/{id}/player-stats`,
63
+ `GET /season/{id}/teams/stats` and `GET /team/{id}/season/{seasonId}/stats`,
64
+ differ in three ways:
65
+
66
+ 1. **Player endpoints use PascalCase group names; team endpoints use
67
+ snake_case.** The same group is `BallHandling` in a player row and
68
+ `ball_handling` in a team row. Key a parser on the endpoint family, not on one
69
+ convention.
70
+ 2. **There are twelve groups, not seven.** Both families add `Carries`,
71
+ `Crosses`, `Turnovers` and `SequenceInvolvement`. Player rows also carry
72
+ `Score`; team rows carry `predictive` instead.
73
+ 3. **The metric lists are longer and partly different.** Some metrics the guide
74
+ places in one group sit in another: `deepProgression` is in `Carries`,
75
+ `dispossessed` in `Turnovers`, and the crossing metrics in `Crosses` rather
76
+ than `Association`.
77
+
78
+ Metric names inside a group are camelCase in both families.
79
+
80
+ ### Player stat groups (live)
81
+
82
+ The same twelve groups and metric sets appear at season level and at game level.
83
+
84
+ **`Shooting`** — `avgShotDistance`, `finishing`, `finishingxGOT`, `goals`,
85
+ `goalsOutBox`, `headedGoals`, `headerPerCross`, `headerPerShot`, `headers`,
86
+ `nonPenaltyGoals`, `offsidesCaught`, `shooting`, `shootingOutBox`, `shots`,
87
+ `shotsOffTarget`, `shotsOnTarget`, `shotsOutBox`, `shotsPerNpg`, `xG`,
88
+ `xGBuildupInTeam`, `xGEfficiency`, `xGOPInTeam`, `xGOnTarget`, `xGPerNpg`,
89
+ `xGPerShot`, `xGSetPiece`
90
+
91
+ **`Passing`** — `averagePassDistance`, `cutbacks`, `deepPasses`, `longBallPct`,
92
+ `longBallReceived`, `longBallSuccessful`, `longBallTotal`,
93
+ `oPPassesIntoOppBoxPct`, `passes`, `passesFinalThirdTotal`,
94
+ `passesFinalThirdTotalPct`, `passesForwardPct`, `passesOPIntoBoxInTeam`,
95
+ `passesOppHalf`, `passesPerLongBall`, `passesReceivedFinalThird`,
96
+ `passesSuccessful`, `passingFinalThird`, `passingFinalThirdPct`,
97
+ `passingOppHalfPct`, `passingOwnHalfPct`, `passingPct`,
98
+ `passingSuccessForwardPct`, `progressivePassesAccurate`,
99
+ `progressivePassesTotalPct`
100
+
101
+ **`Association`** — `assists`, `ballProgression`, `ballProgressionDribbling`,
102
+ `ballProgressionFinalThird`, `ballProgressionOppHalfInTeam`,
103
+ `ballProgressionPassing`, `chancesCreated`, `chancesCreatedOP`,
104
+ `entriesOppBox`, `openPlayKeyPasses`,
105
+ `openPlayPassesIntoOpponentBoxSuccessful`, `progressivePassesReceived`,
106
+ `progressivePassesReceivedFinalThird`, `progressivePassesReceivedIntoBox`,
107
+ `progressivePassesReceivedOppHalf`, `scoringContribution`, `throughBalls`,
108
+ `touchesPerShot`, `xACrosses`, `xAssists`, `xAssistsOpenPlay`,
109
+ `xAssistsSetPiece`, `xGBuildup`, `xGBuildup5pass`, `xGBuildupFinalThird`,
110
+ `xGChain`, `xGChainFinalThird`, `xT`, `xTDribbling`, `xTOpenPlay`,
111
+ `xTPassing`, `xTPassing100Passes`
112
+
113
+ **`Defending`** — `aggressiveActions`, `blockedCrosses`, `blockedShots`,
114
+ `breadth`, `clearances`, `defensiveActions`, `defensiveDistance`,
115
+ `defensiveDuelsPct`, `duelsDefTotal`, `duelsLost`, `duelsPct`, `duelsTotal`,
116
+ `fouls`, `foulsOwnHalfPct`, `highDefensiveActionPct`, `individualPressure`,
117
+ `individualPressureOppHalf`, `interceptions`, `quickRecoveries`,
118
+ `quickRecoveriesPct`, `recoveries`, `recoveriesOppHalf`, `redCards`,
119
+ `tacklesAttempted`, `tacklesSuccessful`, `tacklesWasDribbled`,
120
+ `tacklesWasDribbledFinalThird`, `tacklesWasDribbledFirstThird`,
121
+ `tacklesWasDribbledFouls`, `tacklesWasDribbledSecondThird`, `yellowCards`
122
+
123
+ **`BallHandling`** — `badActionsOwnHalf`, `ballRetention`,
124
+ `ballRetentionOppHalf`, `dribblesAttempted`, `dribblesFinalThird`,
125
+ `dribblesFinalThirdPct`, `dribblesOppHalf`, `dribblesOppHalfPct`,
126
+ `dribblesOwnHalf`, `dribblesOwnHalfPct`, `dribblesWonFinalThird`,
127
+ `dribblesWonOppHalf`, `dribblesWonOwnHalf`, `foulsTaken`, `penaltiesTaken`,
128
+ `successfulDribbles`, `successfulDribblesPct`, `touches`,
129
+ `touchesInOpponentBox`, `touchesOppBoxInTeam`
130
+
131
+ **`Carries`** — `assistEndingCarries`, `averageCarriesProgress`,
132
+ `avgCarriesDistance`, `carries`, `chanceEndingCarries`, `deepProgression`,
133
+ `deepProgressionFinalThird`, `goalEndingCarries`, `progressiveRuns`,
134
+ `shotEndingCarries`
135
+
136
+ **`Aerial`** — `aerialDefensive`, `aerialDefensivePct`, `aerialEfficiency`,
137
+ `aerialOffensive`, `aerialOffensivePct`, `aerialWins`, `aerialWinsPct`,
138
+ `aerialWonDefensive`, `aerialWonOffensive`, `aerials`, `aerialsPctOppBox`,
139
+ `aerialsPctOwnBox`, `aerialsTotalOppHalf`, `aerialsWonOppBox`,
140
+ `aerialsWonOppHalfPct`, `aerialsWonOwnBox`
141
+
142
+ **`Crosses`** — `completedCrosses`, `completedCrossesOP`, `crossEfficiency`,
143
+ `crosses`, `crosses6yardBox`, `crossing`, `crossingOP`
144
+
145
+ **`Turnovers`** — `dispossessed`, `goalEndingHighTurnovers`, `highTurnovers`,
146
+ `shotEndingHighTurnovers`
147
+
148
+ **`SequenceInvolvement`** — `goalEndingSequence`, `shotEndingSequence`
149
+
150
+ **`Saving`** (goalkeepers) — `catching`, `claimAccuracy`, `goalsConceded`,
151
+ `handPassing`, `savesInBox`, `savesInBoxPct`, `savesOutBox`,
152
+ `savesOutOfBoxPct`, `savesPct`, `shotsPerGoal`, `xGFacedOnTargetEfficiency`,
153
+ `xGFacedOnTargetPerGoalReceived`, `xGSavedPerXGFacedOnTarget`
154
+
155
+ **`Score`** — `score`
156
+
157
+ Goalkeepers carry all groups, not only `Saving`; the outfield groups are simply
158
+ mostly zero.
159
+
160
+ ### Team stat groups (live)
52
161
 
53
- **`shooting`** — `xG`, `xGPerShot`, `xGPerNpg`, `xGEfficiency`, `shots`,
54
- `shotsOnTarget`, `shotsOffTarget`, `shotsPerNpg`, `goals`, `nonPenaltyGoals`,
55
- `headers`, `headedGoals`, `shooting`, `finishing`
162
+ Team rows carry `season`, `team` and `stats`. The group names are snake_case and
163
+ most groups are short.
56
164
 
57
- **`passing`** — `passes`, `passesSuccessful`, `passingPct`, `longBallTotal`,
58
- `longBallSuccessful`, `longBallPct`, `passingFinalThird`,
59
- `passingFinalThirdPct`, `passesFinalThirdTotal`, `passesOppHalf`
165
+ **`shooting`** — `goals`, `headedGoals`, `nonPenaltyGoals`, `shots`,
166
+ `shotsOnTarget`, `xG`, `xGPerNpg`, `xGPerShot`, `xGSetPiece`
60
167
 
61
- **`association`** — `xAssists`, `assists`, `xGChain`, `xGBuildup`,
62
- `xGBuildup5pass`, `chancesCreated`, `chancesCreatedOP`, `openPlayKeyPasses`,
63
- `openPlayPassesIntoOpponentBox`, `ballProgression`, `throughBalls`, `crossing`,
64
- `completedCrosses`, `crossEfficiency`, `passesPerLongBall`, `scoringContribution`
168
+ **`association`** — `assists`, `ballProgressionFinalThird`, `directness`,
169
+ `entriesOppBox`, `lengthPerPossession`, `numPossession10Passes`,
170
+ `openPlayPassesIntoOpponentBoxSuccessful`, `passesPerPossession`,
171
+ `passesPerShots`, `possession`, `ppda`, `rivalPossession`, `xAssists`,
172
+ `xGChain`, `xT`, `xTOpenPlay`
65
173
 
66
- **`defending`** — `tackles`, `tacklesWasDribbled`, `interceptions`, `clearances`,
67
- `recoveries`, `individualPressure`, `fouls`, `yellowCards`, `redCards`
174
+ **`defending`** — `aggressiveActions`, `defensiveDistance`, `fouls`,
175
+ `highDefensiveActionPct`, `highDefensiveDistance`, `highRecoveries`,
176
+ `recoveriesOppHalf`, `tacklesWasDribbled`
68
177
 
69
- **`ball_handling`** — `touches`, `touchesInOpponentBox`, `dribblesAttempted`,
70
- `successfulDribbles`, `successfulDribblesPct`, `deepProgression`,
71
- `dispossessed`, `foulsTaken`, `penaltiesTaken`
178
+ **`saving`** — `goalsConceded`, `nonPenaltyGoalsAgainst`, `savesInBox`,
179
+ `savesOutBox`, `shotsAgainst`, `shotsOnTargetAgainst`,
180
+ `shotsOnTargetInBoxAgainst`, `shotsOnTargetOutBoxAgainst`, `xGAgainst`,
181
+ `xGPerNpgAgainst`, `xGPerShotAgainst`, `xGSetPieceAgainst`
72
182
 
73
- **`aerial`** — `aerials`, `aerialWins`, `aerialWinsPct`, `aerialEfficiency`
183
+ **`passing`** — `averagePassDistance`, `passesPerLongBall`, `passingFinalThird`
74
184
 
75
- **`saving`** (goalkeepers) — `shotsAgainst`, `shotsOnTargetAgainst`,
76
- `shotsOnTargetInBoxAgainst`, `shotsOnTargetOutBoxAgainst`, `savesPct`,
77
- `savesInBox`, `savesInBoxPct`, `savesOutBox`, `savesOutOfBoxPct`,
78
- `goalsConceded`, `nonPenaltyGoalsAgainst`, `shotsPerGoal`, `xGPerShotAgainst`,
79
- `xGFacedOnTargetEfficiency`, `xGFacedOnTargetPerGoalReceived`, `catching`,
80
- `claimAccuracy`, `handPassing`
185
+ **`predictive`** — `expectedPoints`, `points`
81
186
 
82
- **`predictive`** (teams only) — `expectedPoints`
187
+ **`ball_handling`** — `penaltiesTaken`, `touchesInOpponentBox`
83
188
 
84
- Goalkeepers carry all groups, not only `saving`; the outfield groups are simply
85
- mostly zero.
189
+ **`turnovers`** — `highTurnovers`, `shotEndingHighTurnovers`
190
+
191
+ **`aerial`** — `aerialDefensivePct`, `aerialWonOffensive`
192
+
193
+ **`crosses`** — `crossingPerXG`
194
+
195
+ **`sequence_involvement`** — `speedSequence`
86
196
 
87
- **An undocumented ninth group.** The response samples for
88
- `GET /game/{id}/player-stats` carry a `crosses` group — `crossing`,
89
- `completedCrosses`, `crossEfficiency` — that the guide's own field table for that
90
- endpoint does not list. The same three metrics also sit inside `association` on
91
- the season-level endpoints. Handle an unexpected group rather than keying off the
92
- documented list.
197
+ **`carries`** — `deepProgression`
93
198
 
94
- **A naming trap.** The guide's field tables spell the ball-handling group
95
- `ball_handing`, while every response sample uses `ball_handling`. Read the key as
96
- `ball_handling` and treat `ball_handing` as a typo in the documentation. The same
97
- kind of slip appears on the player resource: the field table says
98
- `second_nationality`, the sample says `secondary_nationality`.
199
+ ### Naming traps in the guide
99
200
 
100
- Metric names inside a group are **camelCase**; group names and top-level resource
101
- fields are **snake_case**. Both conventions live in the same object.
201
+ The guide's field tables spell the ball-handling group `ball_handing`. Live team
202
+ responses use `ball_handling` and live player responses use `BallHandling`; the
203
+ `ball_handing` spelling appears in neither. The same kind of slip appears on the
204
+ player resource: the field table says `second_nationality`, and live responses
205
+ say `secondary_nationality`.
102
206
 
103
207
  ## Physical stat groups
104
208
 
105
- Four groups, from `/physical-stats` and `/player-physical-stats`:
209
+ Four groups, from `/physical-stats` and `/player-physical-stats`, as the guide
210
+ documents them. These could not be checked against live responses: on
211
+ 2026-09-22 the physical endpoints returned no rows or a 409 for the seasons
212
+ tried, so the casing and metric lists below are the guide's, not observed.
213
+ Given the technical groups, expect them to differ.
106
214
 
107
215
  - **`distance`** — `totalDistance`, `walkingDistance`, `joggingDistance`,
108
216
  `runningDistance`, `hsrDistance`, `sprintDistance`
@@ -121,9 +229,24 @@ inference, not a documented fact — confirm against your own data.
121
229
 
122
230
  ## Arrigo metrics
123
231
 
124
- Driblab's own metric family, in a single group, `out_play`. The guide gives the
125
- metric names but defines none of them, so the readings below come from the names
126
- and from the sample values, not from Driblab.
232
+ Driblab's own metric family. The guide documents a single group, `out_play`.
233
+ Live responses from `GET /season/{id}/arrigo-metrics` (checked 2026-09-22)
234
+ carry **eight** groups, and several names mix an underscore and a space in the
235
+ same key, so quote them exactly:
236
+
237
+ | Group | Metrics |
238
+ |---|---|
239
+ | `out_play` | the bypassing metrics below, plus `bypassedDefendersPerCarry`, `bypassedDefendersPerPass`, `bypassedPlayersPerCarry`, `bypassedPlayersPerPass`, `carriesBypassingPlayers` |
240
+ | `line_breaking passes` | `lineBreakingPasses`, `lineBreakingPassesM`, `lineBreakingPassesMD`, `lineBreakingPassesPerPass`, `lineBreakingThroughBalls`, `linesBrokenByPasses`, `linesBrokenPerPass`, `passesPerLineBreakingPass` |
241
+ | `line_breaking carries` | `carriesPerLineBreakingCarry`, `lineBreakingCarries`, `lineBreakingCarriesD`, `lineBreakingCarriesM`, `lineBreakingCarriesMD`, `lineBreakingCarriesPerCarry`, `linesBrokenByCarries`, `linesBrokenPerCarry` |
242
+ | `line_breaking actions` | `lineBreakingActions`, `lineBreakingActionsD`, `lineBreakingActionsM`, `lineBreakingActionsMD`, `linesBrokenByActions` |
243
+ | `off_ball runs` | `offBallRuns`, `offBallRunsComingShort`, `offBallRunsCrossReceiver`, `offBallRunsOverlap`, `offBallRunsRunAhead`, `offBallRunsRunBehind`, `offBallRunsSupport`, `offBallRunsUnderlap` |
244
+ | `on_ball pressure` | `lightOnBallPressuresPct`, `strongOnBallPressuresPct`, `successfulLightOnBallPressures`, `successfulStrongOnBallPressures`, `totalLightOnBallPressures`, `totalStrongOnBallPressures` |
245
+ | `pass_under pressure` | `passingUnderLightPressure`, `passingUnderStrongPressure`, `successfulPassesUnderLightPressure`, `successfulPassesUnderStrongPressure`, `totalPassesUnderLightPressure`, `totalPassesUnderStrongPressure` |
246
+ | `ball_received` | `passReceiptsInSpace`, `passReceiptsInSpaceCompleted` |
247
+
248
+ The guide defines none of these metrics, so the readings below for `out_play`
249
+ come from the names and from the guide's sample values, not from Driblab.
127
250
 
128
251
  Actions performed: `passesBypassingPlayers`, `passesBypassingDefenders`,
129
252
  `carriesBypassingDefenders`, `bypassedPlayersByPasses`,
@@ -174,7 +297,9 @@ qualifiers.
174
297
  **Lineup** (`GET /game/{id}/lineup`) — positional and timing information per
175
298
  player.
176
299
 
177
- **One endpoint breaks the shape.** `GET /team/{id}/game-stats` returns `stats` as
300
+ **One endpoint breaks the shape, according to the guide.** (Not observed live:
301
+ on 2026-09-22 this endpoint returned `409` for the team tried.)
302
+ `GET /team/{id}/game-stats` returns `stats` as
178
303
  a **flat array of `{name, value}` pairs**, not the nested group object every other
179
304
  stats endpoint uses, and it uses its own metric names: `passing`, `crossing`,
180
305
  `crossesCompleted`, `aerials`, `aerialsWon`, `aerialsPct`, `passingFinalThird`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "football-docs",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Searchable football data provider documentation for AI coding agents. Like Context7 for football data.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.34.4",
@@ -1,134 +0,0 @@
1
- ---
2
- source_url: https://skillcorner.crunch.help/en/getting-started/api-access-dynamic-events
3
- source_type: crunch_help_kb
4
- upstream_version:
5
- crawled_at: 2026-07-13T14:06:38.861Z
6
- ---
7
- The aim of this page is to guide you when accessing SkillCorner Dynamic Events via SkillCorner API.
8
-
9
- The last part of the article provides a code snippet for Python users.
10
-
11
- If you have not already, you can start by reading
12
-
13
- - The glossary section dedicated to [Dynamic Events](https://skillcorner.crunch.help/en/glossaries#dynamic-events).
14
- - [Our article](https://skillcorner.crunch.help/en/getting-started/first-requests) about the global overview of the SkillCorner API. 
15
-
16
- ## Dynamic Events CSV and Sportscode XML
17
-
18
- SkillCorner delivers two data formats.
19
-
20
- - CSV files that contains either one type of Dynamic Events or all Dynamic Events that occurs during a match. You can access the specifications [here](https://skillcorner.crunch.help/en/glossaries/off-ball-runs-csv-specifications).
21
- - Video Analysis XML (Sportscode XML format) files that can be used to track visualise Dynamic Events in video clips in combination with Sportscode, SBG Focus or SBG MatchTracker.
22
-
23
- ## Using the API
24
-
25
- Dynamic events are available through SkillCorner API. 
26
-
27
- The API documentation is available [here](https://skillcorner.com/api/docs/#/match/match_dynamic_events_off_ball_runs_list). You can use this page to test the API.
28
-
29
- The endpoint are
30
-
31
- - https://skillcorner.com/api/match/{match\_id}/dynamic\_events
32
- - https://skillcorner.com/api/match/{match\_id}/dynamic\_events/player\_possessions
33
- - https://skillcorner.com/api/match/{match\_id}/dynamic\_events/passing\_options
34
- - https://skillcorner.com/api/match/{match\_id}/dynamic\_events/off\_ball\_runs
35
-
36
- Where {match\_id} should be replaced with the id of the match you want to access events for.
37
-
38
- Example: _https://skillcorner.com/api/match/911858/dynamic\_events_
39
-
40
- By default the endpoint returns a CSV file containing the Dynamic Events associated with the match\_id you specified assuming
41
-
42
- - The match was processed
43
-
44
- - The Dynamic Events Check is passed (see more [here](https://skillcorner.crunch.help/en/getting-started/dynamic-events-check))
45
-
46
- - There was no error during the generation of the dynamic events.
47
-
48
-
49
- In order to access the Video Analysis XML, you need to specify the query parameter file\_format with the value “sportscode-xml”.
50
-
51
- Example: _https://skillcorner.com/api/match/911858/dynamic\_events/off\_ball\_runs?file\_format=sportscode-xml_
52
-
53
- The file should be available within a couple of seconds.
54
-
55
- ## Manage updates of the Dynamic Events
56
-
57
- Via the data\_collection endpoint, you can determine when the dynamic events were last generated.
58
-
59
- 1. Send a call to the data\_collection endpoint https://skillcorner.com/api/match/{march\_id}/data\_collection where {match\_id} should be replaced with the id of the match you want to access events for.
60
- 2. Look for dynamic\_events\_last\_modified in the response.
61
- 3. The date corresponds to the last time we generated the dynamic events for the specific match ID.
62
-
63
- ## Using Python
64
-
65
- You can use the SkillCorner Python client to access csv and xml files.
66
-
67
- - If you have not installed the package yet go [here](https://skillcorner.crunch.help/en/getting-started/skillcorner-python-client).
68
- - Otherwise make sure you upgrade it using the following command
69
- `pip install -U skillcorner`
70
-
71
- The Python Client documentation is available [here](https://skillcorner.readthedocs.io/en/latest/getting_started.html).
72
-
73
- ### Saving a file
74
-
75
- Here is a snippet you can use to save the data for a given match ID
76
-
77
- - Replace "your\_username", "your\_password", and "your\_match\_id".
78
- - \[optional\] Modify the filepath within the save\_dynamic\_events method if you want to save the files elsewhere
79
- - \[optional\] Change the format of the file to "sportscode-xml" and the filepath accordingly to retrieve the xml rather than the csv file.
80
-
81
- ```
82
- from skillcorner.client import SkillcornerClient
83
-
84
- # Instantiate the client
85
- username = "your_username"
86
- password = "your_password"
87
- client = SkillcornerClient(username=username, password=password)
88
-
89
- # Retrieve the data for a given match ID
90
- match_id = your_match_id
91
-
92
- data_collection = client.get_match_data_collection(match_id)
93
-
94
- # The data is available if the "dynamic_events_check" value is True
95
- if data_collection['dynamic_events_check']:
96
- filepath = f"{match_id}.csv"
97
- client.save_dynamic_events(match_id, params=
98
- {
99
- 'file_format': 'csv'
100
- },
101
- filepath=filepath)
102
- else:
103
- print(f"Match {match_id} does not have Dynamic Events data available")
104
-
105
- ```
106
-
107
- **Opening the CSV**
108
-
109
- Here is a snippet you can use to open a csv for a given match ID
110
-
111
- - Replace "your\_username", "your\_password", and "your\_match\_id".
112
-
113
- ```
114
- from skillcorner.client import SkillcornerClient
115
- import pandas as pd
116
-
117
- # Instantiate the client
118
- username = "your_username"
119
- password = "your_password"
120
- client = SkillcornerClient(username=username, password=password)
121
-
122
- # Retrieve the data for a given match ID
123
- match_id = your_match_id
124
-
125
- data_collection = client.get_match_data_collection(match_id)
126
-
127
- # The data is available if the "dynamic_events_check" value is True
128
- if data_collection['dynamic_events_check']:
129
- file = client.get_dynamic_events(match_id)
130
- dynamic_events_df = pd.read_csv(file)
131
- else:
132
- print(f"Match {match_id} does not have Dynamic Events data available")
133
-
134
- ```