football-docs 0.4.0 → 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 (193) 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/charting-lineups.md +79 -0
  171. package/docs/statsbomb/identity-surfaces.md +33 -61
  172. package/docs/statsbomb/player-mapping.md +9 -10
  173. package/docs/thesportsdb/api-access.md +68 -0
  174. package/docs/thesportsdb/api-endpoints.md +55 -0
  175. package/docs/thesportsdb/identity-surfaces.md +48 -0
  176. package/docs/thesportsdb/livescore.md +70 -0
  177. package/docs/transfermarkt/identity-surfaces.md +23 -53
  178. package/docs/transferroom/api-access.md +91 -0
  179. package/docs/transferroom/api-endpoints.md +257 -0
  180. package/docs/transferroom/charting-availability.md +74 -0
  181. package/docs/transferroom/data-model.md +143 -0
  182. package/docs/transferroom/identity-surfaces.md +132 -0
  183. package/docs/wyscout/api-access.md +86 -127
  184. package/docs/wyscout/api-endpoints.md +136 -0
  185. package/docs/wyscout/charting-analysis-metrics.md +124 -0
  186. package/docs/wyscout/coordinate-system.md +35 -107
  187. package/docs/wyscout/data-model.md +185 -231
  188. package/docs/wyscout/event-types.md +59 -180
  189. package/docs/wyscout/glossary-events.md +1956 -0
  190. package/docs/wyscout/glossary-metrics-concepts.md +812 -0
  191. package/docs/wyscout/identity-surfaces.md +21 -42
  192. package/package.json +6 -14
  193. package/providers.json +167 -62
@@ -1,193 +1,72 @@
1
- # Wyscout v3 Event Types
2
-
3
- Wyscout uses a **primary type + secondary type** system. Each event has a `type` object with `primary` and `secondary` fields, both containing `id` and `name`.
4
-
5
- ## Primary Event Types
6
-
7
- | Primary Type ID | Name | Description |
8
- |---|---|---|
9
- | `pass` | Pass | Any pass attempt (short, long, cross, through ball, key pass, assist) |
10
- | `shot` | Shot | Any shot attempt (on target, off target, blocked, post) |
11
- | `duel` | Duel | Any 1v1 contest (aerial, ground attacking, ground defending, ground loose ball) |
12
- | `free_kick` | Free Kick | Free kicks, corners, goal kicks, throw-ins, penalties |
13
- | `touch` | Touch | Ball touch events (clearance, interception, acceleration) |
14
- | `goalkeeper` | Goalkeeper | Goalkeeper-specific actions (save, punch, drop, pick-up) |
15
- | `infraction` | Infraction | Fouls and handballs |
16
- | `others_on_the_ball` | Others On The Ball | Other on-ball events not covered above |
17
- | `game_interruption` | Game Interruption | Stoppages (injury, referee stop, etc.) |
18
-
19
- ## Secondary Event Types by Primary Type
20
-
21
- ### Pass Secondary Types
22
-
23
- | Secondary Type ID | Name | Description |
24
- |---|---|---|
25
- | `simple_pass` | Simple Pass | Short ground pass |
26
- | `launch` | Launch | Long ball (typically > 32m) |
27
- | `cross` | Cross | Cross into the box |
28
- | `smart_pass` | Smart Pass | Creative pass that breaks defensive lines |
29
- | `head_pass` | Head Pass | Header pass |
30
- | `hand_pass` | Hand Pass | Goalkeeper hand pass / throw |
31
- | `high_pass` | High Pass | Lofted pass |
32
- | `goal_kick` | Goal Kick | Goal kick distribution (also under free_kick primary) |
33
-
34
- ### Shot Secondary Types
35
-
36
- | Secondary Type ID | Name | Description |
37
- |---|---|---|
38
- | `shot` | Shot | Standard shot |
39
- | `head_shot` | Head Shot | Header on goal |
40
-
41
- ### Duel Secondary Types
42
-
43
- | Secondary Type ID | Name | Description |
44
- |---|---|---|
45
- | `aerial_duel` | Aerial Duel | Header contest |
46
- | `ground_attacking_duel` | Ground Attacking Duel | Attacker in 1v1 ground duel |
47
- | `ground_defending_duel` | Ground Defending Duel | Defender in 1v1 ground duel |
48
- | `ground_loose_ball_duel` | Ground Loose Ball Duel | 50/50 contest for loose ball |
49
-
50
- ### Free Kick Secondary Types
51
-
52
- | Secondary Type ID | Name | Description |
53
- |---|---|---|
54
- | `free_kick` | Free Kick | Direct/indirect free kick |
55
- | `free_kick_cross` | Free Kick Cross | Free kick delivered as a cross |
56
- | `corner` | Corner | Corner kick |
57
- | `goal_kick` | Goal Kick | Goal kick |
58
- | `throw_in` | Throw In | Throw-in |
59
- | `penalty` | Penalty | Penalty kick |
60
- | `free_kick_shot` | Free Kick Shot | Shot from a free kick |
61
-
62
- ### Touch Secondary Types
63
-
64
- | Secondary Type ID | Name | Description |
65
- |---|---|---|
66
- | `clearance` | Clearance | Defensive clearance |
67
- | `interception` | Interception | Intercepting a pass |
68
- | `acceleration` | Acceleration | Ball carry / acceleration with ball |
69
- | `touch` | Touch | Generic ball touch |
70
-
71
- ### Goalkeeper Secondary Types
72
-
73
- | Secondary Type ID | Name | Description |
74
- |---|---|---|
75
- | `save_attempt` | Save Attempt | Goalkeeper save |
76
- | `punch` | Punch | Goalkeeper punch |
77
- | `goalkeeper_pick_up` | Goalkeeper Pick Up | Goalkeeper picks up ball |
78
- | `keeper_sweeper` | Keeper Sweeper | Goalkeeper comes off line |
79
-
80
- ### Infraction Secondary Types
81
-
82
- | Secondary Type ID | Name | Description |
83
- |---|---|---|
84
- | `foul` | Foul | Foul committed |
85
- | `hand_foul` | Hand Foul | Handball |
86
- | `late_card_foul` | Late Card Foul | Foul shown card after play |
87
- | `out_of_game_foul` | Out Of Game Foul | Foul off the ball |
88
- | `protest` | Protest | Yellow card for dissent |
89
- | `simulation` | Simulation | Dive / simulation |
90
- | `time_lost_foul` | Time Lost Foul | Time wasting |
91
- | `violent_foul` | Violent Foul | Violent conduct |
92
-
93
- ## Event Properties
94
-
95
- Every Wyscout v3 event includes:
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
+ ---
96
7
 
97
- ```json
98
- {
99
- "id": 123456789,
100
- "matchId": 5012345,
101
- "matchPeriod": "1H",
102
- "second": 245.6,
103
- "videoTimestamp": "00:04:05",
104
- "team": { "id": 123, "name": "Team Name" },
105
- "player": { "id": 456, "name": "Player Name" },
106
- "type": {
107
- "primary": { "id": "pass", "name": "Pass" },
108
- "secondary": { "id": "cross", "name": "Cross" }
109
- },
110
- "location": { "x": 72.5, "y": 34.2 },
111
- "possession": { "id": 789, "team": { "id": 123 }, "types": ["positional_attack"] },
112
- "groundPressure": true,
113
- "aerialDuel": false
114
- }
115
- ```
8
+ # Wyscout Event Types
116
9
 
117
- ## Shot-specific Properties
10
+ The event taxonomy used by `GET /matches/{wyId}/events`. **Identical in v3 and v4.** Each event is identified by a `type` object with a single `primary` type and zero or more `secondary` types:
118
11
 
119
12
  ```json
120
- {
121
- "shot": {
122
- "isGoal": true,
123
- "onTarget": true,
124
- "goalZone": "gc",
125
- "xg": 0.15,
126
- "postShotXg": 0.82,
127
- "bodyPart": "right_foot",
128
- "goalMouthLocation": { "y": 45.2, "z": 22.1 }
129
- }
13
+ "type": {
14
+ "primary": "pass",
15
+ "secondary": ["cross", "assist", "key_pass"]
130
16
  }
131
17
  ```
132
18
 
133
- ### Goal Zones
19
+ - **`primary`** is guaranteed present and holds exactly **one** value.
20
+ - **`secondary`** is an array (possibly empty) of additional tags describing the same event.
134
21
 
135
- | Code | Zone |
136
- |---|---|
137
- | `gc` | Goal centre |
138
- | `gl` | Goal left |
139
- | `gr` | Goal right |
140
- | `ghl` | Goal high left |
141
- | `ghc` | Goal high centre |
142
- | `ghr` | Goal high right |
143
- | `obr` | Out bottom right |
144
- | `obl` | Out bottom left |
145
- | `otr` | Out top right |
146
- | `otl` | Out top left |
147
- | `bc` | Blocked centre |
148
-
149
- ## Pass-specific Properties
22
+ For prose definitions of what each tag means (e.g. what counts as a "cross" or a "key pass"), see [glossary-events.md](glossary-events.md). For the full per-event payload (locations, pass/shot/duel detail), see [data-model.md](data-model.md).
150
23
 
151
- ```json
152
- {
153
- "pass": {
154
- "accurate": true,
155
- "angle": 24.5,
156
- "length": 18.3,
157
- "height": "ground",
158
- "endLocation": { "x": 85.1, "y": 42.0 },
159
- "recipient": { "id": 789, "name": "Recipient Name" }
160
- }
161
- }
162
- ```
24
+ ## Primary event types (22)
25
+
26
+ `acceleration`, `clearance`, `corner`, `duel`, `fairplay`, `free_kick`, `game_interruption`, `goal_kick`, `goalkeeper_exit`, `infraction`, `interception`, `offside`, `own_goal`, `pass`, `penalty`, `pressing_attempt`, `received_pass`, `shot_against`, `throw_in`, `touch`, `postmatch_penalty`, `postmatch_penalty_faced`
27
+
28
+ Notes:
29
+ - `postmatch_penalty` / `postmatch_penalty_faced` are penalty-shootout events (distinct from in-play `penalty`).
30
+ - `shot_against` and `goalkeeper_exit` are goalkeeper-perspective primaries.
31
+ - `received_pass` marks the reception side of a pass (the receiving player's event).
32
+
33
+ ## Secondary event types (62)
34
+
35
+ Tags that decorate a primary event. A single event commonly carries several (e.g. a `pass` that is also `cross`, `assist`, `key_pass`).
36
+
37
+ `aerial_duel`, `assist`, `back_pass`, `ball_out`, `carry`, `conceded_goal`, `counterpressing_recovery`, `cross`, `cross_blocked`, `deep_completed_cross`, `deep_completition`, `defensive_duel`, `dribble`, `dribbled_past_attempt`, `forward_pass`, `foul`, `foul_suffered`, `free_kick_cross`, `free_kick_shot`, `goal`, `ground_duel`, `hand_pass`, `head_pass`, `head_shot`, `key_pass`, `lateral_pass`, `linkup_play`, `long_pass`, `loose_ball_duel`, `loss`, `offensive_duel`, `opportunity`, `pass_into_penalty_area`, `pass_to_final_third`, `penalty_conceded_goal`, `penalty_foul`, `penalty_goal`, `penalty_save`, `pressing_duel`, `progressive_pass`, `progressive_run`, `recovery`, `red_card`, `save`, `save_with_reflex`, `second_assist`, `short_or_medium_pass`, `shot_after_corner`, `shot_after_free_kick`, `shot_after_throw_in`, `shot_assist`, `shot_block`, `sliding_tackle`, `smart_pass`, `third_assist`, `through_pass`, `touch_in_box`, `under_pressure`, `whistle`, `yellow_card`, `postmatch_penalty_saved`, `conceded_postmatch_penalty`
38
+
39
+ Note: `deep_completition` is spelled as shown in the API (a misspelling of "deep completion" that is part of the contract — do not "correct" it when matching tags).
40
+
41
+ ### Grouped for orientation
42
+
43
+ These groupings are for human navigation only; the API does not nest them.
44
+
45
+ - **Passing** — `forward_pass`, `back_pass`, `lateral_pass`, `long_pass`, `short_or_medium_pass`, `head_pass`, `hand_pass`, `progressive_pass`, `smart_pass`, `through_pass`, `cross`, `free_kick_cross`, `cross_blocked`, `pass_into_penalty_area`, `pass_to_final_third`, `deep_completition`, `deep_completed_cross`, `key_pass`, `shot_assist`, `assist`, `second_assist`, `third_assist`, `linkup_play`
46
+ - **Shooting** — `goal`, `head_shot`, `free_kick_shot`, `shot_block`, `opportunity`, `shot_after_corner`, `shot_after_free_kick`, `shot_after_throw_in`, `conceded_goal`, `penalty_goal`, `penalty_conceded_goal`
47
+ - **Duels & carrying** — `duel`, `ground_duel`, `aerial_duel`, `defensive_duel`, `offensive_duel`, `loose_ball_duel`, `pressing_duel`, `sliding_tackle`, `dribble`, `dribbled_past_attempt`, `carry`, `progressive_run`, `touch_in_box`, `under_pressure`
48
+ - **Defending & transitions** — `recovery`, `counterpressing_recovery`, `loss`, `ball_out`
49
+ - **Goalkeeping** — `save`, `save_with_reflex`, `penalty_save`
50
+ - **Fouls & cards** — `foul`, `foul_suffered`, `penalty_foul`, `yellow_card`, `red_card`
51
+ - **Shootout** — `postmatch_penalty_saved`, `conceded_postmatch_penalty`
52
+ - **Other** — `whistle`
53
+
54
+ ## Possession types (12)
55
+
56
+ Each event may carry a `possession` object whose `types` array describes the possession it belongs to:
57
+
58
+ `corner`, `counterattack`, `set_piece_attack`, `attack`, `free_kick`, `direct_free_kick`, `penalty`, `throw_in`, `free_kick_cross`, `transition_low`, `transition_medium`, `transition_high`
59
+
60
+ The `transition_low` / `transition_medium` / `transition_high` values grade transition speed/threat. See `possession` in [data-model.md](data-model.md) for the full object (start/end location, duration, attack flag).
163
61
 
164
- ## Possession Types
62
+ ## Match periods
165
63
 
166
- Each event includes a `possession` object with attack classification:
64
+ The `matchPeriod` field on each event:
167
65
 
168
- | Type | Description |
66
+ | Code | Period |
169
67
  |---|---|
170
- | `positional_attack` | Build-up play, patient attack |
171
- | `counter_attack` | Fast transition after winning ball |
172
- | `set_piece_attack` | Attack from a set piece |
173
- | `free_kick_attack` | Attack from a free kick |
174
- | `corner_attack` | Attack from a corner |
175
- | `throw_in_attack` | Attack from a throw-in |
176
- | `goal_kick_attack` | Attack from a goal kick |
177
- | `penalty_attack` | Penalty situation |
178
-
179
- ## v2 vs v3 Type ID Differences
180
-
181
- In Wyscout **v2**, primary types used numeric IDs:
182
-
183
- | v2 ID | v3 ID | Name |
184
- |---|---|---|
185
- | 1 | `duel` | Duel |
186
- | 2 | `free_kick` | Free Kick |
187
- | 3 | `goalkeeper` | Goalkeeper |
188
- | 7 | `others_on_the_ball` | Others On The Ball |
189
- | 8 | `pass` | Pass |
190
- | 9 | `infraction` | Infraction |
191
- | 10 | `shot` | Shot |
192
-
193
- v3 switched to string-based IDs for both primary and secondary types and restructured the type hierarchy significantly. The v2 `subeventId` (numeric) was replaced by the `type.secondary` object.
68
+ | `1H` | First half |
69
+ | `2H` | Second half |
70
+ | `E1` | First extra time |
71
+ | `E2` | Second extra time |
72
+ | `P` | Penalty shootout |