---
title: "TikTok Trending Feed API"
method: GET
path: "/v1/tiktok/trending-feed"
tags: ["TikTok"]
---

# TikTok Trending Feed API

`GET /v1/tiktok/trending-feed`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/tiktok/trending-feed`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

For You by default; pass orderBy/period/page for Creative Center popular videos (like/hot/comment/repost) with totalCount.

Default: TikTok For You / recommend feed with rank, publishedAt, caption (null when empty), mediaType, durationSeconds, thumbnailUrl, author{}, and engagement{}. mediaType is photo only when the canonical url contains /photo/ (or durationSeconds is null and the payload is an image post) — never because videoUrl is omitted. Session-cookie-bound web URLs (tk=tt_chain_token, or the same check hidden in a base64 policy= param) 403 for callers and are never shipped — when only those exist, videoUrl is omitted and you open the post via url; that row is still a video. author.followers is read from the feed author card when present, then hydrated from /api/user/detail for unique handles still null (8s budget). Photo rows ship images[] + imageCount (numbered-dict slides and bitrate_images included; item/detail when the feed shipped one image). videoUrlExpiresAt / thumbnailUrlExpiresAt are the split CDN windows (~36h on play URLs — the shortest in the catalogue). Envelope matches instagram/trending-reels: platform, country, countryCode, cached, source (for_you | creative_center | cache), totalReturned, requested, hasMore, nextCursor (always null — For You has no stable cursor), truncatedReason (single_page_only when the For You page filled; chart-page on a filled Creative Center page), fetchedAt, timings{path,fetchMs,hydrateMs,totalMs}. hasMore is true with nextCursor null only when truncatedReason names the cap — same rule as truth-social/user-posts. engagement always keys views/likes/comments/shares/saves/downloads plus *IsApproximate on each. Pass orderBy (hot|like|comment|repost — unknown values are 400; vv/views are aliases of hot and the response echoes hot), period (7|30|120), page, or countryCode to switch to the TikTok Creative Center popular-videos chart. A chart miss falls through to For You posts inside the period window, re-sorted by the requested metric (note says so). Hard 110s deadline. A wall with a 6h last-good page is labelled stale 200 at 0 credits; a miss with no snapshot is 502 UPSTREAM_UNAVAILABLE at 0 credits — never a billed 200 we cannot deliver. country / countryCode is the chart market in Creative Center mode; on For You it is a region-availability hint. Flat 2 credits per call.

Docs: https://captapi.com/apis/tiktok-trending-feed

## Query parameters

- `country` string
- `countryCode` string
- `limit` integer
- `orderBy` string
- `period` integer
- `page` integer
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `country` string: Country for the request context. On popular-creators top-level: ISO feed market you queried (e.g. US) — not each creator's home country (see region).
    - `countryCode` string: ISO-3166 alpha-2 (same as country on this endpoint).
    - `cached` boolean: true on a cache hit when cache=true. Default fetch is fresh.
    - `totalReturned` integer: Number of items returned in this response.
    - `requested` integer: The limit you asked for.
    - `hasMore` boolean: True when this page filled the requested limit. nextCursor stays null on For You — then truncatedReason is single_page_only. Never true without a cursor unless that reason (or chart-page) is set.
    - `nextCursor` unknown
    - `truncatedReason` unknown
    - `fetchedAt` string: When this request completed (ISO-8601). There is no scrapedAt / createTime twin.
    - `results` object[]
      - `url` string: Canonical URL of the item.
      - `id` string: Id of this results item.
      - `coverUrl` string: Cover image URL.
      - `author` string: Author object {id, secUid, username, displayName, url, followers, verified, profileImage}. Not a handle string — the pre-TK-C author/authorName pair is gone.
      - `authorName` string: Name of the author.
      - `views` integer: View count when the platform exposes one.
      - `likes` integer: Like count (number).
      - `comments` integer: Comment count.
      - `shares` integer: Share count. On analytics endpoints: null when the platform has no public share metric (stable schema). On single-platform endpoints the key is omitted instead.
      - `rank` integer: Rank position in the list.
      - `caption` string: Always keyed. Null when the post has no caption — not omitted.
      - `platform` string: Platform identifier for this response (matches the endpoint's platform).
      - `createTime` integer: When the account was created (ISO 8601).
      - `publishedAt` string: Publish date (ISO 8601) when the platform exposes an absolute timestamp.
      - `mediaType` string: "video" | "photo". Photo only when url contains /photo/ (or durationSeconds is null on an image post). Not inferred from videoUrl — session-bound play URLs are omitted on videos.
      - `thumbnailUrl` string: Thumbnail image URL.
      - `isAd` boolean: Whether the item is a paid promotion.
    - `source` unknown
    - `period` unknown
    - `page` unknown
    - `orderBy` unknown
    - `note` unknown

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
