football-docs 0.3.1 → 0.7.0

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 (203) hide show
  1. package/README.md +53 -53
  2. package/bin/serve.js +6 -1
  3. package/data/docs.db +0 -0
  4. package/dist/crawl.js +59 -1
  5. package/dist/impect-truth.d.ts +61 -0
  6. package/dist/impect-truth.js +250 -0
  7. package/dist/index.d.ts +11 -6
  8. package/dist/index.js +104 -304
  9. package/dist/ingest.js +5 -2
  10. package/dist/tools.d.ts +63 -0
  11. package/dist/tools.js +526 -0
  12. package/docs/_reference/skillcorner-crunch-help/getting-started-api-access-dynamic-events.md +134 -0
  13. package/docs/_reference/skillcorner-crunch-help/getting-started-api-access-our-tracking-data.md +160 -0
  14. package/docs/_reference/skillcorner-crunch-help/getting-started-best-practice-analysis-guidance.md +16 -0
  15. package/docs/_reference/skillcorner-crunch-help/getting-started-dynamic-events-check.md +33 -0
  16. package/docs/_reference/skillcorner-crunch-help/getting-started-explore-game-intelligence-data-1.md +37 -0
  17. package/docs/_reference/skillcorner-crunch-help/getting-started-explore-game-intelligence-data.md +29 -0
  18. package/docs/_reference/skillcorner-crunch-help/getting-started-first-requests.md +99 -0
  19. package/docs/_reference/skillcorner-crunch-help/getting-started-generate-visual-reports.md +90 -0
  20. package/docs/_reference/skillcorner-crunch-help/getting-started-make-your-first-queries.md +92 -0
  21. package/docs/_reference/skillcorner-crunch-help/getting-started-off-ball-run-sportscode-xml.md +32 -0
  22. package/docs/_reference/skillcorner-crunch-help/getting-started-on-ball-engagement-video-definitio.md +15 -0
  23. package/docs/_reference/skillcorner-crunch-help/getting-started-python-retrieve-dynamic-events-fil.md +102 -0
  24. package/docs/_reference/skillcorner-crunch-help/getting-started-python-retrieve-game-intelligence-.md +158 -0
  25. package/docs/_reference/skillcorner-crunch-help/getting-started-python-sync-your-database-with-ski.md +192 -0
  26. package/docs/_reference/skillcorner-crunch-help/getting-started-run-detection-and-classification.md +131 -0
  27. package/docs/_reference/skillcorner-crunch-help/getting-started-skill-corner-tracking-data.md +82 -0
  28. package/docs/_reference/skillcorner-crunch-help/getting-started-skillcorner-python-client.md +70 -0
  29. package/docs/_reference/skillcorner-crunch-help/getting-started-using-skillcorner-api.md +146 -0
  30. package/docs/_reference/skillcorner-crunch-help/getting-started.md +43 -0
  31. package/docs/_reference/skillcorner-crunch-help/glossaries-coordinates-distance-speeds-and-directi.md +149 -0
  32. package/docs/_reference/skillcorner-crunch-help/glossaries-dynamic-events-csv-specifications.md +15 -0
  33. package/docs/_reference/skillcorner-crunch-help/glossaries-forward-momentum.md +13 -0
  34. package/docs/_reference/skillcorner-crunch-help/glossaries-game-intelligence-v2-metrics.md +17 -0
  35. package/docs/_reference/skillcorner-crunch-help/glossaries-in-possession-package-content.md +19 -0
  36. package/docs/_reference/skillcorner-crunch-help/glossaries-line-breaking-passes.md +103 -0
  37. package/docs/_reference/skillcorner-crunch-help/glossaries-off-ball-run-dynamic-events.md +197 -0
  38. package/docs/_reference/skillcorner-crunch-help/glossaries-overcoming-pressure.md +105 -0
  39. package/docs/_reference/skillcorner-crunch-help/glossaries-passing-metrics-1.md +144 -0
  40. package/docs/_reference/skillcorner-crunch-help/glossaries-passing-moment-frame-selection.md +19 -0
  41. package/docs/_reference/skillcorner-crunch-help/glossaries-peak-sprint-velocity.md +26 -0
  42. package/docs/_reference/skillcorner-crunch-help/glossaries-phases-of-play-video-definitions.md +15 -0
  43. package/docs/_reference/skillcorner-crunch-help/glossaries-physical-data-glossary.md +127 -0
  44. package/docs/_reference/skillcorner-crunch-help/glossaries-running-off-ball-metrics-1.md +135 -0
  45. package/docs/_reference/skillcorner-crunch-help/glossaries.md +43 -0
  46. package/docs/_reference/skillcorner-crunch-help/index.md +33 -0
  47. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-pass-completion-probabilit.md +15 -0
  48. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-passing-option.md +30 -0
  49. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-physical-load-prediction-m.md +63 -0
  50. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-pressure-detection.md +46 -0
  51. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-pressure-intensity.md +80 -0
  52. package/docs/_reference/skillcorner-crunch-help/models-general-concepts-threat.md +40 -0
  53. package/docs/_reference/skillcorner-crunch-help/models-general-concepts.md +37 -0
  54. package/docs/_reference/skillcorner-crunch-help/product-updates-1-changelog-2025.md +57 -0
  55. package/docs/_reference/skillcorner-crunch-help/product-updates-1-game-intelligence-v2-migration.md +64 -0
  56. package/docs/_reference/skillcorner-crunch-help/product-updates-1-product-updates.md +200 -0
  57. package/docs/_reference/skillcorner-crunch-help/product-updates-1.md +25 -0
  58. package/docs/_reference/skillcorner-crunch-help/tool-box-api-data-version.md +255 -0
  59. package/docs/_reference/skillcorner-crunch-help/tool-box-data-availability.md +55 -0
  60. package/docs/_reference/skillcorner-crunch-help/tool-box-python-event-tracking-synchronization-1.md +442 -0
  61. package/docs/_reference/skillcorner-crunch-help/tool-box-python-event-tracking-synchronization.md +276 -0
  62. package/docs/_reference/skillcorner-crunch-help/tool-box-python-off-ball-runs-radar-plots.md +69 -0
  63. package/docs/_reference/skillcorner-crunch-help/tool-box-rule-based-event-synchronisation.md +44 -0
  64. package/docs/_reference/skillcorner-crunch-help/tool-box.md +35 -0
  65. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-averaging-per-match-per-even.md +179 -0
  66. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-benchmarking-normalisation.md +27 -0
  67. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-data-quality-standards.md +45 -0
  68. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-physical-data-glossary-1-1.md +54 -0
  69. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-physical-data-glossary-1.md +25 -0
  70. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-pitch-modelisation.md +27 -0
  71. package/docs/_reference/skillcorner-crunch-help/working-with-the-data-playing-time-info.md +133 -0
  72. package/docs/_reference/skillcorner-crunch-help/working-with-the-data.md +43 -0
  73. package/docs/floodlight/compendium-0-compendium.md +21 -0
  74. package/docs/floodlight/compendium-1-data.md +54 -0
  75. package/docs/floodlight/compendium-2-design.md +49 -0
  76. package/docs/floodlight/compendium-3-time.md +57 -0
  77. package/docs/floodlight/compendium-4-space.md +137 -0
  78. package/docs/floodlight/compendium-5-identifier.md +63 -0
  79. package/docs/floodlight/core-code.md +85 -0
  80. package/docs/floodlight/core-core.md +39 -0
  81. package/docs/floodlight/core-definitions.md +128 -0
  82. package/docs/floodlight/core-events.md +177 -0
  83. package/docs/floodlight/core-pitch.md +87 -0
  84. package/docs/floodlight/core-property.md +107 -0
  85. package/docs/floodlight/core-teamsheet.md +86 -0
  86. package/docs/floodlight/core-xy.md +192 -0
  87. package/docs/floodlight/guides-contrib-manual.md +462 -0
  88. package/docs/floodlight/guides-getting-started.md +194 -0
  89. package/docs/floodlight/guides-tutorial-analysis.md +245 -0
  90. package/docs/floodlight/guides-tutorial-matchsheets.md +439 -0
  91. package/docs/floodlight/index.md +17 -0
  92. package/docs/floodlight/io-datasets.md +365 -0
  93. package/docs/floodlight/io-dfl.md +107 -0
  94. package/docs/floodlight/io-io.md +131 -0
  95. package/docs/floodlight/io-kinexon.md +119 -0
  96. package/docs/floodlight/io-opta.md +49 -0
  97. package/docs/floodlight/io-secondspectrum.md +121 -0
  98. package/docs/floodlight/io-skillcorner.md +40 -0
  99. package/docs/floodlight/io-sportradar.md +35 -0
  100. package/docs/floodlight/io-statsbomb.md +61 -0
  101. package/docs/floodlight/io-statsperform.md +239 -0
  102. package/docs/floodlight/io-tracab.md +78 -0
  103. package/docs/floodlight/io-utils.md +59 -0
  104. package/docs/floodlight/metrics-entropy.md +36 -0
  105. package/docs/floodlight/metrics-metrics.md +15 -0
  106. package/docs/floodlight/metrics-trajectory-clustering.md +51 -0
  107. package/docs/floodlight/metrics-zone-aggregation.md +116 -0
  108. package/docs/floodlight/models-geometry.md +411 -0
  109. package/docs/floodlight/models-kinematics.md +251 -0
  110. package/docs/floodlight/models-kinetics.md +137 -0
  111. package/docs/floodlight/models-models.md +89 -0
  112. package/docs/floodlight/models-space.md +202 -0
  113. package/docs/floodlight/transforms-filter.md +412 -0
  114. package/docs/floodlight/transforms-interpolation.md +230 -0
  115. package/docs/floodlight/transforms-permutation.md +36 -0
  116. package/docs/floodlight/transforms-spatial.md +54 -0
  117. package/docs/floodlight/transforms-temporal.md +42 -0
  118. package/docs/floodlight/transforms-transforms.md +57 -0
  119. package/docs/floodlight/utils-types.md +13 -0
  120. package/docs/floodlight/utils-utils.md +17 -0
  121. package/docs/floodlight/vis-pitches.md +111 -0
  122. package/docs/floodlight/vis-positions.md +129 -0
  123. package/docs/floodlight/vis-vis.md +19 -0
  124. package/docs/fmdb-pro/api-access.md +120 -0
  125. package/docs/fmdb-pro/api-endpoints.md +123 -0
  126. package/docs/fmdb-pro/data-model.md +124 -0
  127. package/docs/fmdb-pro/identity-surfaces.md +108 -0
  128. package/docs/fotmob/identity-surfaces.md +16 -44
  129. package/docs/free-sources/contextual-story-joins.md +110 -0
  130. package/docs/free-sources/overview.md +60 -13
  131. package/docs/free-sources/understat.md +15 -6
  132. package/docs/free-sources/xg-timelines.md +123 -0
  133. package/docs/impect/concepts.md +183 -0
  134. package/docs/impect/coordinate-system.md +136 -0
  135. package/docs/impect/data-model.md +276 -0
  136. package/docs/impect/event-types.md +226 -0
  137. package/docs/impect/identity-surfaces.md +123 -51
  138. package/docs/impect/kpi-definitions.md +154 -0
  139. package/docs/impect/overview.md +152 -0
  140. package/docs/kloppy/event-derived-metrics.md +337 -0
  141. package/docs/kloppy/tracking-rendering.md +420 -0
  142. package/docs/mplsoccer/visualizations.md +363 -6
  143. package/docs/opta/charting-game-state.md +216 -0
  144. package/docs/opta/charting-lineups.md +90 -0
  145. package/docs/opta/charting-passmaps.md +130 -0
  146. package/docs/opta/charting-set-pieces.md +106 -0
  147. package/docs/opta/charting-shot-placement.md +233 -0
  148. package/docs/opta/event-types.md +44 -0
  149. package/docs/opta/identity-surfaces.md +31 -59
  150. package/docs/opta/qualifiers.md +16 -7
  151. package/docs/skillcorner/api-access.md +68 -0
  152. package/docs/skillcorner/api-endpoints.md +79 -0
  153. package/docs/skillcorner/concepts.md +58 -0
  154. package/docs/skillcorner/coordinate-system.md +34 -0
  155. package/docs/skillcorner/data-model.md +79 -0
  156. package/docs/skillcorner/identity-surfaces.md +26 -43
  157. package/docs/skillcorner/physical-data.md +106 -0
  158. package/docs/socceraction/spadl.md +21 -0
  159. package/docs/soccerdata/data-sources.md +37 -0
  160. package/docs/soccerdonna/identity-surfaces.md +16 -45
  161. package/docs/sportmonks/charting-season-stories.md +125 -0
  162. package/docs/sportmonks/data-model.md +35 -12
  163. package/docs/sportmonks/event-types.md +1 -1
  164. package/docs/sportmonks/identity-surfaces.md +33 -56
  165. package/docs/sportradar/api-access.md +75 -0
  166. package/docs/sportradar/api-endpoints.md +92 -0
  167. package/docs/sportradar/charting-and-stories.md +57 -0
  168. package/docs/sportradar/data-model.md +84 -0
  169. package/docs/sportradar/integration-notes.md +58 -0
  170. package/docs/statsbomb/api-access.md +41 -14
  171. package/docs/statsbomb/api-endpoints.md +120 -0
  172. package/docs/statsbomb/charting-lineups.md +79 -0
  173. package/docs/statsbomb/data-model.md +54 -11
  174. package/docs/statsbomb/event-types.md +42 -1
  175. package/docs/statsbomb/identity-surfaces.md +44 -56
  176. package/docs/statsbomb/iq-metrics-glossary.md +223 -0
  177. package/docs/statsbomb/player-mapping.md +147 -0
  178. package/docs/statsbomb/player-match-stats.md +245 -0
  179. package/docs/statsbomb/player-season-stats.md +269 -0
  180. package/docs/statsbomb/team-match-stats.md +217 -0
  181. package/docs/statsbomb/team-season-stats.md +213 -0
  182. package/docs/statsbomb/xg-model.md +33 -3
  183. package/docs/thesportsdb/api-access.md +68 -0
  184. package/docs/thesportsdb/api-endpoints.md +55 -0
  185. package/docs/thesportsdb/identity-surfaces.md +48 -0
  186. package/docs/thesportsdb/livescore.md +70 -0
  187. package/docs/transfermarkt/identity-surfaces.md +23 -53
  188. package/docs/transferroom/api-access.md +91 -0
  189. package/docs/transferroom/api-endpoints.md +257 -0
  190. package/docs/transferroom/charting-availability.md +74 -0
  191. package/docs/transferroom/data-model.md +143 -0
  192. package/docs/transferroom/identity-surfaces.md +132 -0
  193. package/docs/wyscout/api-access.md +86 -127
  194. package/docs/wyscout/api-endpoints.md +136 -0
  195. package/docs/wyscout/charting-analysis-metrics.md +124 -0
  196. package/docs/wyscout/coordinate-system.md +35 -107
  197. package/docs/wyscout/data-model.md +185 -231
  198. package/docs/wyscout/event-types.md +59 -180
  199. package/docs/wyscout/glossary-events.md +1956 -0
  200. package/docs/wyscout/glossary-metrics-concepts.md +812 -0
  201. package/docs/wyscout/identity-surfaces.md +21 -42
  202. package/package.json +23 -20
  203. package/providers.json +167 -62
@@ -0,0 +1,143 @@
1
+ ---
2
+ source_url: https://v0-simple-api-documentation-templat.vercel.app/
3
+ source_type: crawled
4
+ upstream_version: null
5
+ crawled_at: 2026-07-09
6
+ ---
7
+
8
+ # TransferRoom Data Model
9
+
10
+ ## Entity families
11
+
12
+ TransferRoom's public API docs show a recruitment and transfer-market data model rather than an event-data or tracking-data model.
13
+
14
+ | Family | Endpoint | Main use |
15
+ |---|---|---|
16
+ | Competitions | `/competitions` | Competition IDs, country, division level, team membership, and average ratings. |
17
+ | Players | `/players` | Player identity, team context, market value, agency, contract, availability, GBE, ratings, and shortlisting/squad flags. |
18
+ | Head coaches | `/coaches` | Coach identity, career history, tactical profile, ratings, contract, agency, and team-impact fields. |
19
+ | Teams | `/teams` | Team identity, competition context, head coach, squad value, team rating, and predicted requirements. |
20
+ | Transfers | `/transfers` | Player movement records with from/to teams, date, type, fee, and xTV at date/end. |
21
+ | Pitches | `/pitches` | Pitches and plus pitches received by a club on TransferRoom. |
22
+ | Requirements | `/requirements` | Club recruitment requirements, including position, age, height, foot, style, fee, and salary ranges. |
23
+ | Injuries | `/injuries/competitions`, `/injuries/players` | Injury histories, sources, return dates, recurrence/occurrence rates, workload, and risk/availability metrics. |
24
+
25
+ ## Player model
26
+
27
+ The player object centres on recruitment decision support. Public sample fields include:
28
+
29
+ | Area | Fields |
30
+ |---|---|
31
+ | Identity | `TR_ID`, `Name`, `BirthDate`. |
32
+ | Club context | `ParentTeamId`, `CurrentTeamId`, `ParentTeam`, `CurrentTeam`, `TeamHistory`. |
33
+ | Competition context | `Country`, `CompetitionId`, `Competition`, `DivisionLevel`, `ParentCountry`, `ParentCompetition`, `ParentDivisionLevel`. |
34
+ | Nationality and role | `Nationality1`, `Nationality2`, `FirstPosition`, `SecondPosition`, `PlayingStyle`, `PreferredFoot`. |
35
+ | Contract and agency | `ContractExpiry`, `Agency`, `AgencyVerified`. |
36
+ | Workflow flags | `Shortlisted`, `AvailableSale`, `AvailableLoan`, asking-price and loan-fee fields. |
37
+ | GBE | `GBEScore`, `GBEResult`, and point-breakdown fields such as international appearances, domestic minutes, continental minutes, league position, continental progression, and league standard. |
38
+ | Value and rating | `xTV`, xTV change/history fields, `BaseValue`, `EstimatedSalary`, `Rating`, `Potential`. |
39
+
40
+ `TeamHistory`, `xTVHistory`, and `BaseValueHistory` are shown as JSON-encoded history strings in the public samples.
41
+
42
+ ## Coach model
43
+
44
+ Head coach data includes:
45
+
46
+ - `TR_ID`, `Name`, `BirthDate`
47
+ - `Nationality1`, `Nationality2`
48
+ - `CurrentTeam`, `CurrentRole`
49
+ - `CareerHistory`
50
+ - `Country`, `Competition`, `DivisionLevel`
51
+ - `PreviousTeam`
52
+ - `ContractExpiry`
53
+ - `Agency`, `AgencyVerified`
54
+ - `Rating`, `RatingChange12m`
55
+ - `TacticalStyle`
56
+ - `Suitability`
57
+ - `TeamRatingImpact`
58
+ - `TrustInYouth`
59
+ - `PreferredFormation`
60
+ - `SquadRotation`
61
+ - `ThreeSeasonAvgSpend`
62
+
63
+ This makes TransferRoom useful for both player recruitment and head-coach succession/replacement workflows.
64
+
65
+ ## Team model
66
+
67
+ Team data includes:
68
+
69
+ - `TR_ID`
70
+ - `Team`
71
+ - `Country`
72
+ - `CompetitionId`
73
+ - `Competition`
74
+ - `CompetitionDivisionLevel`
75
+ - `HeadCoachID`
76
+ - `TotalxTV`
77
+ - `TotalBaseValue`
78
+ - `AverageStarterRating`
79
+ - `TeamRating`
80
+ - `TeamRatingHistory`
81
+ - `PredictedRequirements`
82
+
83
+ `TeamRatingHistory` is shown as a JSON-encoded time series in the public sample.
84
+
85
+ ## Transfer model
86
+
87
+ Transfer records include:
88
+
89
+ - `PlayerId`
90
+ - `Player`
91
+ - `FromTeamId`, `FromTeam`
92
+ - `ToTeamId`, `ToTeam`
93
+ - `Date`
94
+ - `TransferType`
95
+ - `TransferFee`
96
+ - `xTVatDate`
97
+ - `xTVatEnd`
98
+
99
+ This is a historical movement surface rather than a live rumour feed.
100
+
101
+ ## Pitch and requirement model
102
+
103
+ `/pitches` describes inbound market activity to a club:
104
+
105
+ - Pitch subject: `Player`, `PlayerId`, `HeadCoach`, `HeadCoachId`
106
+ - Sender: `PitchedByTeam`, `PitchedByTeamID`, `PitchedByAgency`, `PitchedByAgencyID`
107
+ - Commercial terms: `PitchCurrency`, `PitchTransferFee`, `PitchGrossAnnualSalary`, `PitchLoanFee`, `PitchSellOnPerc`
108
+ - Workflow: `PitchType`, `RequirementID`, `PitchDate`, `PitchMessage`, `PitchStatus`
109
+
110
+ `/requirements` describes the club's posted recruitment need:
111
+
112
+ - `Active`, `UpdatedAt`
113
+ - `TransferType`
114
+ - `Position`, `Foot`, `PlayingStyle`, `PreferredNationality`
115
+ - `FromAge`, `ToAge`, `MinHeight`
116
+ - `TransferFee`, `GrossAnnualSalary`, `MonthlyLoanFee`
117
+
118
+ Together, pitches and requirements represent a club-specific workflow surface. They are not general public market data.
119
+
120
+ ## Injury model
121
+
122
+ The injury products have two levels:
123
+
124
+ - Competition-level injury records: individual injury events with injury type, body part, start/return dates, sources, recurrence, surgery/training flags, and cohort recurrence/occurrence benchmarks.
125
+ - Player-level injury and availability records: recent minutes, minutes percentiles, match-missed percentage, injury risk rating, xAvailability, workload, and embedded player injury history.
126
+
127
+ The public docs say Advanced Injury Data covers 50 leagues, has historical data back to 2017, and includes recurrence risk, player injury risk rating, and fatigue/workload-style predictive metrics.
128
+
129
+ ## Values and ratings
130
+
131
+ Important proprietary/derived metrics in the public docs:
132
+
133
+ | Field | Meaning |
134
+ |---|---|
135
+ | `xTV` | Expected Transfer Value. |
136
+ | `xTVChange6mPerc`, `xTVChange12mPerc` | Recent xTV percentage movement. |
137
+ | `xTVHistory` | xTV history time series. |
138
+ | `BaseValue`, `BaseValueHistory` | Base value and history. |
139
+ | `EstimatedSalary` | Salary estimate range. |
140
+ | `Rating`, `Potential` | Player/coach evaluation fields. |
141
+ | `TeamRating`, `AverageStarterRating` | Team-level rating fields. |
142
+ | `xAvailability` | Predicted future injury availability percentage. |
143
+
@@ -0,0 +1,132 @@
1
+ ---
2
+ source_url: https://v0-simple-api-documentation-templat.vercel.app/
3
+ source_type: crawled
4
+ upstream_version: null
5
+ crawled_at: 2026-07-09
6
+ ---
7
+
8
+ # TransferRoom Identity Surfaces
9
+
10
+ ## Primary IDs
11
+
12
+ The public docs use `TR_ID` as the primary TransferRoom identifier on several entity types:
13
+
14
+ - Players: `TR_ID`
15
+ - Head coaches: `TR_ID`
16
+ - Teams: `TR_ID`
17
+ - Requirements: `TR_ID`
18
+
19
+ Some endpoint-specific fields use entity-specific names:
20
+
21
+ - `CompetitionId` or `Id` for competitions.
22
+ - `PlayerId` for player references in transfers, pitches, and injury records.
23
+ - `HeadCoachID` or `HeadCoachId` for coach references.
24
+ - `TeamId`, `FromTeamId`, `ToTeamId`, `PitchedByTeamID`, and similar fields for team references.
25
+ - `RequirementID` for linking a pitch to a posted recruitment requirement.
26
+
27
+ Store IDs with entity namespaces. For example, do not assume that player `TR_ID=123` and team `TR_ID=123` refer to the same object.
28
+
29
+ ## Player identity fields
30
+
31
+ The player surface includes:
32
+
33
+ - `TR_ID`
34
+ - `Name`
35
+ - `BirthDate`
36
+ - `Nationality1`
37
+ - `Nationality2`
38
+ - `ParentTeamId`, `ParentTeam`
39
+ - `CurrentTeamId`, `CurrentTeam`
40
+ - `TeamHistory`
41
+ - `CompetitionId`, `Competition`
42
+ - `FirstPosition`, `SecondPosition`
43
+ - `PreferredFoot`
44
+
45
+ For matching players to another provider, use `TR_ID` as the TransferRoom key and combine name, birth date, nationality, current/parent teams, positions, and team history as disambiguation evidence.
46
+
47
+ ## Coach identity fields
48
+
49
+ The coach surface includes:
50
+
51
+ - `TR_ID`
52
+ - `Name`
53
+ - `BirthDate`
54
+ - `Nationality1`
55
+ - `Nationality2`
56
+ - `CurrentTeam`
57
+ - `CurrentRole`
58
+ - `CareerHistory`
59
+ - `PreviousTeam`
60
+ - `ContractExpiry`
61
+ - `Agency`
62
+
63
+ Coach identity should be treated separately from player identity even if the person is historically both a former player and a coach.
64
+
65
+ ## Team and competition identity fields
66
+
67
+ Team fields include:
68
+
69
+ - `TR_ID`
70
+ - `Team`
71
+ - `Country`
72
+ - `CompetitionId`
73
+ - `Competition`
74
+ - `CompetitionDivisionLevel`
75
+ - `HeadCoachID`
76
+
77
+ Competition fields include:
78
+
79
+ - `Id`
80
+ - `CompetitionName`
81
+ - `Country`
82
+ - `DivisionLevel`
83
+ - `Teams`
84
+
85
+ For local mirrors, store a stable competition table before consuming team, transfer, and injury feeds. Several endpoints use `competitionid` as a query parameter.
86
+
87
+ ## Transfer linkage fields
88
+
89
+ The transfer surface links players and clubs through:
90
+
91
+ - `PlayerId`
92
+ - `Player`
93
+ - `FromTeamId`, `FromTeam`
94
+ - `ToTeamId`, `ToTeam`
95
+ - `Date`
96
+ - `TransferType`
97
+
98
+ Use `PlayerId`, `FromTeamId`, and `ToTeamId` for identity joins. Team and player names should be treated as display or fallback matching fields.
99
+
100
+ ## Pitch and requirement linkage
101
+
102
+ Pitches can link back to requirements and to the pitched subject:
103
+
104
+ - `RequirementID`
105
+ - `PlayerId`
106
+ - `HeadCoachId`
107
+ - `PitchedByTeamID`
108
+ - `PitchedByAgencyID`
109
+
110
+ If `RequirementID` is null, the pitch was not tied to a posted requirement in the public sample. A pitch may concern either a player or a head coach, so code should tolerate one subject being null.
111
+
112
+ ## Injury identity fields
113
+
114
+ Competition injury records use:
115
+
116
+ - `TR_ID` for the player
117
+ - `Name`
118
+ - `TeamId`, `Team`
119
+ - `CompetitionId`, `Competition`
120
+
121
+ Player injury records use:
122
+
123
+ - `TR_ID`
124
+ - `Name`
125
+ - `BirthDate`
126
+ - `PlayerInjuries`
127
+
128
+ For injury joins, prefer `TR_ID`/`PlayerId` over names. Injury records include current team context at the time of injury, which can differ from current club context in `/players`.
129
+
130
+ ## Cross-provider caveat
131
+
132
+ The public docs do not show explicit third-party IDs such as Wyscout, StatsBomb, Transfermarkt, or Football Manager IDs. Treat TransferRoom identity as its own namespace and build cross-provider matches from names, birth dates, team history, nationality, competition context, and dates unless TransferRoom provides additional private mapping fields under contract.
@@ -1,191 +1,150 @@
1
+ ---
2
+ source_url: https://apidocs.wyscout.com/
3
+ source_type: crawled
4
+ upstream_version: v3 2024-03-12 / v4 2024-05-09
5
+ crawled_at: 2026-06-03
6
+ ---
7
+
1
8
  # Wyscout API Access
2
9
 
3
10
  ## Overview
4
11
 
5
- Wyscout is a **commercial football data provider** owned by Hudl. Access requires a paid license. There is no free tier, but academic research licenses are sometimes available.
12
+ Wyscout is a **commercial football data provider** owned by Hudl. Access requires a paid license — there is no free public tier of the REST API. The product documentation is published as an OpenAPI (Redoc) portal at [apidocs.wyscout.com](https://apidocs.wyscout.com/), and the data dictionary at [dataglossary.wyscout.com](https://dataglossary.wyscout.com/).
13
+
14
+ This document is sourced from the live OpenAPI specs behind the docs portal (`assets/specs/prod/current.yml` = v3, `next.yml` = v4 preview, `legacy.yml` = v2). Endpoint inventories live in [api-endpoints.md](api-endpoints.md); the event payload in [data-model.md](data-model.md); the event taxonomy in [event-types.md](event-types.md).
6
15
 
7
16
  ## Authentication
8
17
 
9
- API key-based authentication. The key is passed as a Basic Auth header:
18
+ HTTP **Basic Access Authentication**. You are issued a username and password; supply them on every request.
10
19
 
11
20
  ```bash
12
21
  curl -u "username:password" "https://apirest.wyscout.com/v3/matches/5012345"
13
22
  ```
14
23
 
15
- Or as a header:
24
+ To build the header manually:
16
25
 
17
- ```
18
- Authorization: Basic base64(username:password)
19
- ```
26
+ 1. Build the string `username:password`.
27
+ 2. Base64-encode it.
28
+ 3. Send `Authorization: Basic <encoded>`.
20
29
 
21
- Python example:
30
+ For example `Aladdin:OpenSesame` encodes to `QWxhZGRpbjpPcGVuU2VzYW1l`, so the header is `Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l`.
31
+
32
+ Python:
22
33
 
23
34
  ```python
24
35
  import requests
25
36
  from requests.auth import HTTPBasicAuth
26
37
 
27
38
  auth = HTTPBasicAuth("your_username", "your_password")
28
- response = requests.get(
29
- "https://apirest.wyscout.com/v3/matches/5012345",
30
- auth=auth
31
- )
39
+ r = requests.get("https://apirest.wyscout.com/v3/matches/5012345", auth=auth)
40
+ r.raise_for_status()
41
+ data = r.json()
32
42
  ```
33
43
 
34
- ## Base URLs
44
+ ## Base URLs and versions
35
45
 
36
- | Version | Base URL | Status |
37
- |---|---|---|
38
- | v3 (current) | `https://apirest.wyscout.com/v3/` | Active |
39
- | v2 (legacy) | `https://apirest.wyscout.com/v2/` | Deprecated |
46
+ | Version | Base URL | Spec slug | Status |
47
+ |---|---|---|---|
48
+ | **v4** | `https://apirest.wyscout.com/v4` | `next` | **Preview** (beta of the next release) |
49
+ | **v3** | `https://apirest.wyscout.com/v3` | `current` | **Current** (latest stable) |
50
+ | v2 | `https://apirest.wyscout.com/v2` | `legacy` | Legacy (still running) |
40
51
 
41
- ## Key Endpoints
52
+ Most existing integrations run on **v3**. **v4** is the preview track where new endpoints land first — notably broadcast tracking, physical data, and match attack directions (see [api-endpoints.md](api-endpoints.md)). Anyone who started building on Wyscout recently may have begun on v4.
42
53
 
43
- ### Competitions & Seasons
54
+ ## Versioning model
44
55
 
45
- ```
46
- GET /v3/competitions
47
- GET /v3/competitions/{competitionId}
48
- GET /v3/competitions/{competitionId}/seasons
49
- GET /v3/seasons/{seasonId}
50
- ```
56
+ Wyscout maintains three parallel sets of endpoints:
51
57
 
52
- ### Matches
58
+ - **Current** — the latest stable version with the most recent endpoints and improvements.
59
+ - **Preview** — the beta of the next official release; new endpoints are implemented here first.
60
+ - **Legacy** — the previous version, kept running so users can migrate.
53
61
 
54
- ```
55
- GET /v3/seasons/{seasonId}/matches
56
- GET /v3/matches/{matchId}
57
- GET /v3/matches/{matchId}/formations
58
- GET /v3/matches/{matchId}/players
59
- GET /v3/matches/{matchId}/advancedstats
60
- ```
61
-
62
- ### Events
63
-
64
- ```
65
- GET /v3/matches/{matchId}/events
66
- ```
62
+ When a new **Current** is released, the previous Current becomes **Legacy** and remains available for at least six months before being retired (i.e. until the *next* Current ships). Documentation on apidocs.wyscout.com stays available for the Legacy version too. The version is selected by the base-URL path segment (`/v2`, `/v3`, `/v4`) — there is no version header.
67
63
 
68
- Returns all events for a match. This is the primary endpoint for event-level analysis.
64
+ ## Rate limits
69
65
 
70
- ### Teams
66
+ The API enforces **12 requests per second per API key**. Exceeding it returns HTTP `429`:
71
67
 
68
+ ```json
69
+ {
70
+ "error": {
71
+ "code": 429,
72
+ "message": "Too many requests"
73
+ }
74
+ }
72
75
  ```
73
- GET /v3/teams/{teamId}
74
- GET /v3/teams/{teamId}/squad
75
- GET /v3/teams/{teamId}/transfers
76
- GET /v3/seasons/{seasonId}/teams
77
- ```
78
-
79
- ### Players
80
-
81
- ```
82
- GET /v3/players/{playerId}
83
- GET /v3/players/{playerId}/advancedstats
84
- GET /v3/players/{playerId}/matches
85
- GET /v3/players/{playerId}/career
86
- ```
87
-
88
- ### Advanced Stats
89
-
90
- ```
91
- GET /v3/matches/{matchId}/advancedstats
92
- GET /v3/players/{playerId}/advancedstats?seasonId={seasonId}&competitionId={competitionId}
93
- GET /v3/teams/{teamId}/advancedstats?seasonId={seasonId}&competitionId={competitionId}
94
- ```
95
-
96
- Advanced stats include xG, xA, PPDA, deep completions, progressive passes/runs, and more.
97
-
98
- ### Search
99
76
 
100
- ```
101
- GET /v3/search?query=Salah&type=player
102
- GET /v3/search?query=Liverpool&type=team
103
- ```
77
+ ## Pagination
104
78
 
105
- ## Rate Limits
79
+ List endpoints (e.g. `/competitions/{wyId}/players`, `/seasons/{wyId}/players`) accept:
106
80
 
107
- - Rate limits depend on your license tier
108
- - Typical limit: **12 requests per second** for standard licenses
109
- - Bulk data export endpoints may have separate limits
110
- - 429 responses include `Retry-After` header
81
+ | Param | Meaning |
82
+ |---|---|
83
+ | `limit` (alias `count`) | Results per page (max **100**) |
84
+ | `page` | Page number (current page) |
85
+ | `sort` | Sort the result set by a given field and direction |
86
+ | `search` | Simple OR search across defined search fields |
87
+ | `filter` | Simple AND/EQUAL filter on a given field |
111
88
 
112
- ## Response Format
89
+ Paged responses wrap results in a `meta` envelope alongside the data array.
113
90
 
114
- All responses are JSON. Paginated endpoints use:
91
+ ## Related-object expansion (`fetch` / `details` / `exclude`)
115
92
 
116
- ```json
117
- {
118
- "data": [...],
119
- "meta": {
120
- "page_count": 5,
121
- "total_count": 100,
122
- "page": 1
123
- }
124
- }
125
- ```
93
+ Many endpoints support querystring expansion so you can avoid extra round-trips:
126
94
 
127
- Use `?page=2` to paginate.
95
+ - **`fetch`** — embed related top-level objects (e.g. `fetch=competition,season,round`).
96
+ - **`details`** — embed nested detail objects (e.g. `details=teams,players`; on `/events`, `details=tag`).
97
+ - **`exclude`** — drop sections from the payload to shrink responses (on `/events`: `possessions`, `names`, `positions`, `formations`).
128
98
 
129
- ## Competition IDs (Common)
99
+ Values are comma-separated. The accepted values differ per endpoint — see [api-endpoints.md](api-endpoints.md).
130
100
 
131
- | Competition | ID |
132
- |---|---|
133
- | Premier League | 524 |
134
- | La Liga | 795 |
135
- | Serie A | 524 |
136
- | Bundesliga | 528 |
137
- | Ligue 1 | 412 |
138
- | Champions League | 5 |
139
- | Europa League | 6 |
140
- | World Cup | 28 |
101
+ ## Identifiers
141
102
 
142
- Note: IDs may vary by season for some cup competitions.
103
+ Every resource (competition, season, team, player, match, coach, referee, round, area) is keyed by an integer **`wyId`** (Wyscout ID). Path parameters are named `wyId` (or `matchWyId`, `matchId`). Areas additionally use a three-letter code (`areaId`, e.g. `ENG`). See [identity-surfaces.md](identity-surfaces.md) for cross-provider ID mapping.
143
104
 
144
- ## Data Availability
105
+ ## Data availability
145
106
 
146
- - **Event data**: Available for top leagues, usually from 2014/15 onwards (coverage varies)
147
- - **Advanced stats**: xG, xA available from ~2017/18 onwards
148
- - **Video**: Match video may be available depending on license (separate from data API)
149
- - **Tracking data**: Not available through the standard API (Wyscout is primarily an event data provider)
107
+ - **Event data** — top leagues, broadly from 2014/15 onward (coverage varies by competition).
108
+ - **Advanced stats** — aggregated xG/xA/PPDA and progressive metrics; see [data-model.md](data-model.md).
109
+ - **Video** — match video endpoints exist (`/videos/{matchId}`) but availability depends on licence.
110
+ - **Broadcast tracking** — v4 only, via `/matches/{wyId}/fulltracking` (returns a download URL to a tracking JSON file). Historically Wyscout was event-data only; v4 adds optical/broadcast tracking where available.
111
+ - **Physical data** — v4 only, via `/matches/{wyId}/physicaldata` (per-player physical metrics by match phase, where available).
150
112
 
151
- ## Academic / Research Access
113
+ ## Loading Wyscout data (kloppy)
152
114
 
153
- Wyscout has historically offered discounted or free access for academic research:
115
+ There is no official Python SDK. For loading event data into analysis pipelines, use **kloppy**, which understands the Wyscout v2 and v3 event JSON formats:
154
116
 
155
- - Contact Wyscout/Hudl directly for research licenses
156
- - Some universities have institutional access
157
- - The publicly available "Wyscout open data" (used in academic papers like Pappalardo et al.) covers World Cup 2018, Euro 2016, and top-5 league seasons in v2 format
158
- - This open dataset is available at: https://figshare.com/collections/Soccer_match_event_dataset/4415000
117
+ ```python
118
+ from kloppy import wyscout
159
119
 
160
- ## Python Client Libraries
120
+ dataset = wyscout.load(event_data="events.json", data_version="V3")
121
+ df = dataset.to_df()
122
+ ```
161
123
 
162
- No official Python SDK. Common approaches:
124
+ A minimal direct client:
163
125
 
164
126
  ```python
165
- # Direct requests
166
127
  import requests
167
128
  from requests.auth import HTTPBasicAuth
168
129
 
169
130
  class WyscoutClient:
170
- BASE_URL = "https://apirest.wyscout.com/v3"
171
-
172
- def __init__(self, username, password):
131
+ def __init__(self, username, password, version="v3"):
132
+ self.base = f"https://apirest.wyscout.com/{version}"
173
133
  self.auth = HTTPBasicAuth(username, password)
174
134
 
175
- def get_match_events(self, match_id):
176
- r = requests.get(f"{self.BASE_URL}/matches/{match_id}/events", auth=self.auth)
135
+ def get(self, path, **params):
136
+ r = requests.get(f"{self.base}{path}", auth=self.auth, params=params)
177
137
  r.raise_for_status()
178
138
  return r.json()
139
+
140
+ def match_events(self, match_id, **params):
141
+ return self.get(f"/matches/{match_id}/events", **params)
179
142
  ```
180
143
 
181
- For loading Wyscout data into analysis tools, use **kloppy**:
144
+ ## Open / academic data
182
145
 
183
- ```python
184
- from kloppy import wyscout
146
+ Wyscout has historically offered discounted or free access for academic research (contact Hudl/Wyscout; some universities hold institutional licences). A widely-cited **public open dataset** (Pappalardo et al.) covers the 2017/18 top-5 leagues, the 2018 World Cup and Euro 2016 in the older **v2** event format:
185
147
 
186
- # Load from file (v2 or v3 format)
187
- dataset = wyscout.load(event_data="events.json", data_version="V3")
148
+ - <https://figshare.com/collections/Soccer_match_event_dataset/4415000>
188
149
 
189
- # Convert to pandas
190
- df = dataset.to_df()
191
- ```
150
+ Note this open dataset predates the v3/v4 event model documented here — its event/tag taxonomy differs from the current schema.