resolve_entity
Map football players, teams, competitions, and matches to provider IDs across Opta, Transfermarkt, Wyscout, and more using Reep ID, provider ID, or name lookups.
Instructions
Map a football entity (player, coach, referee, team, competition, season, stage or match) to its IDs at every provider through the Reep register: Opta, Transfermarkt, Wyscout, SkillCorner, StatsBomb, FotMob, API-Football and more. Look up by provider + id (pass namespace too, e.g. transfermarkt 'spieler', opta 'person'), by reep_id, or by name. Sources, in order: a local copy of the free register (REEP_DUCKDB_PATH), then the Reep API (REEP_API_KEY; keys are issued by hand on request, never self-service). With neither set, it returns setup steps and a DuckDB query. Keeping the local file current: Reep releases weekly. Every local answer ends with the file's release stamp checked against https://data.reep.football/releases/latest.json. If it says the file is out of date, tell the user and offer to run the curl command it gives, which downloads https://reep.football/downloads/duckdb over the same path; the next call uses the new file without a restart. Before bulk matching, make sure the file is current.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The provider's own ID, used with provider | |
| name | No | Name to search, at least 3 characters (e.g. 'Declan Rice'). A name match is a shortlist, not an answer. | |
| type | No | Restrict results to one entity type | |
| reep_id | No | A Reep ID (e.g. 'rp1b829f1d3468c4') to list every provider ID for | |
| provider | No | Provider key for an ID lookup, e.g. 'transfermarkt', 'opta', 'wyscout', 'skillcorner', 'fotmob' | |
| namespace | No | The provider's namespace for that ID, e.g. 'spieler' or 'verein' for Transfermarkt, 'person' or 'team' for Opta, 'player' for Wyscout. Recommended: some providers reuse numbers across entity types. |