football-docs 0.10.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.
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,12 +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 | 30 | api-access, api-endpoints, data-model |
130
131
  | TheSportsDB | 18 | api-access, api-endpoints, livescore, identity-surfaces |
131
132
  | FotMob | 3 | identity-surfaces |
132
133
  | Soccerdonna | 3 | identity-surfaces |
133
134
  | Transfermarkt | 3 | identity-surfaces |
134
135
 
135
- **2,295 searchable chunks** across 23 providers and tools.
136
+ **2,325 searchable chunks** across 24 providers and tools.
136
137
 
137
138
  > **Impect** documentation is built solely from the public
138
139
  > [ImpectAPI/open-data](https://github.com/ImpectAPI/open-data) repository — a
@@ -155,6 +156,7 @@ trusting them.
155
156
  | kloppy, socceraction, soccerdata, mplsoccer, floodlight, databallpy, skillcorner, fast-forward, unravelsports | The installed package itself — enum members, importable symbols, class constants, `Literal` parameter vocabularies | `src/__tests__/provider-truth.test.ts` |
156
157
  | Wyscout, SkillCorner, FMDB Pro, Sportradar | The vendor's own publicly published OpenAPI spec — endpoint paths and methods | `src/__tests__/provider-truth.test.ts` |
157
158
  | BeSoccer | The vendor's published Postman collection — request vocabulary and parameters | `src/__tests__/provider-truth.test.ts` |
159
+ | Driblab | The vendor's published API guide — endpoint paths, methods, parameter and field names | `src/__tests__/provider-truth.test.ts` |
158
160
  | Impect | The public [open-data](https://github.com/ImpectAPI/open-data) repository | `src/__tests__/impect-open-data-validation.test.ts` |
159
161
 
160
162
  Truth files live in `data/provider-truth/` and are generated, not hand-written:
@@ -211,6 +213,79 @@ npm run ingest -- --provider kloppy # re-ingest one provider (incremental)
211
213
 
212
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.
213
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
+
214
289
  ## License
215
290
 
216
291
  MIT
package/data/docs.db CHANGED
Binary file
@@ -64,6 +64,12 @@ export interface OpenApiTruth {
64
64
  fields: string[];
65
65
  enums: Record<string, string[]>;
66
66
  }
67
+ /**
68
+ * The endpoint check needs only a provider name and a path->methods map, so it
69
+ * works for any truth kind that carries one - an OpenAPI spec, or a vendor guide
70
+ * the endpoints were derived from.
71
+ */
72
+ export type EndpointTruth = Pick<OpenApiTruth, "provider" | "paths"> & Partial<Pick<OpenApiTruth, "basePaths">>;
67
73
  /**
68
74
  * Compare endpoints on shape, not on parameter naming. Docs and specs often use
69
75
  * different placeholder names for the same path segment, and that is a style
@@ -90,7 +96,37 @@ export declare function countDocumentedEndpoints(docs: DocFile[]): number;
90
96
  export declare function loadOpenApiTruth(provider: string): OpenApiTruth;
91
97
  export declare function listOpenApiProviders(): string[];
92
98
  /** Check that every endpoint a doc set cites exists in the vendor's own spec. */
93
- export declare function validateOpenApiDocs(docs: DocFile[], truth: OpenApiTruth): string[];
99
+ export declare function validateOpenApiDocs(docs: DocFile[], truth: EndpointTruth): string[];
100
+ /**
101
+ * Some vendors publish their API contract as a Notion page rather than as a
102
+ * specification. scripts/gen_notion_truth.py derives the same facts the endpoint
103
+ * check needs - paths, methods, parameter and field names - without mirroring the
104
+ * page, whose response samples carry the vendor's own match data.
105
+ */
106
+ export interface NotionTruth {
107
+ provider: string;
108
+ kind: string;
109
+ source: {
110
+ page: string;
111
+ page_id: string;
112
+ title: string;
113
+ generated_at: string;
114
+ };
115
+ basePaths: string[];
116
+ paths: Record<string, string[]>;
117
+ parameters: string[];
118
+ fields: string[];
119
+ operations: Record<string, {
120
+ name: string;
121
+ group: string;
122
+ description: string;
123
+ paginated: boolean;
124
+ parameters: string[];
125
+ fields: string[];
126
+ }>;
127
+ }
128
+ export declare function loadNotionTruth(provider: string): NotionTruth;
129
+ export declare function listNotionProviders(): string[];
94
130
  export declare function loadProviderTruth(provider: string): PythonPackageTruth;
95
131
  export declare function listTruthProviders(): string[];
96
132
  export declare function loadProviderDocs(provider: string): DocFile[];
@@ -74,6 +74,7 @@ const ENDPOINT_ALLOWLIST = {
74
74
  wyscout: [],
75
75
  skillcorner: [],
76
76
  "fmdb-pro": [],
77
+ driblab: [],
77
78
  };
78
79
  /**
79
80
  * Compare endpoints on shape, not on parameter naming. Docs and specs often use
@@ -188,6 +189,15 @@ export function validateOpenApiDocs(docs, truth) {
188
189
  }
189
190
  return violations;
190
191
  }
192
+ export function loadNotionTruth(provider) {
193
+ return JSON.parse(readFileSync(resolve(TRUTH_DIR, `${provider}.notion.json`), "utf-8"));
194
+ }
195
+ export function listNotionProviders() {
196
+ return readdirSync(TRUTH_DIR)
197
+ .filter((f) => f.endsWith(".notion.json"))
198
+ .map((f) => f.replace(/\.notion\.json$/, ""))
199
+ .sort();
200
+ }
191
201
  export function loadProviderTruth(provider) {
192
202
  return JSON.parse(readFileSync(resolve(TRUTH_DIR, `${provider}.json`), "utf-8"));
193
203
  }
@@ -0,0 +1,148 @@
1
+ ---
2
+ source_url: https://driblab.notion.site/Driblab-API-1-0-Guide-EN-65ce257f83b5451fb79896b01d41aede
3
+ source_type: curated
4
+ upstream_version: Driblab API 1.0 Guide [EN]
5
+ crawled_at: 2026-09-09
6
+ ---
7
+
8
+ # Driblab API Access
9
+
10
+ Driblab is a football analytics company. It runs a platform called Driblab PRO,
11
+ and exposes data through an HTTP REST API. The guide describes the API as giving
12
+ access to **aggregated metrics** of players, teams and leagues, in JSON — it is
13
+ not an event-stream feed.
14
+
15
+ - **Base URL**: `https://apidriblab.com`
16
+ - **Documentation**: [Driblab API 1.0 Guide (EN)](https://driblab.notion.site/Driblab-API-1-0-Guide-EN-65ce257f83b5451fb79896b01d41aede)
17
+ - **Format**: JSON only
18
+ - **Version**: 1.0. There is no version segment in the path.
19
+
20
+ ## Authentication
21
+
22
+ A bearer token in the `Authorization` header on every request:
23
+
24
+ ```bash
25
+ curl -X GET https://apidriblab.com/countries -H "Authorization: Bearer {API_TOKEN}"
26
+ ```
27
+
28
+ The token is generated the first time you log into Driblab PRO, and you retrieve
29
+ it from the PRO navigation bar under **API → Authentication**. There is no OAuth
30
+ flow, no refresh call and no login endpoint. One token per user.
31
+
32
+ ## Response envelope
33
+
34
+ Every response is wrapped. The payload is under `body`, and the HTTP status is
35
+ repeated inside the JSON as `statusCode`:
36
+
37
+ ```json
38
+ { "statusCode": 200, "body": [ ] }
39
+ ```
40
+
41
+ Errors carry `message` instead of `body`, so a client that reads `body`
42
+ unconditionally will throw on an error rather than surface it. Check for
43
+ `message` first — the guide's own worked example does exactly that.
44
+
45
+ ## Response codes
46
+
47
+ | Code | Meaning |
48
+ |---|---|
49
+ | 200 | Request succeeded |
50
+ | 401 | Invalid or expired token |
51
+ | 403 | Forbidden resource — the token exists but is not entitled to it |
52
+ | 404 | Resource not found |
53
+ | 405 | Too many requests — the rate limit |
54
+ | 500 | Server error on Driblab's side |
55
+
56
+ **405, not 429.** Driblab returns `405` for a rate-limit breach, which is
57
+ normally "Method Not Allowed". Retry logic keyed on 429 will not fire here, and
58
+ logic keyed on 405 as a routing bug will misreport it.
59
+
60
+ 403 is worth handling separately from 401: entitlement is per resource, so a
61
+ valid token can read some competitions and not others.
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
+
77
+ ## Rate limits
78
+
79
+ | Window | Limit |
80
+ |---|---|
81
+ | Per minute | 60 requests |
82
+ | Per day | 60,000 requests |
83
+
84
+ Once a limit is hit the API returns 405 for the rest of that minute or that day.
85
+ One request per second is the sustainable rate, and the guide's own example
86
+ sleeps between calls. Plan bulk pulls around the daily ceiling: at 60,000 calls a
87
+ day, per-game or per-player fan-out over a full season is a multi-day job.
88
+
89
+ ## Pagination
90
+
91
+ Three query parameters, on the endpoints that support them:
92
+
93
+ | Parameter | Type | Meaning |
94
+ |---|---|---|
95
+ | `page` | Number | Page to retrieve, from 0 |
96
+ | `size` | Number | Number of items per page |
97
+ | `sort` | String | Field to sort by; must match a response field name |
98
+
99
+ ```
100
+ https://apidriblab.com/countries?page=1&size=25
101
+ https://apidriblab.com/countries?sort=code
102
+ ```
103
+
104
+ Pagination is **not** universal. Roughly a third of the endpoints accept it, and
105
+ the rest return the whole collection. Which is which is listed per endpoint in
106
+ [api-endpoints.md](api-endpoints.md) — do not assume `page`/`size` work
107
+ everywhere. Notably the stats endpoints (`GET /season/{id}/players/stats`,
108
+ `GET /season/{id}/teams/stats`, `GET /season/{id}/arrigo-metrics`) are
109
+ unpaginated and return a whole season at once, so they are the large responses.
110
+
111
+ ## Identifiers
112
+
113
+ Driblab uses its own integer IDs for countries, competitions, seasons, teams,
114
+ players, coaches and games. They are provider-scoped. The API exposes **no
115
+ cross-provider ID mapping** — there is no Transfermarkt, Wyscout or Opta ID field
116
+ on any resource — so bridging to another provider means matching on attributes
117
+ (name, date of birth, nationality, club) rather than looking up an ID.
118
+
119
+ The one place another provider is named is the tracking pipeline: one of the
120
+ values from `GET /game/tracking/status` is "Match WyScout ID Set", which is an
121
+ internal processing state, not a field you can read.
122
+
123
+ Seasons are their own entities with their own IDs, not a year on a competition.
124
+ The normal drill-down is country → competition → season → team or player, and the
125
+ guide's worked example follows exactly that chain. `GET /competition/available`
126
+ and `GET /season/available` short-circuit it when you only need to know what your
127
+ token can see.
128
+
129
+ ## Write access
130
+
131
+ The API is not read-only. Two endpoints change state:
132
+
133
+ - `POST /game` requests the creation of a game and returns presigned URLs to
134
+ `PUT` video files and match sheets into.
135
+ - `DELETE /player/{id}` deletes a player.
136
+
137
+ Both are gated by entitlement rather than by a separate credential, so the same
138
+ token that reads data may be able to delete a player. Treat the token as a write
139
+ credential.
140
+
141
+ ## Licensing
142
+
143
+ Driblab's API is commercial and token-gated; a token comes with a Driblab PRO
144
+ subscription. The guide is publicly readable, and this documentation covers the
145
+ request surface only — endpoint paths, parameters, and field and metric names.
146
+ It holds none of Driblab's data. The metric definitions behind the names, and the
147
+ data itself, are Driblab's intellectual property and subject to your contract
148
+ with them.
@@ -0,0 +1,172 @@
1
+ ---
2
+ source_url: https://driblab.notion.site/Driblab-API-1-0-Guide-EN-65ce257f83b5451fb79896b01d41aede
3
+ source_type: curated
4
+ upstream_version: Driblab API 1.0 Guide [EN]
5
+ crawled_at: 2026-09-09
6
+ ---
7
+
8
+ # Driblab API Endpoints
9
+
10
+ 59 documented operations across 58 paths, all relative to `https://apidriblab.com`.
11
+ "Paged" means the endpoint accepts `page`, `size` and `sort`; see
12
+ [api-access.md](api-access.md).
13
+
14
+ Every path below is validated in CI against the vocabulary derived from
15
+ Driblab's own guide, so a path that is not in these tables does not exist.
16
+
17
+ ## Reference lists
18
+
19
+ Small, fixed vocabularies. Fetch once and cache — they are the lookup tables the
20
+ ID fields on other resources point into.
21
+
22
+ | Endpoint | Returns | Paged |
23
+ |---|---|---|
24
+ | `GET /countries` | All countries, with `code` (2-letter) and `alpha3code` | yes |
25
+ | `GET /country/{id}` | One country | no |
26
+ | `GET /competition-types` | Competition types, e.g. regular league vs cup | no |
27
+ | `GET /game-status` | Game processing statuses | no |
28
+ | `GET /player-positions` | Position vocabulary | no |
29
+ | `GET /player-transfers` | Transfer type vocabulary | no |
30
+ | `GET /game/tracking/status` | Tracking pipeline statuses | no |
31
+ | `GET /file-types/video` | Video and match-sheet file types, for uploads | no |
32
+
33
+ ## Countries and competitions
34
+
35
+ | Endpoint | Returns | Paged |
36
+ |---|---|---|
37
+ | `GET /country/{id}/competitions` | Competitions played in a country | yes |
38
+ | `GET /competitions` | All competitions | yes |
39
+ | `GET /competition/{id}` | One competition | no |
40
+ | `GET /competition/{id}/seasons` | Seasons of a competition | yes |
41
+ | `GET /competition/available` | Competitions your token can read | no |
42
+
43
+ `GET /competition/available` is a literal path, not `/competition/{id}` with
44
+ `id="available"`. The same shape applies to `GET /season/available`. Both shadow
45
+ the detail endpoint, so a client that builds paths by interpolation will produce
46
+ a valid-looking URL that means something else.
47
+
48
+ ## Season
49
+
50
+ The season is the main aggregation unit. A season is a distinct entity with its
51
+ own ID, not a year attribute on a competition.
52
+
53
+ | Endpoint | Returns | Paged |
54
+ |---|---|---|
55
+ | `GET /season/{id}` | Season detail, including matchday counts and dates | no |
56
+ | `GET /season/available` | Seasons your token can read | no |
57
+ | `GET /season/{id}/teams` | Teams in the season | yes |
58
+ | `GET /season/{id}/teams/stats` | Aggregated stats for every team | no |
59
+ | `GET /season/{id}/players` | Players in the season, with market value | yes |
60
+ | `GET /season/{id}/players/stats` | Aggregated stats for every player | no |
61
+ | `GET /season/{id}/arrigo-metrics` | Arrigo metrics for every player | no |
62
+ | `GET /season/{id}/coaches` | Coaches in the season | yes |
63
+ | `GET /season/{id}/games` | Games in the season | yes |
64
+ | `GET /season/{id}/matchday/{matchday}/games` | Games of one matchday | yes |
65
+ | `GET /season/{id}/league-table` | League table | no |
66
+
67
+ **Season-scoped stats are plural, team-scoped stats are singular.** The season
68
+ endpoint is `GET /season/{id}/players/stats`; the team equivalent is
69
+ `GET /team/{id}/season/{seasonId}/player-stats`. The two differ in both the
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.
74
+
75
+ ## Team
76
+
77
+ | Endpoint | Returns | Paged |
78
+ |---|---|---|
79
+ | `GET /team/{id}` | Team detail | no |
80
+ | `GET /team/{id}/roster` | Squad | yes |
81
+ | `GET /team/{id}/loans` | Players out on loan | yes |
82
+ | `GET /team/{id}/games` | Games played | yes |
83
+ | `GET /team/{id}/transfers` | Transfers in and out | yes |
84
+ | `GET /team/{id}/season/{seasonId}/stats` | Team stats for one season | no |
85
+ | `GET /team/{id}/season/{seasonId}/player-stats` | Per-player stats for one season | yes |
86
+ | `GET /team/{id}/game-stats` | Per-game stats for the team | no |
87
+
88
+ ## Player
89
+
90
+ | Endpoint | Returns | Paged |
91
+ |---|---|---|
92
+ | `GET /player/{id}` | Player detail: biography, contract, market value | no |
93
+ | `GET /player/{id}/seasons` | Seasons played, with simple stats | yes |
94
+ | `GET /player/{id}/games` | Games played | no |
95
+ | `GET /player/{id}/transfers` | Transfer history | yes |
96
+ | `GET /player/{id}/injuries` | Injury history | yes |
97
+ | `GET /player/{id}/national-team` | National teams, including youth levels | yes |
98
+ | `GET /player/{id}/season/{seasonId}/team/{teamId}/stats` | Season stats at one club | yes |
99
+ | `GET /player/{id}/season/{seasonId}/team/{teamId}/physical-stats` | Season physical stats at one club | no |
100
+ | `GET /player/{id}/season/{seasonId}/stats` | Per-game stats across the season | no |
101
+ | `GET /player/{id}/season/{seasonId}/physical-stats` | Per-game physical stats across the season | no |
102
+ | `DELETE /player/{id}` | Deletes the player | no |
103
+
104
+ The four-segment `.../team/{teamId}/...` forms aggregate a season **at one club**;
105
+ the three-segment forms without `team` return the same season broken down **per
106
+ game**. A mid-season transfer is why the club-scoped pair exists — a player who
107
+ moved has two rows for one season.
108
+
109
+ Note the guide writes five of these player endpoints without a space after the
110
+ verb (`GET/player/{id}/injuries`). That is a typographical slip in the guide, not
111
+ a different route.
112
+
113
+ ## Coach
114
+
115
+ | Endpoint | Returns | Paged |
116
+ |---|---|---|
117
+ | `GET /coach/{id}` | Coach detail | no |
118
+ | `GET /coach/{id}/history` | Clubs and seasons the coach has worked in | yes |
119
+
120
+ ## Game
121
+
122
+ | Endpoint | Returns | Paged |
123
+ |---|---|---|
124
+ | `GET /game/{id}` | Match detail: teams, score, formations, possession, venue | no |
125
+ | `GET /game/{id}/lineup` | Per-player positional and timing information | no |
126
+ | `GET /game/{id}/timeline` | Main match events | no |
127
+ | `GET /game/{id}/stats` | Team stats for the match | no |
128
+ | `GET /game/{id}/player-stats` | Player stats for the match | no |
129
+ | `GET /game/{id}/physical-stats` | Team physical stats | no |
130
+ | `GET /game/{id}/player-physical-stats` | Player physical stats | no |
131
+ | `GET /game/{id}/arrigo-metrics` | Team Arrigo metrics | no |
132
+ | `GET /game/{id}/player-arrigo-metrics` | Player Arrigo metrics | no |
133
+ | `GET /game/{id}/tracking` | A link to the game's tracking file | no |
134
+ | `GET /game/{id}/ts` | When the game was last updated | no |
135
+
136
+ Lineups are singular: `GET /game/{id}/lineup`, not `/lineups`.
137
+
138
+ `GET /game/{id}/ts` returns a last-updated timestamp, so it is the cheap way to
139
+ decide whether a cached game needs refetching. Use it before re-pulling stats, and
140
+ the daily request budget stretches much further.
141
+
142
+ `GET /game/{id}/tracking` does not return tracking frames. It returns a
143
+ short-lived presigned link to a `.jsonl` tracking file on S3. Download it
144
+ promptly; the link expires.
145
+
146
+ ## Video and upload
147
+
148
+ | Endpoint | Purpose | Paged |
149
+ |---|---|---|
150
+ | `GET /game/{id}/video-type/{fileTypeId}/download-link` | Presigned download link for a file | no |
151
+ | `GET /game/{id}/video-type/{fileTypeId}/stream-link` | Stream link for a file | no |
152
+ | `POST /game` | Requests game creation and returns upload URLs | no |
153
+
154
+ `fileTypeId` comes from `GET /file-types/video`. The published values are 1
155
+ MatchVideoFull, 2 MatchVideoH1, 3 MatchVideoH2, 4 MatchVideoH3, 5 MatchVideoH4,
156
+ 6 MatchVideoPK, 7 MatchSheetHomeAway, 8 MatchSheetHome, 9 MatchSheetAway.
157
+
158
+ `POST /game` takes a JSON body with `homeTeamId`, `awayTeamId`, `seasonId`,
159
+ `matchDate` (`DD/MM/YYYY`), `matchDay`, optional `matchGroupId` and
160
+ `roundTypeId`, and a `files` array. It responds with a `gameId` and a `urls`
161
+ array of presigned links — one per file — which you then `PUT` the files to. The
162
+ upload is a two-step handshake, not a multipart post.
163
+
164
+ `matchDate` is day-first (`15/12/2011`), matching the `dob` and `match_date`
165
+ fields elsewhere in the API. It is not ISO 8601, unlike the season `start_date`
166
+ and `end_date` fields, which are. Both formats appear in the same API.
167
+
168
+ `roundTypeId` runs 0 Winner, 1 Final, 2 Semi-Finals, 3 Quarter-Finals, 4 Round of
169
+ 16, 5 Round of 32, 6 Group Stage, 7 Fourth Round, 8 Third Round, 9 Second Round,
170
+ 10 First Round, 11 Preliminary Round, 12 Third Place Play-Off, 13 Fifth Place
171
+ Play-Off, 14 Next Round via Play-Off. `matchGroupId` runs 1 to 12 for Group A to
172
+ Group L.
@@ -0,0 +1,343 @@
1
+ ---
2
+ source_url: https://driblab.notion.site/Driblab-API-1-0-Guide-EN-65ce257f83b5451fb79896b01d41aede
3
+ source_type: curated
4
+ upstream_version: Driblab API 1.0 Guide [EN]
5
+ crawled_at: 2026-09-09
6
+ ---
7
+
8
+ # Driblab Data Model
9
+
10
+ Driblab serves **aggregated metrics**, not events. There is no event feed, no
11
+ qualifier vocabulary and no per-action rows. Everything below is a total or a
12
+ rate over a season, a match, or a player's spell at one club.
13
+
14
+ ## Three metric families
15
+
16
+ The API separates its numbers into three families, each with its own endpoints.
17
+ They never appear in the same payload.
18
+
19
+ | Family | Endpoint suffix | Contents |
20
+ |---|---|---|
21
+ | Technical stats | `/stats`, `/player-stats`, `/team-stats` | Passing, shooting, defending, and so on |
22
+ | Physical stats | `/physical-stats`, `/player-physical-stats` | Distance, runs, accelerations, speed |
23
+ | Arrigo metrics | `/arrigo-metrics`, `/player-arrigo-metrics` | Line-breaking and defender-bypassing |
24
+
25
+ Asking for physical data from a `/stats` endpoint returns nothing — it is a
26
+ different call, not a different field.
27
+
28
+ ## Envelope shape of a stats response
29
+
30
+ Every stats row identifies its subject and nests the numbers under `stats`, which
31
+ is grouped by category:
32
+
33
+ ```
34
+ player { id, name, position, secondary_position, side, minutes_played, games_played }
35
+ season { id, name }
36
+ team { id, name }
37
+ stats { <group>: { <metric>: <number> } }
38
+ ```
39
+
40
+ `minutes_played` and `games_played` ride along on the `player` object in stats
41
+ responses, so per-90 normalisation needs no second call.
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
+
50
+ The guide does not state how any metric is normalised. Judging by the names and
51
+ the sample values, the counting metrics (`shots`, `passes`, `tackles`) look like
52
+ totals, while `*Pct`, `*Efficiency`, `catching`, `handPassing`, `shooting` and
53
+ `finishing` are clearly not counts. Confirm against your own data before
54
+ comparing players — do not assume per-90.
55
+
56
+ ## Technical stat groups
57
+
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)
161
+
162
+ Team rows carry `season`, `team` and `stats`. The group names are snake_case and
163
+ most groups are short.
164
+
165
+ **`shooting`** — `goals`, `headedGoals`, `nonPenaltyGoals`, `shots`,
166
+ `shotsOnTarget`, `xG`, `xGPerNpg`, `xGPerShot`, `xGSetPiece`
167
+
168
+ **`association`** — `assists`, `ballProgressionFinalThird`, `directness`,
169
+ `entriesOppBox`, `lengthPerPossession`, `numPossession10Passes`,
170
+ `openPlayPassesIntoOpponentBoxSuccessful`, `passesPerPossession`,
171
+ `passesPerShots`, `possession`, `ppda`, `rivalPossession`, `xAssists`,
172
+ `xGChain`, `xT`, `xTOpenPlay`
173
+
174
+ **`defending`** — `aggressiveActions`, `defensiveDistance`, `fouls`,
175
+ `highDefensiveActionPct`, `highDefensiveDistance`, `highRecoveries`,
176
+ `recoveriesOppHalf`, `tacklesWasDribbled`
177
+
178
+ **`saving`** — `goalsConceded`, `nonPenaltyGoalsAgainst`, `savesInBox`,
179
+ `savesOutBox`, `shotsAgainst`, `shotsOnTargetAgainst`,
180
+ `shotsOnTargetInBoxAgainst`, `shotsOnTargetOutBoxAgainst`, `xGAgainst`,
181
+ `xGPerNpgAgainst`, `xGPerShotAgainst`, `xGSetPieceAgainst`
182
+
183
+ **`passing`** — `averagePassDistance`, `passesPerLongBall`, `passingFinalThird`
184
+
185
+ **`predictive`** — `expectedPoints`, `points`
186
+
187
+ **`ball_handling`** — `penaltiesTaken`, `touchesInOpponentBox`
188
+
189
+ **`turnovers`** — `highTurnovers`, `shotEndingHighTurnovers`
190
+
191
+ **`aerial`** — `aerialDefensivePct`, `aerialWonOffensive`
192
+
193
+ **`crosses`** — `crossingPerXG`
194
+
195
+ **`sequence_involvement`** — `speedSequence`
196
+
197
+ **`carries`** — `deepProgression`
198
+
199
+ ### Naming traps in the guide
200
+
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`.
206
+
207
+ ## Physical stat groups
208
+
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.
214
+
215
+ - **`distance`** — `totalDistance`, `walkingDistance`, `joggingDistance`,
216
+ `runningDistance`, `hsrDistance`, `sprintDistance`
217
+ - **`runs`** — `runsQuantity`, `hsrQuantity`, `sprintsQuantity`
218
+ - **`accelerations`** — `accelerationsNumber`, `extremeAccelerationsNumber`,
219
+ `maxAcceleration`
220
+ - **`speed`** — `maxSpeed`
221
+
222
+ Physical values can be `null` rather than zero — every acceleration metric is
223
+ `null` in the guide's published sample while the distance and speed metrics carry
224
+ values. Treat `null` as absent rather than as zero.
225
+
226
+ The guide states no units for any physical metric. The sample values are
227
+ consistent with metres for the distances and km/h for `maxSpeed`, but that is an
228
+ inference, not a documented fact — confirm against your own data.
229
+
230
+ ## Arrigo metrics
231
+
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.
250
+
251
+ Actions performed: `passesBypassingPlayers`, `passesBypassingDefenders`,
252
+ `carriesBypassingDefenders`, `bypassedPlayersByPasses`,
253
+ `bypassedDefendersByPasses`, `bypassedPlayersByCarries`,
254
+ `bypassedDefendersByCarries`, `bypassedPlayersByActions`,
255
+ `bypassedDefendersByActions`.
256
+
257
+ Actions suffered: `timesBypassedByPasses`, `timesBypassedByCarries`,
258
+ `timesBypassedByActions`.
259
+
260
+ Team-level totals use the shorter forms: `bypassedPlayers`, `bypassedDefenders`,
261
+ `bypassedByPasses`, `bypassedByCarries`, `bypassedByTotal`,
262
+ `bypassedPlayersTotal`, `bypassedDefendersTotal`, `bypassedPlayersCarries`,
263
+ `bypassedDefendersCarries`.
264
+
265
+ The names sort into three axes: what did the bypassing (`Passes`, `Carries`,
266
+ `Actions`), who was bypassed (`Players`, `Defenders`), and direction (performed,
267
+ or `timesBypassed*` suffered).
268
+
269
+ `Actions` is passes and carries added together, not an independent measurement.
270
+ In the guide's sample, `bypassedPlayersByActions` (421) equals
271
+ `bypassedPlayersByPasses` (421) plus `bypassedPlayersByCarries` (0), and
272
+ `timesBypassedByActions` (106) equals `timesBypassedByPasses` (95) plus
273
+ `timesBypassedByCarries` (11). Summing the three would double-count.
274
+
275
+ What distinguishes `Players` from `Defenders` is not stated in the guide.
276
+
277
+ ## Match-level entities
278
+
279
+ **Game** (`GET /game/{id}`) — `id`, `name` (a scoreline string such as
280
+ `"Home 0:2 Away"`), `status`, `match_date`, `match_day`, `venue`, `season`,
281
+ `home_team` and `away_team` objects, and four
282
+ `last_minute_played_*` fields for each half and each period of extra time.
283
+ `home_team` and `away_team` carry `score`, `penalty_shootout_score`,
284
+ `formation` (a bare string like `"4231"`), `possession` and `coach`.
285
+
286
+ **Game stats** (`GET /game/{id}/stats`) — per-side model outputs, under
287
+ `home_team` and `away_team`: `xG`, `xGOpenPlay`, `xGSetPiece`, `xA`, `xAOpenPlay`, `xASetPiece`,
288
+ `xP`, `winChance`, `drawChance`, `possession`, `ppda`, `directness`.
289
+
290
+ **Timeline** (`GET /game/{id}/timeline`) — main events only. Each entry has
291
+ `name` (the event category, e.g. `card`, `goal`), `info` (the detail, e.g.
292
+ `yellowCard`, `penalty`), `home_team` as a boolean rather than an ID, `period`,
293
+ `min`, and a `subjects` array of the players involved. This is a match summary,
294
+ not an event feed: there are no coordinates, no possession chains and no
295
+ qualifiers.
296
+
297
+ **Lineup** (`GET /game/{id}/lineup`) — positional and timing information per
298
+ player.
299
+
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
303
+ a **flat array of `{name, value}` pairs**, not the nested group object every other
304
+ stats endpoint uses, and it uses its own metric names: `passing`, `crossing`,
305
+ `crossesCompleted`, `aerials`, `aerialsWon`, `aerialsPct`, `passingFinalThird`,
306
+ `assists`, `clearances`, `fouls`. A parser written against the nested shape will
307
+ not read it, and `aerialsWon` here is `aerialWins` elsewhere.
308
+
309
+ ## Player and squad entities
310
+
311
+ **Player** (`GET /player/{id}`) — `id`, `name`, `first_name`, `last_name`,
312
+ `dob` (`DD/MM/YYYY`), `age`, `height` (cm), `weight` (kg), `nationality` and
313
+ `secondary_nationality`, `position`, `secondary_position`, `side`,
314
+ `current_team`, `market_value`, `academy`, `jersey_num`, and a `contract` object
315
+ holding `end_contract_date`, `contract_option`, `loan_team` and
316
+ `loan_end_contract_date`.
317
+
318
+ `position` is a short code (`GK`) and `side` is a word (`Centre`); the full
319
+ vocabulary comes from `GET /player-positions`. `market_value` appears on both
320
+ players and teams, so squad value needs no summing.
321
+
322
+ **Season** (`GET /season/{id}`) — `year` (the starting calendar year),
323
+ `alias` (a short label such as `ESP I 2016`), `current_matchday`,
324
+ `total_matchdays`, `total_games`, `total_games_played`, `total_games_counted`,
325
+ `is_active`, `start_date` and `end_date` (ISO 8601).
326
+
327
+ `total_games`, `total_games_played` and `total_games_counted` are three separate
328
+ fields. The guide describes the last as "number of games counted" and does not say
329
+ how it relates to the other two, so check all three before treating a season
330
+ aggregate as complete rather than assuming they agree.
331
+
332
+ **Competition** — `division` (a number, 1 for a top flight), `competition_type`,
333
+ `is_youth`, `is_male`, `country`, `number_of_seasons`. Gender is a boolean
334
+ `is_male` rather than an enumerated field.
335
+
336
+ ## What Driblab does not provide
337
+
338
+ - **No event data.** No shot locations, no pass origins and destinations, no
339
+ qualifiers. Aggregated metrics and a match timeline only.
340
+ - **No coordinates anywhere**, including in the timeline.
341
+ - **No cross-provider IDs.** See [api-access.md](api-access.md).
342
+ - **Tracking only as a file link**, not as an API resource — and only for games
343
+ Driblab has processed.
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "football-docs",
3
- "version": "0.10.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
+ "packageManager": "pnpm@10.34.4",
6
7
  "mcpName": "io.github.withqwerty/football-docs",
7
8
  "bin": {
8
9
  "football-docs": "bin/serve.js"
@@ -10,6 +11,25 @@
10
11
  "engines": {
11
12
  "node": ">=20"
12
13
  },
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "prebuild": "pnpm check",
17
+ "check": "tsc --noEmit",
18
+ "dev": "tsx src/index.ts",
19
+ "ingest": "tsx src/ingest.ts",
20
+ "crawl": "tsx src/crawl.ts",
21
+ "discover": "tsx src/crawl.ts --discover",
22
+ "impect:truth": "tsx src/impect-truth.ts",
23
+ "lint": "biome check src/",
24
+ "lint:fix": "biome check --write src/",
25
+ "prepublishOnly": "pnpm build && pnpm ingest",
26
+ "start": "node dist/index.js",
27
+ "test": "vitest run",
28
+ "provider:truth": "bash scripts/gen_all_truth.sh",
29
+ "openapi:truth": "bash scripts/gen_all_openapi_truth.sh",
30
+ "postman:truth": "python3 scripts/gen_postman_truth.py",
31
+ "notion:truth": "python3 scripts/gen_notion_truth.py"
32
+ },
13
33
  "keywords": [
14
34
  "football",
15
35
  "soccer",
@@ -56,21 +76,10 @@
56
76
  "docs/",
57
77
  "providers.json"
58
78
  ],
59
- "scripts": {
60
- "build": "tsc",
61
- "prebuild": "pnpm check",
62
- "check": "tsc --noEmit",
63
- "dev": "tsx src/index.ts",
64
- "ingest": "tsx src/ingest.ts",
65
- "crawl": "tsx src/crawl.ts",
66
- "discover": "tsx src/crawl.ts --discover",
67
- "impect:truth": "tsx src/impect-truth.ts",
68
- "lint": "biome check src/",
69
- "lint:fix": "biome check --write src/",
70
- "start": "node dist/index.js",
71
- "test": "vitest run",
72
- "provider:truth": "bash scripts/gen_all_truth.sh",
73
- "openapi:truth": "bash scripts/gen_all_openapi_truth.sh",
74
- "postman:truth": "python3 scripts/gen_postman_truth.py"
79
+ "pnpm": {
80
+ "overrides": {
81
+ "js-yaml": "^4.3.1",
82
+ "hono": "^4.12.34"
83
+ }
75
84
  }
76
- }
85
+ }
package/providers.json CHANGED
@@ -165,6 +165,21 @@
165
165
  ],
166
166
  "last_crawled": "2026-07-31"
167
167
  },
168
+ "driblab": {
169
+ "description": "Spanish football analytics provider; REST API of aggregated player, team, season and match metrics, plus proprietary Arrigo line-breaking metrics",
170
+ "display_name": "Driblab",
171
+ "aliases": ["driblab-pro", "driblab-api"],
172
+ "access_level": "public-api-docs",
173
+ "licence_status": "Public API guide; API access requires a Driblab PRO subscription and token.",
174
+ "public_safety_notes": "Document the public request surface only (base URL, endpoint paths, parameters, field and metric names). The guide's response samples carry real player and match data and presigned S3 URLs - derive from them, never mirror them. Truth is generated by scripts/gen_notion_truth.py, which keeps key names and no values.",
175
+ "version": "API 1.0",
176
+ "package": null,
177
+ "sources": [
178
+ { "url": "https://driblab.notion.site/Driblab-API-1-0-Guide-EN-65ce257f83b5451fb79896b01d41aede", "type": "api_docs", "note": "Public Notion guide: 59 operations across 58 paths, with per-endpoint parameter and response-field tables" },
179
+ { "type": "curated", "note": "Metric families, naming conventions and pagination coverage derived from the guide" }
180
+ ],
181
+ "last_crawled": "2026-09-09"
182
+ },
168
183
  "thesportsdb": {
169
184
  "description": "Open crowd-sourced sports database and JSON API used for football live scores, schedules, events, teams, players, artwork, and highlights",
170
185
  "display_name": "TheSportsDB",