Nexscope logo

TikTok Video Analytics API

REST API and MCP service documentation generated from server-side API definitions. Responses shown here are the direct payload returned by each API execution.

API selector
TikTok / Social Commerce

API overview

Search TikTok e-commerce trending promotional video leaderboards via Kalodata and query detailed data for specific videos. Supports viewing high-ranking/high-view/hot-selling promotional videos by region, currency, language, and date range, and using videoId to retrieve views, likes, comments, shares, revenue, GPM, and advertising metrics.

Try this API
Endpoint
https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run
MCP method
nexscope_tiktok_video_analytics

Authentication

All run endpoints require a user API key. Send it as a bearer token in the Authorization header.

Authorization: Bearer nk_xxxxxxxxxxxxxxxxx
Missing or invalid API keys return an authentication error. Manage keys from .
POSThttps://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run

Run an API

Request parameters documented by ecommerce.tiktok-video-analytics.

Slugtiktok-video-analytics
HeadersAuthorization: Bearer nk_...
Content-Type: application/json
Request bodyAPI-specific JSON object.
Response bodyDirect API response payload. No data/result wrapper is added.

Status codes

CodeDescription
200API executed successfully. Body is the direct response payload.
400Request JSON or required API parameters are invalid.
401API key is missing, invalid, or cannot be matched to a user.
5xxAPI execution or upstream service failed.

Example request

curl -X POST https://api.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run \
  -H "Authorization: Bearer nk_xxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{   "pageNumber": 1,   "region": "US",   "videoId": "6768504823336815877",   "sortField": {},   "dateRange": "last30Day",   "pageSize": 10 }'
All categories/ TikTok / Social Commerce
POSThttps://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run

Run this API

Send a JSON request to execute this API and receive the direct response payload.

Open tester

Endpoint

MethodPOST
Pathhttps://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run
AuthBearer API key
Content-Typeapplication/json

Request body

NameTypeRequiredDescription
regionstringoptional
Region/market code, e.g., US
Example: US
dateRangestringoptional
Time range, e.g., last7Day, last30Day
Example: last30Day
pageNumberintegeroptional
Page number, value range 1-5
Example: 1
pageSizeintegeroptional
Items per page, value range 5-100
Example: 10
languagestringoptional
Return language, e.g., zh-CN, en-US
currencystringoptional
Currency unit, e.g., USD
sortFieldobjectoptional
Sort criteria; omitted to use default rank order
Example: {}
videoIdstringoptional
TikTok video ID, e.g., 7659161409279806734, obtainable from the video_id in the video rank response
Example: 6768504823336815877

Request example

{
  "pageNumber": 1,
  "region": "US",
  "videoId": "6768504823336815877",
  "sortField": {},
  "dateRange": "last30Day",
  "pageSize": 10
}

Response body

Returns the documented upstream API response directly without an additional wrapper.

NameTypeRequiredDescription
errcodeintegeroptional
Business status code, 200 indicates success
Example: 1
dataarrayoptional
Rank or detail data
Example: []
costTokenintegeroptional
Tokens consumed for this call, typically 14000
Example: 1
errmsgstringoptional
Status message, ok on success
data[].video_idstringoptional
Video ID, string format to avoid large integer precision loss
Example: example-id
data[].video_titlestringoptional
Video title / caption
data[].viewsintegeroptional
View count
Example: 1
data[].digg_countintegeroptional
Like count
Example: 1
data[].comment_countintegeroptional
Comment count
Example: 1
data[].share_countintegeroptional
Share count
Example: 1
data[].revenuenumberoptional
Total revenue / GMV, returned in the requested currency
Example: 1
data[].revenue_growth_ratenumberoptional
Revenue growth rate (%), can be positive or negative
Example: 1
data[].adintegeroptional
Whether ad/promotional video flag (1=yes)
Example: 1
data[].ad_view_rationumberoptional
Ad view share (%)
Example: 1
data[].ad_revenue_rationumberoptional
Ad revenue share (%)
Example: 1
data[].ads_roasnumberoptional
Ad ROAS
Example: 1
data[].belonged_creator_idstringoptional
Belonged creator ID
Example: example-id
data[].belonged_creator_handlestringoptional
Belonged creator username
data[].creator_debutstringoptional
Creator debut date (YYYY-MM-DD)
data[].video_regionstringoptional
Video region, may be empty string
data[].sales_volumnintegeroptional
Sales volume, field spelled as volumn
Example: 1
data[].video_gpmnumberoptional
Video GPM (GMV per thousand views)
Example: 1
data[].ads_viewsintegeroptional
Ad view count
Example: 1
data[].ad_cpanumberoptional
Ad CPA
Example: 1
data[].ads_periodintegeroptional
Ad running period (days)
Example: 1
data[].durationnumberoptional
Video duration (seconds)
Example: 1
data[].product_numberintegeroptional
Associated product count in the video
Example: 1
codestringoptional
Provider-specific status code.
msgstringoptional
Provider-specific status message.
messagestringoptional
Provider-specific message.
typestringoptional
Provider-specific render or payload type.
titlestringoptional
Provider-specific response title.
sourceTypestringoptional
Provider-specific source platform type.
sourceToolstringoptional
Provider-specific source tool name.
costTimeintegeroptional
Execution time reported by the upstream provider.
pageintegeroptional
Current page returned by the upstream provider.
pageSizeintegeroptional
Page size returned by the upstream provider.
pageItemCountintegeroptional
Item count on the current page returned by the upstream provider.
totalPageintegeroptional
Total page count returned by the upstream provider.
dataSnapshotMonthstringoptional
Data snapshot month returned by the upstream provider.

Response example

Direct response payload. No extra wrapper is added.

{
  "errcode": 1,
  "data": [
    {
      "video_id": "example-id",
      "views": 1,
      "digg_count": 1,
      "comment_count": 1,
      "share_count": 1,
      "revenue": 1,
      "revenue_growth_rate": 1,
      "ad": 1,
      "ad_view_ratio": 1,
      "ad_revenue_ratio": 1,
      "ads_roas": 1,
      "belonged_creator_id": "example-id",
      "sales_volumn": 1,
      "video_gpm": 1,
      "ads_views": 1,
      "ad_cpa": 1,
      "ads_period": 1,
      "duration": 1,
      "product_number": 1
    }
  ],
  "costToken": 1
}

Responses

CodeDescription
200API executed successfully. Body is the direct response payload.
400Request JSON or required API parameters are invalid.
401API key is missing, invalid, or cannot be matched to a user.
5xxAPI execution or upstream service failed.

Data source, freshness, and limitations

Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.

Related APIs

MCP

Use the MCP endpoint when an agent needs to discover and call API tools with JSON-RPC.

GET /api/skill-api/v1/mcp
POST /api/skill-api/v1/mcp
Authorization: Bearer nk_xxxxxxxxxxxxxxxxx
Content-Type: application/json

Call a tool

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "nexscope_tiktok_video_analytics",
    "arguments": {
      "pageNumber": 1,
      "region": "US",
      "videoId": "6768504823336815877",
      "sortField": {},
      "dateRange": "last30Day",
      "pageSize": 10
    }
  }
}

Online test

Execute the current API with your API key and JSON payload.

Try it

Send a real request with the same contract shown in the reference.

Endpoint
https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run
MCP method
nexscope_tiktok_video_analytics
cURL
curl -X POST \
  https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-video-analytics/run \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "pageNumber": 1, "region": "US", "videoId": "6768504823336815877", "sortField": {}, "dateRange": "last30Day", "pageSize": 10 }'
Response
No response yet. Run the request to see the response here.