TikTok data API

TikTok Playlist API

Send a TikTok username and get the creator's public playlists: the name, cover and number of videos of each one. Then send a playlist id and get its videos as JSON, in the creator's order, with plays, likes, comments, shares, the sound and the available qualities.

Request

GET /v1/tiktok/profiles/{username}/playlists · 1 credit per successful call

cURL
curl "https://api.igramapi.com/v1/tiktok/profiles/example_creator/playlists" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK · application/json
{
  "username": "example_creator",
  "user_id": "6812345678901234567",
  "count": 1,
  "playlists": [
    {
      "id": "7401234500000009999",
      "name": "Street food tour",
      "video_count": 6,
      "cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/playlist-cover.jpeg",
      "creator": {
        "user_id": "6812345678901234567",
        "username": "example_creator",
        "nickname": "Example Creator",
        "avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg"
      }
    }
  ],
  "page": {
    "has_next_page": false,
    "end_cursor": null
  },
  "cached": false
}

All values above are made-up examples. Media links are temporary TikTok CDN addresses.

Parameters

NameInDescription
usernamerequired path TikTok username. A leading @ or a profile URL is accepted.
cursor query page.end_cursor from the previous response.
limit query Playlists per page, 1 to 30. Default 10.
playlist_id path Second call: GET /v1/tiktok/playlists/{playlist_id} returns the playlist and its videos (limit 1 to 30, default 20, same cursor). 1 credit a page.

Response fields

FieldTypeDescription
username / user_idstringThe creator's current username and numeric id.
countintegerNumber of playlists on this page.
playlists[].idstringPlaylist id. Pass it to GET /v1/tiktok/playlists/{playlist_id}.
playlists[].name / video_countstring / integer | nullName and number of videos.
playlists[].coverstring | nullCover image (temporary CDN link).
playlists[].creatorobject | nulluser_id, username, nickname, avatar.
videos[]object[]Playlist endpoint only: the videos, with the same fields as the TikTok User Videos API.
page.has_next_page / end_cursorboolean / string | nullPass end_cursor as cursor for the next page.
cachedbooleanTrue when served from the short-lived cache.

Two calls, whole series

The first call lists a creator's playlists. The second takes a playlist id and returns its videos, page by page.

Full statistics per video

Playlist videos have the same fields as the TikTok User Videos API: plays, likes, comments, shares, saves, the sound, hashtags and formats.

Empty is a normal answer

A creator without public playlists returns count: 0 and an empty list. It is a finished lookup and costs 1 credit.

1 credit per page

Up to 30 playlists or 30 videos for 1 credit. Pages are kept for up to 30 minutes, so repeated calls are fast.

Getting the videos of a playlist

Call GET /v1/tiktok/playlists/{playlist_id} with an id from the first response, or with the number at the end of a playlist link copied from TikTok (tiktok.com/@creator/playlist/Name-7401234500000009999). The response has the playlist's id, name, video_count, cover and creator, a videos list in the creator's order and a page object.

Each video has the same fields as the TikTok User Videos API. Send a video's id to the TikTok Downloader API to get the file without the watermark. An unknown playlist id returns HTTP 404 with the error code playlist_not_found.

Paging

Both endpoints use cursor pagination. When page.has_next_page is true, send the same request with cursor set to page.end_cursor; every page costs 1 credit. Stop when has_next_page is false. The pagination guide has loop examples.

Frequently asked questions

What is a TikTok playlist?

A list of videos that a creator groups on their profile, such as the parts of a series. Not every account can make playlists, and many creators have none.

What if the creator has no playlists?

You get count: 0 and an empty playlists list. The lookup is complete, so it costs 1 credit.

Can I use a playlist link instead of an id?

Take the long number at the end of the link: that is the playlist id. Send it to GET /v1/tiktok/playlists/{playlist_id}.

Can I download the videos of a playlist?

Yes. Send each video's id to the TikTok Downloader API and you get a stable link to the file without the TikTok watermark.

Is it on the Free plan?

Yes. Both playlist endpoints work on every plan, including Free, and cost 1 credit per page.

Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.

Try the TikTok Playlist API free

Create a key and make your first request in minutes. 100 free credits every month.