---
title: "Get entity detail"
method: GET
path: "/api/entities/{entity_slug}"
tags: ["Knowledge Graph"]
---

# Get entity detail

`GET /api/entities/{entity_slug}`

## Request

- Base URL: `https://www.audioscrape.com`
- URL: `https://www.audioscrape.com/api/entities/{entity_slug}`
- Auth: HTTP bearer

Returns an entity (person, organisation, place, etc.) plus the episodes where it's most mentioned. Useful for building topic-specific feeds: pin to an entity, watch which episodes mention it.

## Path parameters

- `entity_slug` string, required

## Query parameters

- `dataset_id` integer

## Response `200`

Entity + most-mentioning episodes

- EntityDetail
  - `description` string, nullable
  - `entity_type` string, required
  - `id` integer, required
  - `mention_count` integer, required
  - `name` string, required
  - `recent_episodes` EntityEpisodeMention[]: Top episodes mentioning this entity. Only populated by `GET /api/entities/{slug}` — search results (`GET /api/entities`) always return an empty list and the field is omitted from the JSON to keep responses compact.
    - `episode_id` integer, required
    - `episode_title` string, required
    - `mention_count` integer, required
    - `podcast_title` string, required
  - `slug` string, required
  - `wikidata_qid` string, nullable: Wikidata QID for head entities (GH#161 linking) — the stable external join key. Omitted when unlinked (the long tail).

## Other responses

- `401`: Missing or invalid API key
- `402`: No active subscription (paid endpoint requires a subscription)
- `403`: Endpoint not available on the caller's plan
- `404`: Entity not found
- `429`: Monthly quota exhausted (response includes `usage: { current, limit }`)

---

[API](https://skmtc.dev/audioscrape/apis/audioscrape-rest-api.md) · [All operations](https://skmtc.dev/audioscrape/apis/audioscrape-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/audioscrape/apis/audioscrape-rest-api/revisions/29b5788227cf?raw)
