# Posts

> Read one post by its link or Eden id, with full text and transcript, or search posts across seven platforms.

Read one post by link or by id, or search every post in Eden's index. Platforms: `twitter` (`x`
works too), `linkedin`, `instagram`, `tiktok`, `youtube`, `substack`, and `threads`.

```http
GET https://api.eden.so/v1/posts?url={link}
GET https://api.eden.so/v1/posts/{platform}/{id}
GET https://api.eden.so/v1/posts/search
```

## Read a post by link

`GET /v1/posts?url=` takes a link to any post Eden can read: YouTube, Instagram, TikTok, X,
LinkedIn, Threads, Substack, or Loom. It returns the full text, the transcript, stats, and the
creator.

| Param | Required | What it is                                                          |
| ----- | -------- | ------------------------------------------------------------------- |
| `url` | Yes      | The full link to the post, starting with `https://`. URL-encode it. |

```bash
curl -G "https://api.eden.so/v1/posts" \
  --data-urlencode "url=https://www.youtube.com/watch?v=Xyz123AbC45" \
  -H "Authorization: Bearer $EDEN_API_KEY"
```

```json
{
  "ok": true,
  "post": {
    "id": "sample-post-0",
    "platform": "youtube",
    "url": "https://www.youtube.com/watch?v=sample0",
    "type": "video",
    "title": "How I write a week of posts in one hour",
    "text": "Here is the routine I use every Monday to write the whole week.",
    "text_truncated": false,
    "published_at": "2026-11-20T00:00:00.000Z",
    "duration_seconds": 540,
    "language": "en",
    "hashtags": ["writing", "creators"],
    "stats": {
      "views": 240000,
      "likes": 12400,
      "comments": 610,
      "shares": 900,
      "engagement_rate": 0.054,
      "outlier_score": 4.2,
      "creator_percentile": 99
    },
    "labels": {
      "topic": "Business and finance",
      "content_type": "Tutorial",
      "format": "talking head",
      "mood": "practical",
      "tags": ["writing", "content systems"],
      "summary": "A creator explains a simple weekly writing routine."
    },
    "transcript": {
      "text": "Most people think they need more time to write. You need a system. Here is mine. Step one, I keep every idea in one place...",
      "status": "available",
      "truncated": false,
      "source": "cache"
    },
    "slide_text": { "text": null, "status": "not-supported", "truncated": false },
    "on_screen_text": { "text": null, "status": "not-supported" },
    "creator": {
      "platform": "youtube",
      "username": "noravale",
      "display_name": "Nora Vale",
      "avatar_url": null,
      "profile_url": "https://www.youtube.com/@noravale",
      "followers": 182000
    }
  }
}
```

A link Eden has never seen can answer `202` with `"status": "queued"` and `retry_after_seconds`.
Wait, then call again. A Loom link answers with only `id` (`null`), `platform`, `url`, and
`transcript`.

## Read a post by id

`GET /v1/posts/{platform}/{id}` returns the same `post` as above for a post Eden already has. The
`id` is the `id` from any other answer (a search, a creator's posts, or a transcript's `post_id`).

```bash
curl "https://api.eden.so/v1/posts/youtube/sample-post-0" \
  -H "Authorization: Bearer $EDEN_API_KEY"
```

An id Eden doesn't have answers `404`.

## Post fields

| Field              | What it is                                                                                                           |
| ------------------ | -------------------------------------------------------------------------------------------------------------------- |
| `id`               | Eden's id for the post.                                                                                              |
| `platform`         | One of the seven platforms.                                                                                          |
| `url`              | The post on its platform.                                                                                            |
| `type`             | The kind of post, like `video`, `short`, `post`, `note`, or `article`.                                               |
| `title`            | The title, for posts that have one, like YouTube videos and Substack articles. Otherwise `null`.                     |
| `text`             | The full caption or post text. `text_truncated` is `true` when a very long one was cut short.                        |
| `published_at`     | When it was posted, as an ISO date.                                                                                  |
| `duration_seconds` | Video length, when known.                                                                                            |
| `language`         | Language code, like `en`, when known.                                                                                |
| `hashtags`         | Hashtags in the post.                                                                                                |
| `stats`            | `views`, `likes`, `comments`, `shares`, `engagement_rate`, `outlier_score`, `creator_percentile`. Any can be `null`. |
| `labels`           | Eden's labels: `topic`, `content_type`, `format`, `mood`, `tags`, and a one-line `summary`.                          |
| `transcript`       | Spoken words. Same block as on [Transcripts](https://eden.so/developers/transcripts/#fields).                                       |
| `slide_text`       | Words on an Instagram carousel's slides.                                                                             |
| `on_screen_text`   | Words shown on screen in a reel or TikTok.                                                                           |
| `creator`          | `platform`, `username`, `display_name`, `avatar_url`, `profile_url`, `followers`.                                    |

`outlier_score` is how the post did against the creator's own normal: `1` is a normal post, `4.2`
did 4.2 times better. `creator_percentile` is where it ranks among that creator's posts (`99` is
their top 1%).

## Search posts

`GET /v1/posts/search` searches every post in Eden's index. All params are optional. With no `q`,
it returns the top posts for your filters.

| Param         | What it is                                                                             |
| ------------- | -------------------------------------------------------------------------------------- |
| `q`           | Words to search for, like `morning routine`.                                           |
| `platforms`   | A comma-separated list, like `youtube,tiktok`. Leave it out for all seven.             |
| `since`       | How far back: `week`, `month`, `quarter`, `half`, `year`, `two_years`, or `all`.       |
| `sort`        | `outlier` (did best against the creator's normal), `recent`, `engagement`, or `views`. |
| `min_outlier` | Only posts with at least this `outlier_score`, like `3`.                               |
| `limit`       | How many posts, from 1 to 25.                                                          |

```bash
curl -G "https://api.eden.so/v1/posts/search" \
  --data-urlencode "q=morning routine" \
  -d "platforms=youtube,tiktok" -d "since=month" -d "sort=outlier" -d "limit=1" \
  -H "Authorization: Bearer $EDEN_API_KEY"
```

```json
{
  "ok": true,
  "query": "morning routine",
  "posts": [
    {
      "id": "sample-post-0",
      "platform": "youtube",
      "url": "https://www.youtube.com/watch?v=sample0",
      "type": "video",
      "title": "How I write a week of posts in one hour",
      "text_preview": "A short walk through the exact steps, with real examples from this week.",
      "text_truncated": true,
      "published_at": "2026-11-20T00:00:00.000Z",
      "duration_seconds": 540,
      "language": "en",
      "thumbnail_url": "https://eden.so/images/sample/post-0.jpg",
      "stats": {
        "views": 240000,
        "likes": 12400,
        "comments": 610,
        "shares": 900,
        "engagement_rate": 0.054,
        "outlier_score": 4.2,
        "creator_percentile": 99
      },
      "labels": {
        "topic": "Business and finance",
        "content_type": "Tutorial",
        "format": "talking head",
        "mood": "practical",
        "tags": ["writing", "content systems"],
        "summary": "A creator explains a simple weekly writing routine."
      },
      "is_outlier": true,
      "creator": {
        "platform": "youtube",
        "username": "noravale",
        "display_name": "Nora Vale",
        "avatar_url": "https://eden.so/images/sample/nora-vale.jpg",
        "profile_url": "https://www.youtube.com/@noravale",
        "followers": 182000
      }
    }
  ]
}
```

Search results are shorter than a full post: `text_preview` instead of `text`, a `thumbnail_url`,
and `is_outlier` when Eden has marked it. There is no transcript. Read one post by id to get it.
`query` is `null` when you leave `q` out.

An empty `posts` list is free.

## Errors

| HTTP  | `status`      | When                                               |
| ----- | ------------- | -------------------------------------------------- |
| `202` | `queued`      | Eden is fetching a new link for the first time.    |
| `404` | `not-found`   | No post with that link or id.                      |
| `422` | `invalid`     | A param is wrong, like `sort=best` or `limit=100`. |
| `422` | `unsupported` | Eden can't read this kind of link.                 |

All errors are on the [Errors](https://eden.so/developers/errors/) page.
