# List posts

Lists your posts, newest scheduled time first, one page at a time. GET /posts.

`GET https://api.tiktornado.com/api/v1/posts`

Scope: `posts:read`.

Lists your posts, newest scheduled time first, one page at a time. Posts on an account whose subscription isn't active are left out, so a page can hold fewer posts than `limit`.

## Query parameters

- `accountId` string: Only this account's posts. Matches `^[A-Za-z0-9]{1,64}$`.
- `cursor` string: The `nextCursor` of the previous page. Leave it out for the first page. A cursor we can't read is 400 `invalid_request`.
- `limit` integer: Items per page, a whole number from 1 to 100. 1 to 100. Default `25`.

## Examples

```bash
curl 'https://api.tiktornado.com/api/v1/posts?accountId=j971x2c4ajrq0w8sd5e8fxz3a57v2k8m&limit=25' \
  -H "Authorization: Bearer $TIKTORNADO_API_KEY"
```

```js
const response = await fetch("https://api.tiktornado.com/api/v1/posts?accountId=j971x2c4ajrq0w8sd5e8fxz3a57v2k8m&limit=25", {
  headers: {
    Authorization: `Bearer ${process.env.TIKTORNADO_API_KEY}`,
  },
});
const data = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://api.tiktornado.com/api/v1/posts",
    headers={
        "Authorization": f"Bearer {os.environ['TIKTORNADO_API_KEY']}",
    },
    params={
        "accountId": "j971x2c4ajrq0w8sd5e8fxz3a57v2k8m",
        "limit": "25",
    },
)
data = response.json()
```

## Response 200

A page of posts.

- `posts` array of objects, required
  - `id` string, required: An id, letters and digits only. Matches `^[A-Za-z0-9]{1,64}$`.
  - `accountId` string, required: An id, letters and digits only. Matches `^[A-Za-z0-9]{1,64}$`.
  - `username` string or null, required: The account's TikTok username, or `null` before it is set.
  - `kind` string, required: `video`: one video. `photo`: 1 to 35 photos. One of `video`, `photo`.
  - `caption` string, required
  - `mediaCount` integer, required: How many media items the post has. At least 1.
  - `scheduledFor` string, required: When the post goes out, in UTC. For a post sent with `postNow`, when it was saved. An ISO 8601 date and time.
  - `status` string, required: - `scheduling`: saved, on its way to TikTok's scheduler.
    - `scheduled`: waiting for its time.
    - `to_drafts`: scheduled to go to the account's TikTok drafts.
    - `publishing`: going out now.
    - `published`: live on TikTok.
    - `in_drafts`: waiting in the account's TikTok drafts for you to finish and post it in the TikTok app. It becomes `published` once posted publicly.
    - `failed`: it couldn't go out. `error` says why. Edit it to try again.
    - `cancelling`: being cancelled.
    - `cancelled`: cancelled, it won't go out.
    - `paused`: held while the account's subscription isn't active.
    - `missed`: its time passed while it couldn't go out. One of `scheduling`, `scheduled`, `cancelling`, `publishing`, `published`, `failed`, `paused`, `cancelled`, `missed`, `to_drafts`, `in_drafts`.
  - `error` object or null, required: Why a post failed, or `null`.
    - `reason` string, required
    - `message` string, required
  - `settings` object or null, required: The post's TikTok settings as saved, or `null` for none. A `coverImageRef` comes back exactly as you sent it.
    - `privacy` string: Photos only: who can see the post. Videos are always public (`everyone`). `everyone` if left out. Not `only_me` with `brandedContent` other than `none` (`branded_private`). One of `everyone`, `friends`, `followers`, `only_me`.
    - `allowComments` boolean: Videos and photos. `false` turns comments off. On if left out.
    - `allowDuets` boolean: Videos only. `false` turns duets off. On if left out.
    - `allowStitches` boolean: Videos only. `false` turns stitches off. On if left out.
    - `brandedContent` string: Videos and photos: the commercial content disclosure. `your_brand` promotes your own business, `paid_partnership` promotes another brand, `both` is both at once. `none` if left out. One of `none`, `your_brand`, `paid_partnership`, `both`.
    - `aiGenerated` boolean: Videos only. `true` labels the video as made with AI. A photo post can't carry the label (`ai_label_photo`).
    - `coverAtMs` integer: Videos only. The frame to use as the cover, in milliseconds from the start. Not with `coverImageRef`. 0 to 600,000.
    - `coverImageRef` string: Videos only. A custom cover image: a `mediaRef` from `POST /uploads`, or a public `https` link straight to a JPEG, PNG or WebP up to 20 MB. Not with `coverAtMs`. At most 2,048 characters.
    - `coverPhotoIndex` integer: Photos only. Which photo is the cover, `0` for the first. It must be one of the post's photos. 0 to 34.
    - `music` object: Videos and photos: a track from TikTok's commercial music, added to the post. Not with `autoMusic` (`music_conflict`). The volumes, `startMs` and `endMs` are for videos only.
      - `trackId` string, required: A track's `id` from `GET /accounts/{accountId}/music` for this account. 1 to 200 characters.
      - `volume` integer: Videos only. The track's volume, 0 to 100. 50 if left out. 0 to 100.
      - `startMs` integer: Videos only. Where in the track to start, in milliseconds. 0 if left out. At least 0.
      - `endMs` integer: Videos only. Where in the track to stop, in milliseconds, after `startMs`. The video's end if left out. At least 1.
      - `videoSoundVolume` integer: Videos only. The video's own sound under the track, 0 to 100. 50 if left out. 0 to 100.
    - `autoMusic` boolean: Photos only. `true` lets TikTok add a recommended track. Not with `music`, and not with `brandedContent` other than `none` (`auto_music_branded`).
    - `location` object: Videos only. A place to tag, as `GET /accounts/{accountId}/locations` gives it.
      - `id` string, required: The place's `id`. 1 to 200 characters.
      - `name` string, required: The place's `name`. 1 to 200 characters.
    - `adsOnly` boolean: Videos only. `true` keeps the video off the profile, for use as an ad.
  - `postNow` boolean, required: Whether the post was sent with `postNow`.
- `nextCursor` string or null, required: Pass it as `cursor` for the next page. `null` on the last page.

```json
{
  "posts": [
    {
      "id": "k174wq9nrm6t2f0bd3xh8pz5a87v1c2e",
      "accountId": "j971x2c4ajrq0w8sd5e8fxz3a57v2k8m",
      "username": "liftwithmaya",
      "kind": "video",
      "caption": "Leg day, no excuses #fitness",
      "mediaCount": 1,
      "scheduledFor": "2026-12-02T15:00:00.000Z",
      "status": "scheduled",
      "error": null,
      "settings": {
        "allowDuets": false,
        "music": {
          "trackId": "7312345678901234567",
          "volume": 40
        }
      },
      "postNow": false
    },
    {
      "id": "k17b2pz9xq4w8t0cd5fh3nm6a87v2r1e",
      "accountId": "j971x2c4ajrq0w8sd5e8fxz3a57v2k8m",
      "username": "liftwithmaya",
      "kind": "photo",
      "caption": "Meal prep for the week",
      "mediaCount": 4,
      "scheduledFor": "2026-11-30T12:00:00.000Z",
      "status": "failed",
      "error": {
        "reason": "content_rejected",
        "message": "TikTok didn't allow this post under its rules."
      },
      "settings": null,
      "postNow": false
    }
  ],
  "nextCursor": null
}
```

## Errors

| Status | Reason | Message |
| --- | --- | --- |
| 400 | `invalid_request` | Something here isn't valid. Check it and try again. |
| 401 | `api_key_invalid` | This API key isn't valid. Check it, or create a new one in the app. |
| 403 | `access_locked` | Your subscription isn't active, so this can't be changed right now. Visit Billing to fix it. |
| 403 | `api_scope_missing` | This API key can't do this. Create a key with the access it needs in the app. |
| 404 | `not_found` | We couldn't find this. |
| 429 | `slow_down` | You're going a bit fast. Wait a moment and try again. |
| 500 | `unknown_error` | Something went wrong on our side. We're on it. |
| 503 | `service_unavailable` | Something went wrong on our side. We're on it. |