---
title: "Look up entity by Reep ID or Wikidata QID"
method: GET
path: "/lookup"
deprecated: true
---

# Look up entity by Reep ID or Wikidata QID

`GET /lookup`

## Request

- Base URL: `https://reep-api.rahulkeerthi2-95d.workers.dev`
- URL: `https://reep-api.rahulkeerthi2-95d.workers.dev/lookup`
- Auth: none declared

> **Deprecated.**

**Deprecated.** Prefer `POST /batch/resolve` with a one-element `items` array, or
`GET /search` when you only have a name. This endpoint remains functional but is
not the recommended path for new integrations.

Exact lookup by Reep ID or Wikidata QID. The ID type is auto-detected:
- `reep_p...` / `reep_t...` / `reep_c...` / `reep_l...` / `reep_s...` / `reep_m...` → Reep ID lookup
- `Q...` → Wikidata QID lookup (may return multiple records for dual-role people)

Also accepts the legacy `?qid=` parameter for backwards compatibility.

## Query parameters

- `id` string, required
- `type` 'player' | 'team' | 'coach' | 'competition' | 'season' | 'match'

## Response `200`

Entity details. When the client asked for a retired `reep_id`
that has a canonical successor, the response body carries the
canonical entity's fields with `_deprecated`, `_canonical_id`,
and `_deprecated_at` attached. Provider-id lookups (QIDs)
redirect silently — no deprecation meta.

- LookupResponse
  - `results` Entity[]
    - `reep_id` string: Universal Reep ID (reep_<type_prefix><8hex>). This is the canonical identifier.
    - `qid` string, nullable: Wikidata QID (convenience field, null for entities not in Wikidata)
    - `type` 'player' | 'team' | 'coach' | 'competition' | 'season' | 'match'
    - `name_en` string
    - `aliases_en` string, nullable
    - `full_name` string, nullable
    - `date_of_birth` string, nullable
    - `nationality` string, nullable
    - `position` string, nullable: Coarse position (forward, midfielder, defender, goalkeeper). Players only.
    - `position_detail` string, nullable: Granular position from Transfermarkt (e.g. Centre-Back, Attacking Midfield, Right Winger). Players only.
    - `current_team_reep_id` string, nullable: Reep ID of current team (players only)
    - `height_cm` number, nullable
    - `country` string, nullable: For teams only
    - `founded` string, nullable: For teams only
    - `stadium` string, nullable: For teams only
    - `competition_reep_id` string, nullable: For seasons only — Reep ID of the parent competition
    - `match_date` string, nullable: For matches only — ISO date of the fixture
    - `kickoff_utc` string, nullable: For matches only — ISO kickoff timestamp when known
    - `home_team_reep_id` string, nullable: For matches only — Reep ID of the home team
    - `away_team_reep_id` string, nullable: For matches only — Reep ID of the away team
    - `home_score` integer, nullable: For matches only — final home score when known
    - `away_score` integer, nullable: For matches only — final away score when known
    - `round_label` string, nullable: For matches only — provider round label
    - `referee` string, nullable: For matches only
    - `attendance` integer, nullable: For matches only
    - `season_label` string, nullable: For matches only — provider-native season label when no canonical season mapping exists
    - `source` string: Provenance (wikidata, opta, etc.)
    - `external_ids` object: Map of provider name to external ID (includes wikidata QID)
    - `_deprecated` boolean: Present and `true` when the client asked for a `reep_id` that has been retired. The body carries the canonical entity's fields; the `_canonical_id` meta tells the client the underlying `reep_id` has moved. Provider-id paths (e.g. `?id=Q42`) redirect silently and do NOT set this field.
    - `_canonical_id` string, nullable: When `_deprecated=true`, the canonical successor `reep_id`. Null on a retirement (entity removed with no successor — a 410 Gone body).
    - `_deprecated_at` string: ISO timestamp when the retired `reep_id` was soft-deleted.
    - `_deprecated_reason` 'retired' | 'chain_depth_exceeded' | 'canonical_missing': Present on error-shape deprecation responses (410 Gone body). `retired` = no successor. The other two are defensive fallbacks that should not surface in normal operation.
  - `count` integer

## Other responses

- `400`: Missing id parameter
- `410`: The requested `reep_id` was retired with no canonical successor. Body contains `_deprecated: true`, `_canonical_id: null`, and `_deprecated_reason`. Applies only to direct `reep_id` lookups; provider-id paths surface retirement as 200 with empty results.

## Changes

- **2026-04-24** `89950e8aa0a9`: 1 warning, 16 info
  - added the new `match` enum value to the `results/items/type` response property for the response status `200`
  - added the new enum value `match` to the `query` request parameter `type`
  - added the non-success response with the status `410`
  - added the optional property `results/items/_canonical_id` to the response with the `200` status
  - …13 more
- **2026-04-11** `55ab7497b8ea`: 2 warning, 1 info
  - added the new `competition` enum value to the `results/items/type` response property for the response status `200`
  - added the new `season` enum value to the `results/items/type` response property for the response status `200`
  - endpoint deprecated
- **2026-04-07** `22d8e0823925`: 1 info
  - added the optional property `results/items/position_detail` to the response with the `200` status
- **2026-04-04** `fd744bd7afe2`: 3 info
  - added the new enum value `competition` to the `query` request parameter `type`
  - added the new enum value `season` to the `query` request parameter `type`
  - added the optional property `results/items/competition_reep_id` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/withqwerty/apis/the-reep-register/changes/lookup/get.md)

---

[API](https://skmtc.dev/withqwerty/apis/the-reep-register.md) - [All operations](https://skmtc.dev/withqwerty/apis/the-reep-register/llms.txt) - [OpenAPI document](https://skmtc.dev/withqwerty/apis/the-reep-register/revisions/82844e1c9405?raw)
