football-docs 0.12.3 → 0.12.4

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
@@ -124,18 +124,18 @@ Provider filters use the indexed provider keys shown by `list_providers`, but co
124
124
  | TransferRoom | 45 | api-access, api-endpoints, charting-availability, data-model, identity-surfaces, data-provenance |
125
125
  | Opta | 73 | event-types, qualifiers, coordinate-system, api-access, charting-game-state, charting-lineups, charting-passmaps, charting-set-pieces, charting-shot-placement, identity-surfaces, data-provenance |
126
126
  | FMDB Pro | 37 | api-access, api-endpoints, data-model, identity-surfaces, data-provenance |
127
- | Sportradar | 480 | integration guide (API basics, coverage tiers, ID handling, match status, update frequencies, push, historical data), Soccer Extended v4 endpoint reference with data-point tables, FAQ, plus curated api-access, api-endpoints, data-model, charting-and-stories, integration-notes, data-provenance |
127
+ | Sportradar | 481 | integration guide (API basics, coverage tiers, ID handling, match status, update frequencies, push, historical data), Soccer Extended v4 endpoint reference with data-point tables, FAQ, plus curated api-access, api-endpoints, data-model, charting-and-stories, integration-notes, data-provenance |
128
128
  | socceraction | 34 | SPADL format, VAEP, Expected Threat |
129
129
  | BeSoccer | 16 | api-access, api-endpoints, data-provenance |
130
130
  | Driblab | 32 | api-access, api-endpoints, data-model, data-provenance |
131
131
  | ESPN | 21 | api-access, scoreboard, match-summary, teams-and-standings, identity-and-coverage |
132
- | Reep | 28 | overview, identity-and-ids, download-duckdb-csv, api, data-provenance |
132
+ | Reep | 29 | overview, identity-and-ids, download-duckdb-csv, api, data-provenance |
133
133
  | TheSportsDB | 20 | api-access, api-endpoints, livescore, identity-surfaces, data-provenance |
134
134
  | FotMob | 5 | identity-surfaces, data-provenance |
135
135
  | Soccerdonna | 5 | identity-surfaces, data-provenance |
136
136
  | Transfermarkt | 5 | identity-surfaces, data-provenance |
137
137
 
138
- **2,850 searchable chunks** across 26 providers and tools.
138
+ **2,852 searchable chunks** across 26 providers and tools.
139
139
 
140
140
  ESPN coverage consists of curated, dated observations of ESPN-hosted soccer
141
141
  endpoints, checked for eng.1 and esp.1. These observations are not an official API
package/data/docs.db CHANGED
Binary file
@@ -88,12 +88,17 @@ many leagues. Advanced metrics covered 2017/18 to January 2026 only.
88
88
  > `http://api.clubelo.com/{YYYY-MM-DD}` as CSV, now returns 502. The API has moved
89
89
  > behind authentication, and registration is not open yet. Anything that uses the
90
90
  > old endpoints, including the `soccerdata` ClubElo reader, no longer works.
91
+ >
92
+ > On 29 September 2026 the site showed a Login link (`/login/`). The login page,
93
+ > the club pages and the country pages all returned 503/504 hosting errors that
94
+ > day. Registration for the authenticated API was still closed on that date.
95
+ > The ranking page still answered.
91
96
 
92
- **Access**: The website only. The pages are rendered on the server, with the data in the HTML. Each chart is a Vega-Lite spec assigned to a `vegaJson` variable in the page, with its rows under `datasets`.
97
+ **Access**: The website only. The pages are rendered on the server, with the data in the HTML. Each chart is a Vega-Lite spec assigned to a `vegaJson` variable in the page, with its rows under `datasets`. The spec can hold more than one dataset, and some are empty (on 29 September 2026 the ranking page's first dataset had no rows), so take the dataset that has rows rather than the first one.
93
98
 
94
99
  | Page | Chart dataset fields | Range |
95
100
  |---|---|---|
96
- | `https://clubelo.com/` | `Name`, `Elo`, `Golo`, `Level`, `Federation`, `FedURL`, `TLC` (top 50 clubs) | Current |
101
+ | `https://clubelo.com/` | `Name`, `Elo`, `Golo`, `Level`, `Federation`, `FedURL`, `TLC`, plus chart styling fields (top 50 clubs) | Current |
97
102
  | `https://clubelo.com/{club}` (e.g. `/Bayern`, `/Liverpool`) | `Date`, `Elo`, `Golo`, `segment_id` (one row per match) | About four years (from late 2022) |
98
103
 
99
104
  The pages also carry HTML tables of recent and upcoming matches, with Elo win probabilities and rating changes per game. Club slugs are the site's own (`AstonVilla`, `AustriaWien`); take them from the links on the ranking page.
@@ -105,7 +110,7 @@ def clubelo_history(club):
105
110
  """Rows from the rating chart on a ClubElo club page."""
106
111
  html = requests.get(f"https://clubelo.com/{club}", timeout=30).text
107
112
  spec = json.loads(re.search(r"var vegaJson = (\{.*?\});\s*\n", html, re.S).group(1))
108
- return next(iter(spec["datasets"].values()))
113
+ return next(rows for rows in spec["datasets"].values() if rows)
109
114
 
110
115
  rows = clubelo_history("Bayern") # [{"Date": "2022-09-30T00:00:00", "Elo": ..., "Golo": ..., "segment_id": 0}, ...]
111
116
  ```
@@ -2,7 +2,7 @@
2
2
  source_type: curated
3
3
  source_url: https://reep.football/coverage
4
4
  upstream_version: null
5
- crawled_at: 2026-09-24
5
+ crawled_at: 2026-09-29
6
6
  ---
7
7
 
8
8
  # Reep data provenance
@@ -25,4 +25,4 @@ The public release is dedicated to the public domain under CC0 1.0. CC0 covers
25
25
  only rights Reep holds and grants no rights in third-party source material.
26
26
 
27
27
  Sources: [coverage](https://reep.football/coverage),
28
- [downloads and licence](https://reep.football/downloads). Checked 2026-09-24.
28
+ [downloads and licence](https://reep.football/data/). Checked 2026-09-29.
@@ -1,8 +1,8 @@
1
1
  ---
2
- source_url: https://reep.football/downloads
2
+ source_url: https://reep.football/data/
3
3
  source_type: curated
4
4
  upstream_version: null
5
- crawled_at: 2026-09-22
5
+ crawled_at: 2026-09-29
6
6
  ---
7
7
 
8
8
  # Reep download: DuckDB and CSV
@@ -29,7 +29,9 @@ Tables available as CSV: `bridges`, `entities`, `relationships`, `matches`,
29
29
  `stages`, `observed_clubs`, `redirects`, `coverage`, and the Wikidata overlay
30
30
  tables `overlay_xids`, `overlay_aliases` and `overlay_links`.
31
31
 
32
- Source: [downloads](https://reep.football/downloads).
32
+ Source: [downloads](https://reep.football/data/). The old page address,
33
+ https://reep.football/downloads, redirects there; the `/downloads/duckdb` and
34
+ `/downloads/csv/<table>` links above still work.
33
35
 
34
36
  ## Keeping a local copy current
35
37
 
@@ -50,7 +52,7 @@ before any bulk matching job.
50
52
 
51
53
  | Table | Columns | What it is |
52
54
  |---|---|---|
53
- | `bridges` | `provider, namespace, external_id, reep_id, rung` | The crosswalk: one row per provider ID. `rung` says how the bridge was corroborated. |
55
+ | `bridges` | `provider, namespace, external_id, reep_id, rung, upstream_status` | The crosswalk: one row per provider ID. `rung` says how the bridge was corroborated; `upstream_status` says whether the provider still uses the ID. |
54
56
  | `entities` | `reep_id, entity_type, status, label, gender, country, …` | One row per identity. |
55
57
  | `aliases` | `reep_id, alias, kind, rank, language` | Alternate and historical names. |
56
58
  | `redirects` | `from_id, to_id, reason` | IDs retired by a merge, pointing at the survivor. |
@@ -58,6 +60,25 @@ before any bulk matching job.
58
60
  The DuckDB file is self-describing: `SHOW TABLES;` and `DESCRIBE bridges;`.
59
61
  Source: [get-started guide](https://reep.football/get-started).
60
62
 
63
+ ### Live and retired provider IDs
64
+
65
+ `upstream_status` was added to `bridges` in the 2026-09-26 release, at the end of
66
+ the column list, so code that reads the first five columns by position is
67
+ unaffected. It is empty for an ID the provider still uses. In that release:
68
+
69
+ | Value | Rows | Meaning |
70
+ |---|---|---|
71
+ | empty | 7,932,209 | live provider ID |
72
+ | `retired` | 330 | the provider retired this ID in favour of another; the same Reep ID also has a live bridge to that provider |
73
+ | `removed` | 210 | the provider's own list no longer includes the ID (all SkillCorner in this release) |
74
+
75
+ Reep's published schema note describes the empty and `retired` values. Look up
76
+ by any ID, retired ones included, so that old stored IDs still resolve. When you
77
+ map *to* a provider, keep only live rows, or a retired ID can come back next to
78
+ the live one. The examples below do this with
79
+ `coalesce(b.upstream_status, '') = ''`, which works whether the empty value
80
+ arrives as NULL or as an empty string.
81
+
61
82
  ## Map one provider's ID to another's
62
83
 
63
84
  Two hops through the Reep ID. Swap the two provider clauses to go the other way.
@@ -71,6 +92,7 @@ JOIN entities e USING (reep_id)
71
92
  LEFT JOIN bridges b
72
93
  ON b.reep_id = e.reep_id
73
94
  AND b.provider = 'skillcorner' AND b.namespace = 'player'
95
+ AND coalesce(b.upstream_status, '') = ''
74
96
  WHERE a.provider = 'wyscout' AND a.namespace = 'player'
75
97
  AND a.external_id = '379209';
76
98
  -- → rp1b829f1d3468c4 · Declan Rice · skillcorner 12174
@@ -94,6 +116,7 @@ LEFT JOIN entities e USING (reep_id)
94
116
  LEFT JOIN bridges b
95
117
  ON b.reep_id = e.reep_id
96
118
  AND (b.provider, b.namespace) IN (('skillcorner', 'player'), ('opta', 'person'))
119
+ AND coalesce(b.upstream_status, '') = ''
97
120
  GROUP BY ALL;
98
121
  ```
99
122
 
@@ -111,6 +134,7 @@ COPY (
111
134
  SELECT b.reep_id, e.label, b.provider || '_' || b.namespace AS id_column, b.external_id
112
135
  FROM bridges b JOIN entities e USING (reep_id)
113
136
  WHERE e.entity_type = 'team'
137
+ AND coalesce(b.upstream_status, '') = ''
114
138
  )
115
139
  ON id_column USING string_agg(DISTINCT external_id, '|')
116
140
  GROUP BY reep_id, label
@@ -2,7 +2,7 @@
2
2
  source_url: https://reep.football/id-policy
3
3
  source_type: curated
4
4
  upstream_version: null
5
- crawled_at: 2026-09-22
5
+ crawled_at: 2026-09-29
6
6
  ---
7
7
 
8
8
  # Reep IDs, bridges and redirects
@@ -45,20 +45,23 @@ overlap, for instance). A wrong namespace matches nothing, silently.
45
45
  | `skillcorner` | `player` | `team` | `match`, `competition`, `competition_edition` |
46
46
  | `opta` | `person` | `team` | `match`, `competition`, `season`, `stage` |
47
47
  | `wyscout` | `player` | `team` | `match`, `competition`, `season`, `round`, `coach` |
48
- | `transfermarkt` | `spieler` | `verein` | `spiel`, `wettbewerb`, `saison`, `trainer`, `schiedsrichter` |
48
+ | `transfermarkt` | `spieler` | `verein` | `spiel`, `wettbewerb`, `saison`, `trainer`, `schiedsrichter`, `match`, `season`, `stage` |
49
49
  | `statsbomb` | `offline_player` | `offline_team` | — |
50
50
  | `sportmonks` | `player` | `team` | — |
51
- | `fotmob` | `person` | `team` | — |
51
+ | `fotmob` | `person` | `team` | `match`, `competition`, `league_instance`, `league_season`, `stage` |
52
52
  | `api_football` | `player` | `team` | `match`, `competition`, `season`, `coach` |
53
53
 
54
54
  The full list is `SELECT DISTINCT provider, namespace FROM bridges` in the
55
55
  download. External IDs are text: cast
56
56
  numeric columns before joining. Opta carries both its 25-character IDs
57
- (`person`, `team`) and numeric forms (`person_numeric`, `team_numeric`).
57
+ (`person`, `team`) and numeric forms (`person_numeric`, `team_numeric`,
58
+ `competition_numeric`). The namespaces above were checked against the 2026-09-26
59
+ release.
58
60
 
59
61
  A few entities hold two IDs from one provider, for example after the provider
60
62
  reissued an ID. Aggregate with `string_agg` rather than `max` so that neither is
61
- dropped. Source: [get-started guide](https://reep.football/get-started).
63
+ dropped. Since the 2026-09-26 release, `upstream_status` marks the retired one of
64
+ such a pair (see the download doc). Source: [get-started guide](https://reep.football/get-started).
62
65
 
63
66
  ## Provider roles
64
67
 
@@ -2,7 +2,7 @@
2
2
  source_url: https://reep.football/get-started
3
3
  source_type: curated
4
4
  upstream_version: null
5
- crawled_at: 2026-09-22
5
+ crawled_at: 2026-09-29
6
6
  ---
7
7
 
8
8
  # Reep register overview
@@ -81,7 +81,7 @@ provider bridges, names and aliases, but no career history, squad membership or
81
81
  appearance data. Published relationships are structural only: competition,
82
82
  season, stage and match, and which teams take part in which competition-seasons.
83
83
 
84
- Sources: [downloads and licence](https://reep.football/downloads),
84
+ Sources: [downloads and licence](https://reep.football/data/),
85
85
  [API reference](https://reep.football/docs).
86
86
 
87
87
  ## Releases and corrections
@@ -37,6 +37,20 @@ Important checks:
37
37
  - whether probabilities are part of the subscription;
38
38
  - whether live timelines and push feeds are supported for the competition.
39
39
 
40
+ ## Stage phase and phase_type
41
+
42
+ A season's stages carry `phase`, a coarse stage name such as `regular season`.
43
+ Several distinct stages share the same `phase` value: Apertura, Clausura and a
44
+ group stage can all arrive as `regular season`.
45
+
46
+ The OpenAPI specs (Soccer v4 and Soccer Extended v4, checked 2026-09-29) add
47
+ `phase_type` to the stage object. It is an enumerated, more granular stage type,
48
+ for example `apertura`, `clausura`, `group_stage`, `knockout_stage` or
49
+ `regular_season`. `phase` is unchanged for backward compatibility. Use `type`
50
+ plus `phase_type` as the key for a stage within a season, and fall back to
51
+ `phase` when `phase_type` is absent. The prose endpoint pages do not list
52
+ `phase_type` yet.
53
+
40
54
  ## Coordinates
41
55
 
42
56
  Timeline event coordinates use a 0-100 pitch frame.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "football-docs",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "Searchable football data provider documentation for AI coding agents. Like Context7 for football data.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.34.4",