---
title: "List a campaign’s posts"
---

> Documentation Index
> Fetch the complete documentation index at: https://api.whyviral.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List a campaign’s posts

Path: WhyViral API › Campaigns

`GET /campaigns/{id}/posts`

URL: `https://whyviral.ai/api/v1/campaigns/{id}/posts`

One page of a campaign’s posts, or of every post its creators published since the start. Free.

## Authentication

Requires one of the following:

- `bearer`, http bearer, header `Authorization`
- `apiKeyHeader`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`listCampaignPosts.path.id`; string, required) — The campaign’s `id`.
  - example: `"s17e2m8x4c9v0b3n5q7w1r6t2y8u4i0o"`

## Query parameters

- `view` (`listCampaignPosts.query.view`; string, optional) — `campaign` for campaign posts, `all` for every post of its creators since the start.
  - one of `"campaign"`, `"all"` · default: `"campaign"`
- `sort` (`listCampaignPosts.query.sort`; string, optional) — Most viewed first, or newest first.
  - one of `"views"`, `"newest"` · default: `"views"`
- `cursor` (`listCampaignPosts.query.cursor`; string, optional) — The last answer’s `next_cursor`.
- `limit` (`listCampaignPosts.query.limit`; integer, optional) — How many rows, 1 to 50.
  - maximum: `50` · minimum: `1` · default: `20`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://whyviral.ai/api/v1/campaigns/s17e2m8x4c9v0b3n5q7w1r6t2y8u4i0o/posts \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://whyviral.ai/api/v1/campaigns/s17e2m8x4c9v0b3n5q7w1r6t2y8u4i0o/posts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://whyviral.ai/api/v1/campaigns/s17e2m8x4c9v0b3n5q7w1r6t2y8u4i0o/posts"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The posts.

#### Example

```json
{
  "object": "list",
  "next_cursor": null,
  "data": [
    {
      "id": "p57d3k9x2v8q1m4n6b0c5w7h2r9t3y8a",
      "object": "campaign_post",
      "url": "https://www.tiktok.com/@rosa.proofs/video/7430000000000000002",
      "kind": "video",
      "text": "price list day, worked out with Crumbsheet",
      "cover_url": "https://media.whyviral.ai/covers/example.jpg",
      "platform": "tiktok",
      "posted_at": "2026-11-16T00:00:00.000Z",
      "views": 212000,
      "likes": 18400,
      "campaign": true,
      "names_brand": true,
      "disclosure": null,
      "terms_met": false,
      "missing_terms": [
        "#crumbsheet"
      ],
      "used_terms": [
        {
          "term": "@crumbsheet",
          "where": "said"
        }
      ],
      "moved": null,
      "added": false,
      "competitor": null,
      "alerts": [
        "undisclosed",
        "missing_terms"
      ],
      "watched": true,
      "creator": {
        "id": "jx7d3k9x2v8q1m4n6b0c5w7h2r9t3y8a",
        "platform": "tiktok",
        "handle": "rosa.proofs",
        "name": "Rosa",
        "profile_url": "https://www.tiktok.com/@rosa.proofs",
        "avatar_url": "https://media.whyviral.ai/avatars/example.jpg",
        "followers": 96000,
        "country": "United Kingdom",
        "country_code": "GB"
      }
    }
  ]
}
```

- `object` (`listCampaignPosts.response.200.object`; string, required)
- `next_cursor` (`listCampaignPosts.response.200.next_cursor`; any of, required)
  - any of the following:
    - `string` — Send it as `cursor` for the next page; null on the last.
    - `null`
- `data` (`listCampaignPosts.response.200.data`; array of object, required)
  - `id` (`listCampaignPosts.response.200.data.id`; string, required) — The post’s id in the campaign.
  - `object` (`listCampaignPosts.response.200.data.object`; string, required) — `"campaign_post"`.
  - `url` (`listCampaignPosts.response.200.data.url`; string, required) — The post’s link.
    - format: `uri`
  - `kind` (`listCampaignPosts.response.200.data.kind`; string, required) — `video`, `slides` or `text`.
    - one of `"video"`, `"slides"`, `"text"`
  - `text` (`listCampaignPosts.response.200.data.text`; string, required) — Its caption or text.
  - `cover_url` (`listCampaignPosts.response.200.data.cover_url`; any of, required) — A public cover image WhyViral hosts.
    - any of the following: `string`, `null`
  - `platform` (`listCampaignPosts.response.200.data.platform`; string, required) — The platform it is on.
    - one of `"tiktok"`, `"instagram"`, `"youtube"`, `"x"`
  - `posted_at` (`listCampaignPosts.response.200.data.posted_at`; any of, required) — When it was published.
    - any of the following: `string`, `null`
  - `views` (`listCampaignPosts.response.200.data.views`; any of, required) — Its views at the last read.
    - any of the following: `integer`, `null`
  - `likes` (`listCampaignPosts.response.200.data.likes`; any of, required) — Its likes.
    - any of the following: `integer`, `null`
  - `campaign` (`listCampaignPosts.response.200.data.campaign`; boolean, required) — True for a campaign post: it meets the required terms or names the brand, or the owner added or moved it there.
  - `names_brand` (`listCampaignPosts.response.200.data.names_brand`; boolean, required) — Whether it names the project’s brand.
  - `disclosure` (`listCampaignPosts.response.200.data.disclosure`; any of, required) — `{how, text, at_sec}`: the ad disclosure found, by `label`, `hashtag`, `said` or `shown`.
    - any of the following:
      - `object`
        - `how` (`listCampaignPosts.response.200.data.disclosure.1.how`; string, required)
          - one of `"label"`, `"hashtag"`, `"said"`, `"shown"`
        - `text` (`listCampaignPosts.response.200.data.disclosure.1.text`; string, required)
        - `at_sec` (`listCampaignPosts.response.200.data.disclosure.1.at_sec`; any of, required)
          - any of the following: `number`, `null`
      - `null`
  - `terms_met` (`listCampaignPosts.response.200.data.terms_met`; boolean, required) — Whether every required term is present.
  - `missing_terms` (`listCampaignPosts.response.200.data.missing_terms`; array of string, required) — The required terms it lacks.
  - `used_terms` (`listCampaignPosts.response.200.data.used_terms`; array of object, required) — `[{term, where}]`: where each required term it carries was found; `where` is `caption`, `shown` or `said`.
    - `term` (`listCampaignPosts.response.200.data.used_terms.term`; string, required)
    - `where` (`listCampaignPosts.response.200.data.used_terms.where`; string, required)
      - one of `"caption"`, `"shown"`, `"said"`
  - `moved` (`listCampaignPosts.response.200.data.moved`; any of, required) — The owner’s own word on whether it is a campaign post; null while its terms decide.
    - any of the following: `boolean`, `null`
  - `added` (`listCampaignPosts.response.200.data.added`; boolean, required) — True when its owner added it by its link.
  - `competitor` (`listCampaignPosts.response.200.data.competitor`; any of, required) — `{name, where, quote, at, unit}`: a competitor it names.
    - any of the following:
      - `object`
        - `name` (`listCampaignPosts.response.200.data.competitor.1.name`; string, required)
        - `where` (`listCampaignPosts.response.200.data.competitor.1.where`; string, required)
          - one of `"said"`, `"shown"`, `"written"`
        - `quote` (`listCampaignPosts.response.200.data.competitor.1.quote`; string, required)
        - `at` (`listCampaignPosts.response.200.data.competitor.1.at`; any of, required)
          - any of the following: `number`, `null`
        - `unit` (`listCampaignPosts.response.200.data.competitor.1.unit`; string, required)
          - one of `"second"`, `"slide"`, `"line"`
      - `null`
  - `alerts` (`listCampaignPosts.response.200.data.alerts`; array of string, required) — `undisclosed`, `missing_terms` and `competitor`; see the table below.
    - one of `"undisclosed"`, `"missing_terms"`, `"competitor"`
  - `watched` (`listCampaignPosts.response.200.data.watched`; boolean, required) — True when WhyViral watched it, not only read its text.
  - `creator` (`listCampaignPosts.response.200.data.creator`; object, required)
    - `id` (`listCampaignPosts.response.200.data.creator.id`; string, required) — The creator’s id, which `/creators/{id}` and a report take.
    - `platform` (`listCampaignPosts.response.200.data.creator.platform`; string, required) — The platform the account is on.
      - one of `"tiktok"`, `"instagram"`, `"youtube"`, `"x"`
    - `handle` (`listCampaignPosts.response.200.data.creator.handle`; string, required) — Their handle, without `@`.
    - `name` (`listCampaignPosts.response.200.data.creator.name`; any of, required) — Their display name.
      - any of the following: `string`, `null`
    - `profile_url` (`listCampaignPosts.response.200.data.creator.profile_url`; string, required) — Their profile on the platform.
      - format: `uri`
    - `avatar_url` (`listCampaignPosts.response.200.data.creator.avatar_url`; any of, required) — A public avatar image WhyViral hosts.
      - any of the following: `string`, `null`
    - `followers` (`listCampaignPosts.response.200.data.creator.followers`; any of, required) — Their follower count, when the platform shows it.
      - any of the following: `integer`, `null`
    - `country` (`listCampaignPosts.response.200.data.creator.country`; any of, required) — The country their profile states, as written.
      - any of the following: `string`, `null`
    - `country_code` (`listCampaignPosts.response.200.data.creator.country_code`; any of, required) — That country as an ISO 3166-1 alpha-2 code, when WhyViral recognizes it.
      - any of the following: `string`, `null`

### 400

`INVALID_REQUEST`: The body isn’t JSON, its `url` is missing or too long, or a parameter has a value it doesn’t take.

#### Example

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "The body isn’t JSON, its url is missing or too long, or a parameter has a value it doesn’t take."
  }
}
```

- `error` (`listCampaignPosts.response.400.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listCampaignPosts.response.400.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listCampaignPosts.response.400.error.message`; string, required) — What went wrong, in words.

### 401

`INVALID_API_KEY`: The key is missing, mistyped or revoked.

#### Example

```json
{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The key is missing, mistyped or revoked."
  }
}
```

- `error` (`listCampaignPosts.response.401.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listCampaignPosts.response.401.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listCampaignPosts.response.401.error.message`; string, required) — What went wrong, in words.

### 403

`ACCOUNT_DISABLED`: The key’s account is disabled.

#### Example

```json
{
  "error": {
    "code": "ACCOUNT_DISABLED",
    "message": "The key’s account is disabled."
  }
}
```

- `error` (`listCampaignPosts.response.403.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listCampaignPosts.response.403.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listCampaignPosts.response.403.error.message`; string, required) — What went wrong, in words.

### 404

`NOT_FOUND`: No read, project, creator, campaign or report like this on your account.

#### Example

```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "No read, project, creator, campaign or report like this on your account."
  }
}
```

- `error` (`listCampaignPosts.response.404.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listCampaignPosts.response.404.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listCampaignPosts.response.404.error.message`; string, required) — What went wrong, in words.

### 429

`RATE_LIMITED`: Too many new reads, data requests, searches or report links; wait the `Retry-After` header’s seconds.

#### Example

```json
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too many new reads, data requests, searches or report links; wait the Retry-After header’s seconds."
  }
}
```

- `error` (`listCampaignPosts.response.429.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listCampaignPosts.response.429.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listCampaignPosts.response.429.error.message`; string, required) — What went wrong, in words.

### 500

`INTERNAL`: Something broke on our side; try again.

#### Example

```json
{
  "error": {
    "code": "INTERNAL",
    "message": "Something broke on our side; try again."
  }
}
```

- `error` (`listCampaignPosts.response.500.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listCampaignPosts.response.500.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listCampaignPosts.response.500.error.message`; string, required) — What went wrong, in words.


Source: https://api.whyviral.ai/api/campaigns/posts/index.md
