此端点可以帮助您
响应以所选 API 格式提供现成的个人资料摘要,包含关键计数和指标。
何时使用
将“按用户 UID 获取视频指标”用于需要简明指标快照的仪表板、评分和定期报告。
先查看结果和常见工作流,然后再了解参数和可运行的请求示例。
响应以所选 API 格式提供现成的个人资料摘要,包含关键计数和指标。
将“按用户 UID 获取视频指标”用于需要简明指标快照的仪表板、评分和定期报告。
无需加载和处理整个集合即可展示 TikTok 的核心指标。
定期保存快照,并比较指标随时间的变化。
将汇总指标作为内部排名和规则的输入。
两个版本完成相同的任务,接受相同的参数。使用切换按钮比较响应结构,并选择您的客户端所需的版本。
在本页面切换版本,即可在同一文档 URL 下比较响应结构。
V1 和 V2 的身份验证、必填参数和请求结构均相同。实际上,您只需在构建端点路径和解析响应时选择版本。
主要区别在于响应结构。新集成请使用 V2;仅在需要兼容现有客户端契约时保留 V1。
两个版本使用相同的 API 密钥请求头和相同的查询参数。本文档先展示共享的参数集合,然后展示各版本特定的端点路径和代码片段。
| 参数 | 必填 | 类型 | 示例 | 说明 |
|---|---|---|---|---|
user_uid |
是 | str |
MS4wLjABAAAAexampleSecUid |
TikTok secUid returned by the profile endpoint. The numeric user_id field is not accepted. Example: MS4wLjABAAAAexampleSecUid. |
复制确切的端点路径、示例 URL 和代码片段时请选择版本。上方的参数列表保持不变。
GET /api/v2/tiktok.com/profile/videos-metrics-by-user-uidcurl --request GET \
--url "https://www.scrapestorm.net/api/v2/tiktok.com/profile/videos-metrics-by-user-uid" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'user_uid=MS4wLjABAAAAexampleSecUid'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v2/tiktok.com/profile/videos-metrics-by-user-uid"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"user_uid": "MS4wLjABAAAAexampleSecUid",
}
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v2/tiktok.com/profile/videos-metrics-by-user-uid";
const params = new URLSearchParams({
user_uid: "MS4wLjABAAAAexampleSecUid",
});
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
user_uid: "MS4wLjABAAAAexampleSecUid",
};
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"user_uid" => "MS4wLjABAAAAexampleSecUid",
];
try {
$response = $client->request("GET", "/api/v2/tiktok.com/profile/videos-metrics-by-user-uid", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v2/tiktok.com/profile/videos-metrics-by-user-uid"
params := url.Values{}
params.Set("user_uid", "MS4wLjABAAAAexampleSecUid")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
预览保留了关键字段和集合中的前几项,便于您快速浏览响应结构。切换版本会改变 JSON 格式。
此简明 JSON 示例来自 V2 最近一次成功的验证运行。
{
"success": true,
"status": "ok",
"search_context": {
"user_uid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
},
"data": {
"analytics": {
"all_posts": {
"analyzed_posts_count": 16,
"last_post_date": "2026-08-14T15:29:26+00:00",
"total_engagement": 464358,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 30199.46875,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 13809.5,
"max_engagement_per_post": 142795,
"avg_caption_length": 139,
"avg_posts_per_week": 3,
"avg_posts_per_month": 15,
"posts_count_last_7_days": 2,
"posts_count_last_30_days": 16,
"total_likes": 377596,
"total_comments": 32433,
"total_shares": 13565,
"total_collects": 40764,
"total_plays": 85610700,
"avg_likes_per_post": 23600,
"avg_comments_per_post": 2027,
"avg_shares_per_post": 848,
"avg_collects_per_post": 2548,
"avg_plays_per_post": 5350669,
"_more_fields": "13 more fields"
},
"sponsored_posts": {
"analyzed_posts_count": 4,
"last_post_date": "2026-07-24T15:56:09+00:00",
"total_engagement": 276004,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 69627.75,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 53880.0,
"max_engagement_per_post": 142795,
"avg_caption_length": 164,
"avg_posts_per_week": 7,
"avg_posts_per_month": 30,
"posts_count_last_7_days": 0,
"posts_count_last_30_days": 4,
"total_likes": 240900,
"total_comments": 10018,
"total_shares": 5032,
"total_collects": 20054,
"total_plays": 80872700,
"avg_likes_per_post": 60225,
"avg_comments_per_post": 2504,
"avg_shares_per_post": 1258,
"avg_collects_per_post": 5014,
"avg_plays_per_post": 20218175,
"_more_fields": "13 more fields"
},
"organic_posts": {
"analyzed_posts_count": 12,
"last_post_date": "2026-08-14T15:29:26+00:00",
"total_engagement": 188354,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 17056.708333,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 12016.5,
"max_engagement_per_post": 62838,
"avg_caption_length": 131,
"avg_posts_per_week": 3,
"avg_posts_per_month": 12,
"posts_count_last_7_days": 2,
"posts_count_last_30_days": 12,
"total_likes": 136696,
"total_comments": 22415,
"total_shares": 8533,
"total_collects": 20710,
"total_plays": 4738000,
"avg_likes_per_post": 11391,
"avg_comments_per_post": 1868,
"avg_shares_per_post": 711,
"avg_collects_per_post": 1726,
"avg_plays_per_post": 394833,
"_more_fields": "13 more fields"
},
"segment_comparison": {
"sponsored_content_share": 25.0,
"organic_content_share": 75.0,
"organic_vs_sponsored_engagement_rate_gap": 0.0,
"sponsored_to_organic_avg_engagement_ratio": 0.0
}
},
"feed": {
"count": 16,
"items": [
{
"url": "https://www.tiktok.com/@tiktok/video/7673909736131038495",
"created_at": "2026-08-14T15:29:26Z",
"media_id": "7673909736131038495",
"description": "Ever wonder what happens the exact second you hit post? 🤯 Before a video even hits your FYF, AI and safety teams are working behind the scenes to keep your feed safe, clean, and…",
"duration_seconds": 63,
"author": {
"url": "https://www.tiktok.com/@tiktok",
"user_id": "107955",
"sec_uid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"username": "tiktok",
"display_name": "TikTok",
"description": "One TikTok can make a big impact",
"follower_count": 95300000,
"following_count": 0,
"friend_count": 0,
"like_count": 462800000,
"video_count": 1489,
"digg_count": 4248,
"is_verified": true,
"is_private": false,
"avatar_url": "https://example.com/image.jpg",
"avatar_urls": "https://example.com/image.jpg"
},
"music": {
"music_id": "7673909733174020895",
"title": "original sound",
"author": "TikTok",
"duration_seconds": 63,
"cover_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=10399&refresh_token=64fcfb9f&x-expires=17…",
"play_url": "https://v45.tiktokcdn-eu.com/f530c4e8984008ec616f33b25d9f7dfd/6a8354bb/video/tos/alisg/tos-alisg-v-2370c799-sg/o4DIRFDiFACYfNf0ATQ0ECZoGxQIIqAfAUz2nE/?a=1233&bti=ODszNWYuMDE6&&b…",
"is_original": true
},
"play_count": 226000,
"like_count": 5427,
"comment_count": 1329,
"share_count": 520,
"collect_count": 1268,
"is_ad": false,
"is_private": false,
"cover_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/ocAAVsIgQQAprhfeKaLUefHS4KinxRApGJmGAb~tplv-tiktokx-origin.image?dr=10395&x-expires=1787076000&x-signature=e%2FaA…",
"dynamic_cover_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/ocAAVsIgQQAprhfeKaLUefHS4KinxRApGJmGAb~tplv-tiktokx-origin.image?dr=10395&x-expires=1787076000&x-signature=e%2FaA…",
"play_url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/ogQMLpmFMFhIRyLGXrIg1VAUfNAeK7PfBzfQHG/?a=1988&bti=ODszNWYuMDE6&&bt=712&ft=I~da4ojED12Nv-ObLzIxRdO_Yl-…",
"is_sponsored": false,
"sponsored_detection_source": "explicit",
"sponsored_detection_confidence": "high"
},
{
"url": "https://www.tiktok.com/@tiktok/video/7673169793343622430",
"created_at": "2026-08-12T15:37:54Z",
"media_id": "7673169793343622430",
"description": "TikTok Search is where ideas turn into actual trips 🛫🏝️🗺️⛰️",
"duration_seconds": 64,
"author": {
"url": "https://www.tiktok.com/@tiktok",
"user_id": "107955",
"sec_uid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"username": "tiktok",
"display_name": "TikTok",
"description": "One TikTok can make a big impact",
"follower_count": 95300000,
"following_count": 0,
"friend_count": 0,
"like_count": 462800000,
"video_count": 1489,
"digg_count": 4248,
"is_verified": true,
"is_private": false,
"avatar_url": "https://example.com/image.jpg",
"avatar_urls": "https://example.com/image.jpg"
},
"music": {
"music_id": "7673169768911801119",
"title": "original sound",
"author": "TikTok",
"duration_seconds": 64,
"cover_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=10399&refresh_token=64fcfb9f&x-expires=17…",
"play_url": "https://v45.tiktokcdn-eu.com/f83097d6f43817e70e5b8b41a7725059/6a8354bc/video/tos/alisg/tos-alisg-v-2370c799-sg/oUWBiAkGkK0AzBm8EAA1ifRqqkPt1EBARirEAm/?a=1233&bti=ODszNWYuMDE6&&b…",
"is_original": true
},
"play_count": 243400,
"like_count": 4963,
"comment_count": 1066,
"share_count": 413,
"collect_count": 503,
"is_ad": false,
"is_private": false,
"cover_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oQS1AnRBA3yE8APikBAaiB9EUT1LAsIykBIbl~tplv-tiktokx-origin.image?dr=10395&x-expires=1787076000&x-signature=L9VAGgn…",
"dynamic_cover_url": "https://p19-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oQS1AnRBA3yE8APikBAaiB9EUT1LAsIykBIbl~tplv-tiktokx-origin.image?dr=10395&x-expires=1787076000&x-signature=n%2BlIa…",
"play_url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/oEOEAEfQjFyIUAkf8ILfFJ3itUUDICFmqWpILi/?a=1988&bti=ODszNWYuMDE6&&bt=1792&ft=I~da4ojED12Nv-ObLzIxRdO_Yl…",
"is_sponsored": false,
"sponsored_detection_source": "explicit",
"sponsored_detection_confidence": "high"
},
{
"_more_items": 14
}
]
}
}
}
将本文档作为第一个决策点,然后在将端点接入常规使用之前,继续了解价格、平台覆盖范围和集成规则。
借助这些解答,判断此 API 方法是否适合您的工作流、版本选择和上线计划。
该方法针对个人资料执行“按用户 UID 获取视频指标”操作。下方的简明响应示例展示了确切的字段结构。
新集成请选择 V2,因为它提供规范化的结构。仅在兼容已使用平台原生格式的客户端时使用 V1。
创建 API 密钥,在请求头中发送它,并提供表格中的必填参数。代码示例中已包含正确的路径和请求结构。