---
title: "Fetch Entity"
method: GET
path: "/entities/{entity_id}"
tags: ["Data access"]
---

# Fetch Entity

`GET /entities/{entity_id}`

Retrieve a single entity by its ID. The entity will be returned in
full, with data from all datasets and with nested entities (adjacent
passport, sanction and associated entities) included. If the entity ID
has been merged into a different canonical entity, an HTTP redirect will
be triggered.

Intro: [entity data model](https://www.opensanctions.org/docs/entities/).

## Path parameters

- `entity_id` string, required — ID of the entity to retrieve

## Query parameters

- `nested` boolean

## Response `200`

Successful Response

- EntityResponse
  - `id` string, required
  - `caption` string, required
  - `schema` string, required
  - `properties` object, required
  - `datasets` string[]
  - `referents` string[]
  - `target` boolean
  - `first_seen` string
  - `last_seen` string
  - `last_change` string

## Other responses

- `308` — The entity was merged into another ID
- `404` — Entity not found
- `422` — Validation Error
- `500` — Server error

---

[API](https://skmtc.net/opensanctions/apis/opensanctions-api.md) · [All operations](https://skmtc.net/opensanctions/apis/opensanctions-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opensanctions/opensanctions-api/revisions/8261f1aa0d2c/schema)
