> Part of the Rephonic API reference. The full list of pages is at https://rephonic.com/llms.txt.

# Graph

> Shows that share listeners with a given podcast.

```
GET https://api.rephonic.com/api/similar/graph/
```

Find the podcasts that share listeners with a podcast, and the podcasts that share listeners with those. It's the data behind the [Audience Graph](https://rephonic.com/graph) in the Rephonic app.

For a simple list of similar podcasts, see `similar` on [get a podcast](https://rephonic.com/developers/docs/1.1/get-podcast.md).

## Parameters

| Field | In | Description | Default | Max | Required |
|-------|----|-------------|---------|-----|----------|
| podcast_id | query | The podcast's Rephonic ID, e.g. `huberman-lab`. |  |  | Yes |

## Response Fields

- `graph` (object)
  - `nodes` (array of objects): The podcast you asked for, the podcasts that share its listeners, and the podcasts that share theirs.
    - `id` (string): The podcast's Rephonic ID.
    - `itunes_id` (integer): The podcast's Apple Podcasts ID.
    - `publisher` (string): The publisher's name.
    - `name` (string): The podcast's name.
    - `artwork_url` (string): The cover art, 600 by 600 pixels.
    - `artwork_thumbnail_url` (string): The cover art, 70 by 70 pixels.
    - `description` (string): The show's description, cut to about 1,000 characters. Empty when it has none.
  - `links` (array of objects): Which podcasts share listeners.
    - `source` (string): The ID of the podcast the link starts from.
    - `target` (string): The ID of a podcast that shares listeners with `source`.
    - `depth` (integer): How far the link is from the podcast you asked for. A link from that podcast has `0`, and a link from one of the podcasts it links to has `1`. Values: `0`, `1`.

## Example Request

```bash
curl -G https://api.rephonic.com/api/similar/graph/ \
  -H "X-Rephonic-Api-Key: YOUR_API_KEY" \
  --data-urlencode "podcast_id=the-daily"
```

## Example Response

```json
{
  "graph": {
    "nodes": [
      {
        "id": "the-daily",
        "itunes_id": 1200361736,
        "publisher": "The New York Times",
        "name": "The Daily",
        "artwork_url": "https://img.rephonic.com/artwork/the-daily.jpg?width=600&height=600&quality=95",
        "artwork_thumbnail_url": "https://img.rephonic.com/artwork/the-daily.jpg?width=70&height=70&quality=95",
        "description": "This is what the news should sound like..."
      },
      {
        "id": "up-first",
        "itunes_id": 1222114325,
        "publisher": "NPR",
        "name": "Up First",
        "artwork_url": "https://img.rephonic.com/artwork/up-first.jpg?width=600&height=600&quality=95",
        "artwork_thumbnail_url": "https://img.rephonic.com/artwork/up-first.jpg?width=70&height=70&quality=95",
        "description": "NPR's Up First is the news you need to start your day..."
      },
      {
        "id": "the-npr-politics-podcast",
        "itunes_id": 1057255460,
        "publisher": "NPR",
        "name": "The NPR Politics Podcast",
        "artwork_url": "https://img.rephonic.com/artwork/the-npr-politics-podcast.jpg?width=600&height=600&quality=95",
        "artwork_thumbnail_url": "https://img.rephonic.com/artwork/the-npr-politics-podcast.jpg?width=70&height=70&quality=95",
        "description": "Every weekday, NPR's best political reporters are there to explain the big news coming out of Washington and the campaign trail..."
      }
    ],
    "links": [
      {
        "source": "the-daily",
        "target": "up-first",
        "depth": 0
      },
      {
        "source": "up-first",
        "target": "the-npr-politics-podcast",
        "depth": 1
      },
      {
        "source": "the-daily",
        "target": "the-npr-politics-podcast",
        "depth": 0
      }
    ]
  }
}
```
