# Creators

> Find creators by topic, get a creator's profile, totals, and top posts, and page through all of their posts.

Search creators by topic, look one up by handle, and page through their posts. Any public creator
works: if Eden doesn't have them yet, it pulls their posts and keeps them.

```http
GET https://api.eden.so/v1/creators/search?q={topic}
GET https://api.eden.so/v1/creators/{platform}/{handle}
GET https://api.eden.so/v1/creators/{platform}/{handle}/posts
```

Platforms: `twitter` (`x` works too), `linkedin`, `instagram`, `tiktok`, `youtube`, `substack`, and
`threads`. Handles work with or without `@`, in any case.

## Search creators

`GET /v1/creators/search` finds creators who post about a topic.

| Param       | Required | What it is                                                              |
| ----------- | -------- | ----------------------------------------------------------------------- |
| `q`         | Yes      | The topic or niche, at least 3 letters, like `writing systems`.         |
| `platforms` | No       | A comma-separated list, like `youtube,instagram`. Leave it out for all. |
| `limit`     | No       | How many creators, from 1 to 25.                                        |

```bash
curl -G "https://api.eden.so/v1/creators/search" \
  --data-urlencode "q=writing systems" -d "limit=1" \
  -H "Authorization: Bearer $EDEN_API_KEY"
```

```json
{
  "ok": true,
  "query": "writing systems",
  "creators": [
    {
      "platform": "youtube",
      "username": "noravale",
      "display_name": "Nora Vale",
      "profile_url": "https://www.youtube.com/@noravale",
      "avatar_url": "https://eden.so/images/sample/nora-vale.jpg",
      "bio": "I teach creators to write faster.",
      "followers": 182000,
      "top_category": "Business and finance",
      "matching_posts": 14,
      "examples": [
        { "excerpt": "My weekly writing system...", "published_at": "2026-11-18T00:00:00.000Z" }
      ]
    }
  ]
}
```

`matching_posts` is how many of their posts match `q`. `examples` are short bits from those posts.
An empty `creators` list is free.

## Get a creator

`GET /v1/creators/{platform}/{handle}` returns the profile, totals across their posts, and their
top posts ranked against their own normal.

| Param       | Required | What it is                                                                                |
| ----------- | -------- | ----------------------------------------------------------------------------------------- |
| `since`     | No       | Only count posts from: `week`, `month`, `quarter`, `half`, `year`, `two_years`, or `all`. |
| `top_posts` | No       | How many top posts, from 1 to 15.                                                         |

```bash
curl "https://api.eden.so/v1/creators/youtube/noravale?top_posts=1" \
  -H "Authorization: Bearer $EDEN_API_KEY"
```

```json
{
  "ok": true,
  "creator": {
    "platform": "youtube",
    "username": "noravale",
    "display_name": "Nora Vale",
    "profile_url": "https://www.youtube.com/@noravale",
    "avatar_url": "https://eden.so/images/sample/nora-vale.jpg",
    "bio": "I teach creators to write faster.",
    "followers": 182000,
    "avg_views": 96000,
    "avg_engagement_rate": 0.041,
    "posts_indexed": 312,
    "still_indexing": false,
    "last_refreshed_at": "2026-11-20T00:00:00.000Z"
  },
  "totals": {
    "posts": 312,
    "avg_views": 96000,
    "avg_engagement_rate": 0.041,
    "median_outlier_score": 1.1,
    "total_views": 29952000,
    "total_likes": 1310000,
    "total_comments": 58000,
    "total_shares": 91000
  },
  "top_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
      }
    }
  ]
}
```

Each item in `top_posts` has the same fields as a [search result](https://eden.so/developers/posts/#search-posts).

| Field                         | What it is                                                             |
| ----------------------------- | ---------------------------------------------------------------------- |
| `creator.posts_indexed`       | How many of their posts Eden has.                                      |
| `creator.still_indexing`      | `true` while Eden is still pulling older posts. Totals can still grow. |
| `creator.last_refreshed_at`   | When Eden last pulled their posts.                                     |
| `totals.median_outlier_score` | Their typical post. Compare a post's `outlier_score` to it.            |

### New creators

The first call for a creator Eden doesn't have yet answers `202` while it pulls their posts. It
sends what Eden has so far, and how long to wait:

```json
{
  "ok": false,
  "status": "indexing",
  "message": "Eden is pulling this creator's posts for the first time. Try again shortly.",
  "retry_after_seconds": 20,
  "creator": {
    "platform": "instagram",
    "username": "noravale",
    "display_name": "Nora Vale",
    "profile_url": "https://www.instagram.com/noravale/",
    "avatar_url": null,
    "bio": "I teach creators to write faster.",
    "followers": 182000
  },
  "posts_found": 40,
  "posts_expected": 300,
  "recent_posts": []
}
```

Wait `retry_after_seconds` (also in the `Retry-After` header), then call again. Waiting answers
are free. Once Eden has a creator, it keeps them, and every app gets them right away.

### Other answers

- An account with no public posts answers `200` with `"totals": null` and an empty `top_posts`.
  It's free.
- A handle that matches more than one account answers `409` with `"status": "ambiguous"` and a
  `candidates` list. Call again with one of their `username`s.
- A handle that doesn't exist answers `404`.

## A creator's posts

`GET /v1/creators/{platform}/{handle}/posts` pages through every post Eden has for a creator.

| Param    | What it is                                                              |
| -------- | ----------------------------------------------------------------------- |
| `q`      | Only posts that match these words.                                      |
| `sort`   | `outlier`, `recent`, `engagement`, or `views`.                          |
| `since`  | `week`, `month`, `quarter`, `half`, `year`, `two_years`, or `all`.      |
| `limit`  | How many posts per page, from 1 to 50.                                  |
| `offset` | Where to start. Use the `next_offset` from the last page. Up to 10,000. |

```bash
curl "https://api.eden.so/v1/creators/youtube/noravale/posts?sort=recent&limit=1" \
  -H "Authorization: Bearer $EDEN_API_KEY"
```

```json
{
  "ok": true,
  "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
      }
    }
  ],
  "has_more": true,
  "next_offset": 1
}
```

### Paging

While `has_more` is `true`, call again with `offset` set to `next_offset`. On the last page,
`has_more` is `false` and `next_offset` is `null`.

```js
async function allPosts(platform, handle) {
  const posts = [];
  let offset = 0;
  while (offset !== null) {
    const params = new URLSearchParams({ sort: "recent", limit: "50", offset: String(offset) });
    const res = await fetch(
      `https://api.eden.so/v1/creators/${platform}/${handle}/posts?${params}`,
      { headers: { Authorization: `Bearer ${process.env.EDEN_API_KEY}` } },
    );
    const page = await res.json();
    if (!page.ok) throw new Error(`${page.status}: ${page.message}`);
    posts.push(...page.posts);
    offset = page.has_more ? page.next_offset : null;
  }
  return posts;
}
```

Each page is one call. An empty page is free.

If the first page is empty, the answer also has a `hint`: Eden may not have this creator yet. Call
[`GET /v1/creators/{platform}/{handle}`](#get-a-creator) first to pull their posts.

## Errors

| HTTP  | `status`    | When                                                         |
| ----- | ----------- | ------------------------------------------------------------ |
| `202` | `indexing`  | Eden is pulling this creator for the first time.             |
| `404` | `not-found` | No account with that handle.                                 |
| `409` | `ambiguous` | More than one account matches. See `candidates`.             |
| `422` | `invalid`   | A param is wrong, like an unknown platform or `q` too short. |

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