# TikTok Playlist videos API (tiktok.playlist_videos)

- Canonical page: [https://everyinfra.com/en/tiktok-api/playlist_videos](https://everyinfra.com/en/tiktok-api/playlist_videos?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "playlist_videos", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 30 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=tiktok&action=playlist_videos

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| playlist_id | not declared | yes | not declared | The numeric playlist ID, the `playlist_id` of a `user_playlists` row, or a playlist link such as https://www.tiktok.com/@<user>/playlist/<name>-<ID>. A value in the wrong form is rejected (422) before you are charged; a playlist that does not exist returns an empty result and is not charged. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 30 videos and counts as one call; videos that can no longer be viewed are left out, so a short page is not the end. Tokens last 24 hours, and only a page without `next_page_token` is the last one. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| author_name | Author's display name. |
| author_username | Author's username (@handle), usually usable in URLs. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| share_count | Shares. null means not disclosed, not 0. |
| view_count | Views or plays. null means not disclosed, not 0. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| collect_count | Saves or favorites. null means not disclosed, not 0. |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| duration_sec | Duration in seconds, the same value as duration_seconds (both names are returned): the video's length on video rows, the sound's length on music_search, music_chart and music_detail. In top_ads, the length of the ad video, with decimals. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| cover_image_url | Video cover image link (signed, expires). |
| language | Content language code (for example zh, en) as judged by the platform; it can be wrong. |
| country | Country or region: a full name or an ISO code depending on the platform, not normalized. |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| music | Background music: id, title (track name), author, is_original (whether it is an original sound), play_url (audio URL, expires), cover_url (usually absent in search results). |
| is_ad | Whether the video is an ad. Usually absent in search results; may be absent in user_videos results. |
| is_pinned | Whether it is pinned on the author's profile. |
| is_sponsored | Whether it contains sponsored content. Usually absent in search and user_videos results. |
| is_slideshow | Whether it is a photo carousel (not a video). |
| has_shop_product | Whether the video has a TikTok Shop product attached; if the key is absent, it cannot be determined. Usually absent in search and user_videos results. |
| author_id | Author's unique ID on the platform. |
| author_url | Link to the author's profile on the platform. |
| author_avatar_url | Author's avatar image link (on most platforms signed and expires). |
| author_bio | The author's profile bio; not returned on some requests and may be absent in user_videos results. |
| author_is_verified | Whether the author has a verified badge; not returned on some requests. |
| author_is_private | Whether the author's account is private. |
| author_is_seller | Whether the author is a TikTok Shop seller. Usually absent in user_videos results. |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_following_count | How many accounts the author follows; not returned on some requests. |
| author_like_count | Total likes the author's profile has received; not returned on some requests. |
| author_video_count | Total number of videos the author has posted; not returned on some requests. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| author_sec_uid | The account's secUid: in live_room, the streamer's account, starting with MS4w; in music_detail, the music author's account, present only for original sounds; in photos, playlist_videos, user_reposts and user_stories, the post author's account; in user_playlists, the playlist owner's account. |
| media_type | Post type: always `photo` in photos; `video` or `photo` in playlist_videos, user_reposts and user_stories. |
| mentions | Usernames of the accounts mentioned with @ in the post (photos, playlist_videos, user_reposts, user_stories). |
| hashtags_detail | Hashtags in the post with their IDs (playlist_videos, user_reposts, user_stories): [{id, name}]. |
| mentions_detail | Accounts mentioned with @ in the post, with their IDs (playlist_videos, user_reposts, user_stories): [{id, username, sec_uid}]. |
| images | Every image of a photo post (photos, and photo stories in user_stories), in the post's order: [{url, width, height}], with `width` and `height` in pixels. Image links expire, so download the ones you keep soon. |
| image_urls | Link to each image in a photo (carousel) post (video_download, photos, playlist_videos, user_reposts, user_stories; in photos and user_stories the same images as `images`, in the post's order); links to all of a product's main images (shop_search, shop_category_products, shop_products); on shop_search the first is the same as cover_url. |
| image_count | Number of images in the photo post (photos, and photo posts in playlist_videos, user_reposts and user_stories). |
| expires_at | Expiry time of the download URL (video_download, ISO; about 6 hours after the call). Call again after it expires. In user_stories, when the story disappears (ISO 8601, UTC, 24 hours after it was posted). |
| video_play_url | The video link TikTok's web player uses (playlist_videos, user_reposts, user_stories); signed and expires, absent for photo posts. For a downloadable file without the watermark, use video_download. |
| video_size_bytes | Size of the video_play_url file in bytes (playlist_videos, user_reposts, user_stories). |
| video_bitrates | The quality levels TikTok's web player offers (playlist_videos, user_reposts, user_stories): [{url, quality, codec, bitrate, width, height, size}], with `bitrate` in bits per second and `size` in bytes; links are signed and expire. |
| definition | The video's quality level, such as 720p (playlist_videos, user_reposts, user_stories). |
| width | Width of the watermark-free video file in pixels (video_download); absent for photo posts. In playlist_videos, user_reposts and user_stories, the width of the video frame. In top_ads, the width of the ad video's frame. |
| height | Height of the watermark-free video file in pixels (video_download); absent for photo posts. In playlist_videos, user_reposts and user_stories, the height of the video frame. In top_ads, the height of the ad video's frame. |
| dynamic_cover_url | Link to the video's animated cover (playlist_videos, user_reposts, user_stories); signed and expires. |
| origin_cover_url | Link to the video's original cover image (playlist_videos, user_reposts, user_stories); signed and expires. |
| music_duration_sec | Length of the background music in seconds (photos, playlist_videos, user_reposts, user_stories). |
| caption_languages | Languages of the captions TikTok generated for the video, such as eng-US (playlist_videos, user_reposts, user_stories). |
| poi | The place tagged on the post (playlist_videos, user_reposts, user_stories): id, name, address, city, province, country and category, each only when it has a value. |
| category_type | The post's category type, a numeric code from TikTok (photos, playlist_videos, user_reposts, user_stories). |
| aigc_label | TikTok's label for AI-generated content, as written (playlist_videos, user_reposts, user_stories); absent when there is none. |
| is_aigc | Whether the post is AI-generated content (photos, playlist_videos, user_reposts, user_stories). |
| is_private | Whether the account is private; in playlist_videos, user_reposts and user_stories, whether the post itself is set to private. |
| comments_disabled | Whether comments are turned off on the post (photos, playlist_videos, user_reposts, user_stories). |
| duet_enabled | Whether Duet is allowed on the post (photos, playlist_videos, user_reposts, user_stories). |
| stitch_enabled | Whether Stitch is allowed on the post (photos, playlist_videos, user_reposts, user_stories). |
| share_enabled | Whether the post can be shared (photos, playlist_videos, user_reposts, user_stories). |
| view_count_estimated | Whether `view_count` is an approximate figure (photos, playlist_videos, user_reposts, user_stories): from 10,000 up, TikTok's page shows a rounded count (35.2K is stored as 35200) and this is true. |
| like_count_estimated | Whether `like_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| comment_count_estimated | Whether `comment_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| share_count_estimated | Whether `share_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_follower_count_estimated | Whether `author_follower_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_following_count_estimated | Whether `author_following_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_like_count_estimated | Whether `author_like_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_video_count_estimated | Whether `author_video_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "tiktok",
  "action": "playlist_videos",
  "params": {
    "playlist_id": "7665503877638966030"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "tiktok",
        "action": "playlist_videos",
        "params": {
            "playlist_id": "7665503877638966030",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "playlist_videos",
  "results": [
    {
      "id": …,
      "url": …,
      "text": …,
      "author_name": …,
      "author_username": …,
      "like_count": …,
      "comment_count": …,
      "share_count": …,
      "view_count": …,
      "posted_at": …,
      "collect_count": …,
      "repost_count": …,
      "duration_sec": …,
      "duration_seconds": …,
      "cover_image_url": …,
      "language": …,
      "country": …,
      "hashtags": …,
      "music": …,
      "is_ad": …,
      "is_pinned": …,
      "is_sponsored": …,
      "is_slideshow": …,
      "has_shop_product": …,
      "author_id": …,
      "author_url": …,
      "author_avatar_url": …,
      "author_bio": …,
      "author_is_verified": …,
      "author_is_private": …,
      "author_is_seller": …,
      "author_follower_count": …,
      "author_following_count": …,
      "author_like_count": …,
      "author_video_count": …,
      "platform": …,
      "author_sec_uid": …,
      "media_type": …,
      "mentions": …,
      "hashtags_detail": …,
      "mentions_detail": …,
      "images": …,
      "image_urls": …,
      "image_count": …,
      "expires_at": …,
      "video_play_url": …,
      "video_size_bytes": …,
      "video_bitrates": …,
      "definition": …,
      "width": …,
      "height": …,
      "dynamic_cover_url": …,
      "origin_cover_url": …,
      "music_duration_sec": …,
      "caption_languages": …,
      "poi": …,
      "category_type": …,
      "aigc_label": …,
      "is_aigc": …,
      "is_private": …,
      "comments_disabled": …,
      "duet_enabled": …,
      "stitch_enabled": …,
      "share_enabled": …,
      "view_count_estimated": …,
      "like_count_estimated": …,
      "comment_count_estimated": …,
      "share_count_estimated": …,
      "author_follower_count_estimated": …,
      "author_following_count_estimated": …,
      "author_like_count_estimated": …,
      "author_video_count_estimated": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
