---
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`

> **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.

---

[API](https://skmtc.net/withqwerty/apis/the-reep-register.md) · [All operations](https://skmtc.net/withqwerty/apis/the-reep-register/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/withqwerty/the-reep-register/revisions/82844e1c9405/schema)
