Tutorial · TikTok · cURL, Python, Node.js, PHP, Go, Ruby

List the public playlists of a TikTok creator with the API

Playlists of a TikTok account. Complete code for GET /v1/tiktok/users/{user}/playlists in six languages and both official SDKs, each tested against the documented response.

Short answer. GET /v1/tiktok/users/{user}/playlists returns a public account's playlists: id, name, video_count, cover_url and url for each.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Why call it

  • Creator analytics: see how a creator groups content into series and how many videos each one holds.
  • Agencies and media kits: list a creator's recurring formats from the playlist names.
  • Creator-search tools: show a creator's series with direct links.

The request

GET https://api.handlehaul.com/v1/tiktok/users/{user}/playlists with your key in the X-Api-Key header. Playlists of a TikTok account. Playlists of a TikTok account. 1 credit a page. Docs: https://api.handlehaul.com/docs/tiktok-posts-api

Parameters for Playlists of a TikTok account
ParameterInDescription
user requiredpathTikTok handle (with or without @), numeric user id, or secUid. All digits = an id; write "@12345" for an all-digit handle. On list routes a handle we have to look up costs 1 extra credit (meta.lookup_credits); an id or secUid never does.
cursorquerynext_cursor from the previous page (opaque, sealed).
freshquerytrue skips the cache (full price).
rawquerytrue returns TikTok's raw JSON in data instead of our fields (same price).

Code in 6 languages

Each sample is a complete program: it reads the key from HANDLEHAUL_API_KEY, waits and retries when the API answers 429 (using Retry-After), stops with the error code on anything else, and follows pagination.next_cursor for up to 3 pages. The SDK versions do the retries for you.

tiktok-playlists.sh

# Playlists of a TikTok account. --retry waits out a 429 using its Retry-After header;
# --fail exits with code 22 on any other error (drop it to read the error JSON).
# Next page: add --data-urlencode "cursor=<pagination.next_cursor>" (stop when it is null).
curl -sS --fail --retry 3 "https://api.handlehaul.com/v1/tiktok/users/mila.studio/playlists" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Generated from the OpenAPI spec (2026-12-02); every sample was syntax-checked and run against a local mock serving the response below. Language guides: Python, Node.js, PHP, Go, Ruby, cURL.

Response

A list in data, with pagination.next_cursor and has_more, and meta with what the call cost. Example values; tiktokplaylist shape from the openapi schema; example values, from the API docs. Lists are cut to two rows here.

200 · application/json
{
  "data": [
    {
      "id": "7280000000000000101",
      "name": "Studio tips",
      "video_count": 24,
      "cover_url": "https://p16-sign.tiktokcdn-us.com/…/playlist/7280000000000000101.jpeg",
      "url": "https://www.tiktok.com/@mila.studio/playlist/Studio-tips-7280000000000000101"
    }
  ],
  "pagination": {
    "next_cursor": null,
    "has_more": false,
    "page_size": 1
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}

Cost, cache and limits

  • 1 credit per page. At $1.40 to $0.80 per 1,000 calls; the samples stop after 3 pages, so one run costs 3 credits at most (plus a lookup credit, below). Cache hits, failed calls and 429 answers are free; meta.credits_charged says what each call cost.
  • Lookup credit. A handle we have not looked up in the last 7 days adds 1 lookup credit (meta.lookup_credits). A sec_uid or numeric id from any result skips it, and later pages never pay it.
  • Cache. Identical calls that arrive while an answer is cached are served from it. Add fresh=true to force a live call (billed).
  • Speed. Over your plan's requests-per-second limit the API answers 429 rate_limited with Retry-After; the samples wait that long and retry.
  • Private accounts. Public data only: a private account answers 403 private_account, and that call is free.
  • Testing. A kd_test_ key returns sample data in this exact shape at no cost, so you can run the code before you spend anything.

Things to know

  • Only public playlists are listed.
  • Each playlist gives its video_count, not the videos themselves. Use /posts for the account's videos.
  • raw=true returns TikTok's own JSON in data at the same price, if you need more than these five fields.

Next steps

TikTok playlists API: questions

Can I get the videos inside a TikTok playlist?
This endpoint returns playlist details: id, name, video_count, cover and url. For the videos, page through /v1/tiktok/users/{user}/posts.
Are private TikTok playlists included?
No. Only public playlists come back, and private accounts answer private_account.

Run it on real data

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.