Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

TikTok User Profile Details

API 文件
https://api.sandbase.ai/v1/api/tiktok/app-v3/user-profile

Returns profile information for a specified TikTok user. Lookups can be performed using a numeric user ID, username, or sec_user_id.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
3 個識別碼 · 請提供其中一個
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
User sec_user_id
User unique_id, optional parameter, if sec_user_id is empty, use unique_id to get user information, unique_id is also the user's username, if used, please keep sec_user_id and user_id empty.
User uid, optional parameter, pure number, if used, please keep sec_user_id and unique_id empty.
輸出範例
回應outputs · 8.9 KB · 155 行
[
  {
    "data": {
      "extra": {
        "fatal_item_ids": [],
        "logid": "20261004192544C8764136B8D385D0E15D",
        "now": 1791141944000
      },
      "log_pb": {
        "impr_id": "20261004192544C8764136B8D385D0E15D"
      },
      "status_code": 0,
      "status_msg": "",
      "user": {
        "account_type": 0,
        "ad_virtual": false,
        "avatar_168x168": {
          "uri": "tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60",
          "url_list": [
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:168:168.webp?dr=9638&refresh_token=6c925d3c&x-expires=1791313200&x-signature=InB0Q2JOYQmei9SUI32nT7hvu5c%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:168:168.webp?dr=9638&refresh_token=5b121850&x-expires=1791313200&x-signature=%2Fcjw4IR1E9bUI5B9qHzUKi9rQQk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:168:168.jpeg?dr=9638&refresh_token=b0da4509&x-expires=1791313200&x-signature=%2B4uxKlDS%2FcT8asgL%2B19HBeMNq0A%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5"
          ],
          "url_prefix": null
        },
        "avatar_300x300": {
          "uri": "tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60",
          "url_list": [
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktok-shrink:282:282.jpeg?dr=9622&refresh_token=ba526a08&x-expires=1791162000&x-signature=6EQDjt0VQqxg4%2BfMcEKetq7WASg%3D&t=4d5b0474&ps=13740610&shp=2472a6c6&shcp=9b759fb9&idc=useast5&s=PACK_GO_API",
            "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:300:300.webp?dr=9638&refresh_token=abac024c&x-expires=1791313200&x-signature=GnTXf5%2F885mK8Rf3ijt82RND6Lw%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:300:300.webp?dr=9638&refresh_token=0eab33ae&x-expires=1791313200&x-signature=J4CEgifQ2XqXtRY5d2vTI9yI7wU%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "… 1 more items in the full response"
          ],
          "url_prefix": null
        },
        "avatar_larger": {
          "uri": "tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60",
          "url_list": [
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:1080:1080.webp?dr=9640&refresh_token=cbc5c425&x-expires=1791313200&x-signature=1cWMwqVKMJrwOmjaak2LAAM4Al8%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:1080:1080.webp?dr=9640&refresh_token=06013d8e&x-expires=1791313200&x-signature=jVKcHeokwGZyakQCdSWIjXVWNXE%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=1028a1fa&x-expires=1791313200&x-signature=l0B8YSzJyAZAg1C6%2BKdEAvQtCtk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5"
          ],
          "url_prefix": null
        },
        "avatar_medium": {
          "uri": "tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60",
          "url_list": [
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktok-shrink:282:282.jpeg?dr=9622&refresh_token=ba526a08&x-expires=1791162000&x-signature=6EQDjt0VQqxg4%2BfMcEKetq7WASg%3D&t=4d5b0474&ps=13740610&shp=2472a6c6&shcp=9b759fb9&idc=useast5&s=PACK_GO_API",
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktok-shrink:282:282.jpeg?dr=9622&refresh_token=ba526a08&x-expires=1791162000&x-signature=6EQDjt0VQqxg4%2BfMcEKetq7WASg%3D&t=4d5b0474&ps=13740610&shp=2472a6c6&shcp=9b759fb9&idc=useast5&s=PACK_GO_API",
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:720:720.webp?dr=9640&refresh_token=f8482e81&x-expires=1791313200&x-signature=yq6MTa1bbqDWs9KbZyp0qpWhP4k%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "… 2 more items in the full response"
          ],
          "url_prefix": null
        },
        "avatar_thumb": {
          "uri": "tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60",
          "url_list": [
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktok-shrink:282:282.jpeg?dr=9622&refresh_token=ba526a08&x-expires=1791162000&x-signature=6EQDjt0VQqxg4%2BfMcEKetq7WASg%3D&t=4d5b0474&ps=13740610&shp=2472a6c6&shcp=9b759fb9&idc=useast5&s=PACK_GO_API",
            "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:100:100.webp?dr=9640&refresh_token=cbdd897c&x-expires=1791313200&x-signature=8%2FyYa4Mjz1U3Gnm8ISG%2F2%2BnazRI%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc97650c9b8dbaaa38162fbe903d9c60~tplv-tiktokx-cropcenter:100:100.webp?dr=9640&refresh_token=211b4252&x-expires=1791313200&x-signature=Fc0%2BJ7GTmbewO%2BXLMsfKnqWg9rg%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast5",
            "… 1 more items in the full response"
          ],
          "url_prefix": null
        },
        "aweme_count": 0,
        "can_message_follow_status_list": [
          0,
          1,
          2,
          "… 1 more items in the full response"
        ],
        "category": "",
        "commerce_user_info": {
          "ad_revenue_rits": null
        },
        "commerce_user_level": 0,
        "custom_verify": "",
        "enterprise_verify_reason": "",
        "favoriting_count": 0,
        "follow_status": 0,
        "follower_count": 225,
        "follower_status": 0,
        "following_count": 89,
        "forward_count": 0,
        "has_open_favorite": false,
        "ins_id": "",
        "is_acquaintance": false,
        "is_block": false,
        "is_blocked": false,
        "is_effect_artist": false,
        "is_star": false,
        "live_commerce": false,
        "live_push_notification_status": 2,
        "message_chat_entry": true,
        "mplatform_followers_count": 0,
        "music_tab_info": {
          "show_artist_pick_videos": true
        },
        "nickname": "𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥   ⃤⃟⃝ 🌹",
        "original_musician": {
          "digg_count": 0,
          "music_count": 0,
          "music_used_count": 0,
          "new_release_clip_ids": null
        },
        "post_push_notification_status": 2,
        "privacy_setting": {
          "following_visibility": 2
        },
        "profile_tab_type": 15,
        "recommend_reason_relation": "",
        "room_id": 0,
        "sec_uid": "MS4wLjABAAAAvVhoo3xoPqx2BhlxArecsPyqN86uGz1sm5Q4bwTwOZ1MUU1PgK6Zemi8PJtHpeh5",
        "secret": 0,
        "share_info": {
          "now_invitation_card_image_urls": null,
          "share_desc": "Check out 𝐉𝐀𝐐𝐔𝐄 𝐌𝐀𝐓𝐄🔥   ⃤⃟⃝ 🌹! #TikTok",
          "share_title": "Join TikTok and see what I’ve been up to!",
          "share_url": "https://www.tiktok.com/@srlechuza2.0?_r=1&_d=f13emdd9hkm431&sec_uid=MS4wLjABAAAAvVhoo3xoPqx2BhlxArecsPyqN86uGz1sm5Q4bwTwOZ1MUU1PgK6Zemi8PJtHpeh5&share_author_id=7406095610422641710&sharer_language=en&source=h5_m&u_code=f13eml06b2dbg0"
        },
        "short_id": "0",
        "show_favorite_list": false,
        "show_messaging_entrance_on_profile": true,
        "signature": "🌸",
        "signature_language": "un",
        "story_status": 0,
        "supporting_ngo": {},
        "tab_settings": {
          "private_tab": {
            "private_tab_style": 1,
            "show_private_tab": false
          },
          "repost_tab": {
            "repost_tab_all_visible": true,
            "show_repost_tab_other": 1
          }
        },
        "total_favorited": 0,
        "twitter_id": "",
        "twitter_name": "",
        "uid": "7406095610422641710",
        "unique_id": "srlechuza2.0",
        "verification_type": 0,
        "visible_videos_count": 0,
        "watch_status": false,
        "with_commerce_enterprise_tab_entry": false,
        "with_commerce_entry": false,
        "with_new_goods": false,
        "youtube_channel_id": "",
        "youtube_channel_title": ""
      },
      "version": "v2"
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Provide one string identifier: unique_id for a username, user_id for a numeric user ID, or sec_user_id for an existing secure user ID. Send only the chosen identifier and leave the other two unset. A numeric user ID must be sent as a string. These are alternative ways to identify one account; do not treat three optional schema fields as permission to make a zero-identifier lookup.

For a known username, start with the Python guide to requesting one public TikTok creator profile. It uses unique_id for the single-account request and preserves the separate search-first workflow for creator research.

TikTok User Profile Details API

Returns the public profile of one TikTok account, including nickname, follower and following counts, video count, verification label and avatar image URLs. You pass one identifier: sec_user_id, unique_id (the username) or user_id.

Use cases

  • Track the follower_count and aweme_count of a creator or brand account over time.
  • Check whether an account is verified and which category label it carries before a partnership.
  • Download avatar images and the bio link of an account for a profile card or a CRM record.
  • Confirm that a sec_user_id belongs to the expected account by checking its nickname.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/user-profile" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
sec_user_idstringNoUser sec_user_id
unique_idstringNoUser unique_id, optional parameter, if sec_user_id is empty, use unique_id to get user information, unique_id is also the user's username, if used, please keep sec_user_id and user_id empty.
user_idstringNoUser uid, optional parameter, pure number, if used, please keep sec_user_id and unique_id empty.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "extra": {
    "fatal_item_ids": [],
    "logid": "2026110307440258124FAE33158303128D",
    "now": 1793691843000
  },
  "log_pb": {
    "impr_id": "2026110307440258124FAE33158303128D"
  },
  "status_code": 0,
  "status_msg": "",
  "user": {
    "account_labels": [
      {
        "content": "Artist",
        "label_type": 3
      }
    ],
    "account_type": 3,
    "ad_virtual": false,
    "avatar_168x168": {
      "uri": "tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a",
      "url_list": [
        "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…"
      ],
      "url_prefix": null
    },
    "avatar_300x300": {
      "uri": "tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a",
      "url_list": [
        "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…"
      ],
      "url_prefix": null
    },
    "avatar_larger": {
      "uri": "tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a",
      "url_list": [
        "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…"
      ],
      "url_prefix": null
    },
    "avatar_medium": {
      "uri": "tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a",
      "url_list": [
        "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…"
      ],
      "url_prefix": null
    },
    "avatar_thumb": {
      "uri": "tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a",
      "url_list": [
        "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691…"
      ],
      "url_prefix": null
    },
    "aweme_count": 1601,
    "bio_secure_url": "https://www.tiktoklinksafety.us/link/v2?aid=1233&lang=en&scene=bio_url&target=ti…",
    "bio_url": "tiktok.com/discovermore",
    "biz_account_info": {
      "added_contact_and_link_list": null,
      "android_download_app_link": "",
      "coupon_list": null,
      "ios_download_app_link": "",
      "leads_gen": {
        "action_name": "",
        "business_data": "",
        "has_leads_gen": false,
        "page_id": 0,
        "schema_url": ""
      },
      "permission_list": [
        "017002"
      ],
      "rba_user_info": {
        "company_name": "TikTok"
      }
    }
  },
  "version": "v2"
}

Response fields

FieldMeaning
user.nicknameDisplay name of the account.
user.follower_count / user.following_countNumber of followers the account has and number of accounts it follows.
user.aweme_countNumber of videos posted by the account.
user.enterprise_verify_reasonVerification text shown on the account, for example Verified account.
user.account_labels[].contentLabel shown on the account, for example Artist.
user.categoryCategory of the account, for example Others.
user.bio_urlLink shown in the profile bio. user.bio_secure_url holds the same link wrapped in a TikTok link safety redirect.
user.avatar_larger.url_list[] / user.avatar_medium.url_list[] / user.avatar_thumb.url_list[]Avatar image URLs in large, medium and thumbnail sizes. Each list has several URLs for the same image.
user.original_musician.music_countNumber of original sounds credited to the account.
user.privacy_setting.following_visibilitySetting that controls who can see the account's following list. The response shows only the value 1.

Notes

  • Send only one of sec_user_id, unique_id or user_id. Leave the other two empty.
  • unique_id is the username, for example tiktok. If you only have a username and need the IDs, call TikTok User ID by Username.
  • To list the videos of the account, call TikTok User Videos (App V3) with the same sec_user_id.
  • status_code is 0 when the lookup works. The profile data sits under user.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
TikTok每次呼叫 $0.001JSON
TikTok每次呼叫 $0.001JSON
TikTok每次呼叫 $0.01JSON
TikTok每次呼叫 $0.001JSON
TikTok每次呼叫 $0.001JSON
TikTok每次呼叫 $0.001JSON

指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

問題

常見問題

我要如何使用 TikTok User Profile Details API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tiktok/app-v3/user-profile。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

TikTok User Profile Details API 的費用是多少?

每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

TikTok User Profile Details API 接受哪些參數?

請提供一個字串識別碼:username 請用 unique_id、數字型 user ID 請用 user_id,或既有的安全 user ID 請用 sec_user_id。請只傳所選的識別碼,另外兩個保持未設定。數字型 user ID 必須以字串傳送。這些是辨識同一帳號的替代方式;不要把三個可選的 schema 欄位當成可以不帶任何識別碼就查詢。

TikTok User Profile Details API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 TikTok 開發者帳號或 API 金鑰嗎?

不需要。TikTok User Profile Details 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 TikTok API 存取權。

follower_count 會包含粉絲列表或歷史成長資料嗎?

目前的 App V3 README 將 user.follower_count 描述為帳號個人檔案上的數量。它不是粉絲列表、受眾人口統計報告,或歷史成長序列。列出的欄位與截短範例僅是參考資料,不能保證每個回應都包含每個值。請將缺少、null 或空的數量維持為未知,不要轉成 0。這個單一帳號個人檔案請求沒有分頁參數。