Skip to main content

What it does

Returns a paginated list of video collections (playlists and mixes) on a TikTok user’s profile. Includes collection name, cover image, and video count.

Tool details

FieldValue
Tool nametiktok_get_user_collections
PlatformTikTok
REST endpointGET /v1/tiktok/users/{username}/collections
Result typeCollection tool

Parameters

ParameterTypeRequiredDescription
usernamestringYesTikTok username (with or without @ symbol)
countintegerNoNumber of collections to fetch (maximum: 30) Default: 30.
cursorstringNoPagination cursor Default: 0.
projection_presetstringNoDefaults to minimal. Allowed values: full, minimal, identity, engagement, content.
data_fieldsstring[]NoAdds top-level keys from data on top of the selected projection_preset.
item_fieldsstring[]NoAdds keys from data.orderedItems[] on top of the selected projection_preset.

Example

{
  "name": "tiktok_get_user_collections",
  "arguments": {
    "username": "khaby.lame",
    "count": 30,
    "projection_preset": "minimal",
    "data_fields": [
      "orderedItems",
      "nextCursor",
      "cursor",
      "itemCount"
    ],
    "item_fields": [
      "totalItems",
      "entityId",
      "name",
      "image",
      "id"
    ]
  }
}

Available data fields

  • @context
  • type
  • partOf
  • totalItems
  • cursor
  • nextCursor
  • next
  • itemCount
  • orderedItems

Available item fields

  • type
  • id
  • name
  • image
  • totalItems
  • entityId
  • attributedTo

Response notes

Successful calls return a JSON object with a top-level data field and, when available, metadata.creditsUsed and metadata.creditsRemaining. See response format, pagination, and credits.