# TikTok 作者转发的作品 API (tiktok.user_reposts)

- Canonical page: [https://everyinfra.com/tiktok-api/user_reposts](https://everyinfra.com/tiktok-api/user_reposts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "user_reposts", "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=user_reposts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | TikTok 账号：@短名（如 nasa，可带 @）、主页链接 https://www.tiktok.com/@<短名>，或账号的 sec_uid。返回这个账号主页「转发」栏里的作品。号不存在时返回 200 和空结果，empty_reason 为 account_not_found，不扣费。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一次响应里的 next_page_token 原样传回，拿下一页；不传从第一页开始。令牌 24 小时有效，每页算一次调用。每页最多 30 条，看不了的作品不给，所以短页不代表到底；没有 next_page_token 才是最后一页。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| author_name | 评价人名字（shop_product_reviews），平台已打码，如 n**h；photos 里是作品作者的昵称。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| collect_count | 收藏数。null 表示不公开，不等于 0。 |
| repost_count | 转发数。 |
| duration_sec | 时长，单位秒，与 duration_seconds 同值（两个名字都返回）：视频行是视频时长，music_search、music_chart、music_detail 是声音的时长。top_ads 里是广告视频的时长，带小数。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| cover_image_url | 视频封面图链接（带签名，会过期）。 |
| language | 内容语言代码（如 zh、en），由平台判定，可能不准。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| hashtags | 正文里的话题标签数组，按出现顺序；没有时不出现这个字段。 |
| music | 背景音乐：id、title（曲名）、author、is_original（是否原声）、play_url（音频地址，会过期）、cover_url（search 的结果通常没有）。 |
| is_ad | 是否广告视频；search 的结果通常没有，user_videos 的结果可能没有。 |
| is_pinned | 是否在作者主页置顶。 |
| is_sponsored | 是否含赞助内容；search、user_videos 的结果通常没有。 |
| is_slideshow | 是否图文轮播（不是视频）。 |
| has_shop_product | 视频是否挂了 TikTok Shop 商品；没有这个键表示无法判定，search、user_videos 的结果通常没有。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_url | 作者在原平台的主页链接。 |
| author_avatar_url | 作者头像图片链接（多数平台带签名、会过期）。 |
| author_bio | 作者主页简介；部分请求不返回，user_videos 的结果可能没有。 |
| author_is_verified | 作者是否有认证标；部分请求不返回。 |
| author_is_private | 作者是否私密账号。 |
| author_is_seller | 作者是否 TikTok Shop 卖家；user_videos 的结果通常没有。 |
| author_follower_count | 作者粉丝数。null 表示不公开。 |
| author_following_count | 作者关注的账号数；部分请求不返回。 |
| author_like_count | 作者主页获赞总数；部分请求不返回。 |
| author_video_count | 作者发布的视频总数；部分请求不返回。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| author_sec_uid | 账号的 secUid：在 live_room 里是主播账号的 secUid，以 MS4w 开头；在 photos、playlist_videos、user_reposts、user_stories 里是作品作者账号的 secUid，在 user_playlists 里是合集作者账号的 secUid；在 music_detail 里是音乐作者账号的 secUid，原声才有。 |
| media_type | 作品类型：photos 里恒为 photo；playlist_videos、user_reposts、user_stories 里是 video 或 photo。 |
| mentions | 作品里 @ 提到的账号的用户名（photos、playlist_videos、user_reposts、user_stories）。 |
| hashtags_detail | 作品里的话题，带话题编号（playlist_videos、user_reposts、user_stories）：[{id, name}]。 |
| mentions_detail | 作品里 @ 提到的账号，带编号（playlist_videos、user_reposts、user_stories）：[{id, username, sec_uid}]。 |
| images | 图文作品里的每张图（photos、user_stories 的图文快拍），按作品里的顺序：[{url, width, height}]，width、height 是像素；图片地址有过期时间，要存的话尽快下载。 |
| image_urls | 图文（轮播）作品的每张图片地址（video_download、photos、playlist_videos、user_reposts、user_stories；photos、user_stories 里和 images 是同一批图，按作品里的顺序）；商品的全部主图地址（shop_search、shop_category_products、shop_products），shop_search 里第一张同 cover_url。 |
| image_count | 这条图文作品的图片张数（photos，以及 playlist_videos、user_reposts、user_stories 里的图文作品）。 |
| expires_at | 下载地址的失效时间（video_download，ISO，约在调用后 6 小时）；过了要重新调用。user_stories 里是这条快拍下架的时间（ISO 8601，UTC，发出后 24 小时）。 |
| video_play_url | TikTok 网页播放器用的视频地址（playlist_videos、user_reposts、user_stories），带签名、会过期；图文作品没有。要可以直接下载的无水印文件用 video_download。 |
| video_size_bytes | video_play_url 那个文件的大小，字节（playlist_videos、user_reposts、user_stories）。 |
| video_bitrates | TikTok 网页给的各档清晰度（playlist_videos、user_reposts、user_stories）：[{url, quality, codec, bitrate, width, height, size}]，bitrate 是每秒比特数，size 是字节；地址带签名、会过期。 |
| definition | 视频的清晰度档位，如 720p（playlist_videos、user_reposts、user_stories）。 |
| width | 无水印视频文件的宽度，单位像素（video_download）；图文作品没有。playlist_videos、user_reposts、user_stories 里是视频画面的宽度。top_ads 里是广告视频画面的宽度。 |
| height | 无水印视频文件的高度，单位像素（video_download）；图文作品没有。playlist_videos、user_reposts、user_stories 里是视频画面的高度。top_ads 里是广告视频画面的高度。 |
| dynamic_cover_url | 视频的动态封面图地址（playlist_videos、user_reposts、user_stories），带签名、会过期。 |
| origin_cover_url | 视频的原始封面图地址（playlist_videos、user_reposts、user_stories），带签名、会过期。 |
| music_duration_sec | 配乐的时长，单位秒（photos、playlist_videos、user_reposts、user_stories）。 |
| caption_languages | TikTok 给这条视频生成的字幕有哪几种语言（playlist_videos、user_reposts、user_stories），如 eng-US。 |
| poi | 作品标的地点（playlist_videos、user_reposts、user_stories）：id、name、address、city、province、country、category，有值才出现。 |
| category_type | 作品的分类类型（photos、playlist_videos、user_reposts、user_stories），TikTok 给的数字代码。 |
| aigc_label | TikTok 给 AI 生成内容打的标签原文（playlist_videos、user_reposts、user_stories）；没有时没有这个字段。 |
| is_aigc | 作品是否为 AI 生成内容（photos、playlist_videos、user_reposts、user_stories）。 |
| is_private | 是否私密账号；playlist_videos、user_reposts、user_stories 里是这条作品是否设成了私密。 |
| comments_disabled | 作品是否关闭了评论（photos、playlist_videos、user_reposts、user_stories）。 |
| duet_enabled | 作品是否允许合拍（photos、playlist_videos、user_reposts、user_stories）。 |
| stitch_enabled | 作品是否允许拼接（photos、playlist_videos、user_reposts、user_stories）。 |
| share_enabled | 作品是否允许分享（photos、playlist_videos、user_reposts、user_stories）。 |
| view_count_estimated | 播放数是不是约数（photos、playlist_videos、user_reposts、user_stories）：计数 1 万以上时是 TikTok 页面上那种约数（35.2K 记为 35200），此时为 true。 |
| like_count_estimated | 点赞数是不是约数（photos），规则同 view_count_estimated。 |
| comment_count_estimated | 评论数是不是约数（photos），规则同 view_count_estimated。 |
| share_count_estimated | 分享数是不是约数（photos），规则同 view_count_estimated。 |
| author_follower_count_estimated | 作者粉丝数是不是约数（photos），规则同 view_count_estimated。 |
| author_following_count_estimated | 作者关注数是不是约数（photos），规则同 view_count_estimated。 |
| author_like_count_estimated | 作者获赞总数是不是约数（photos），规则同 view_count_estimated。 |
| author_video_count_estimated | 作者视频总数是不是约数（photos），规则同 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": "user_reposts",
  "params": {
    "username": "nasa"
  }
}'
```

```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": "user_reposts",
        "params": {
            "username": "nasa",
        },
    },
    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": "user_reposts",
  "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
