https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-shop-analytics/runRun this API
Send a JSON request to execute this API and receive the direct response payload.
Endpoint
| Method | POST |
| Path | https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-shop-analytics/run |
| Auth | Bearer API key |
| Content-Type | application/json |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
region | string | optional | Region/market code, e.g., US. Max length 1000 Example: US |
dateRange | string | optional | Time range, e.g., last7Day (last 7 days), last30Day (last 30 days). Max length 1000 Example: last30Day |
pageNumber | integer | optional | Page number, value range 1-5 (out of range returns errcode 501) Example: 1 |
pageSize | integer | optional | Items per page, value range 5-100 Example: 10 |
language | string | optional | Return language, e.g., zh-CN, en-US. Max length 1000 |
currency | string | optional | Currency unit, e.g., USD. Max length 1000 |
sortField | object | optional | Sort criteria; pass an empty object {} for default rank order when not sorting Example: {} |
shopId | string | optional | TikTok shop unique ID (string, to avoid large integer precision loss), e.g., 7495514739648989419. Obtainable from the shop_id field in the shop rank response Example: 7496162162184128712 |
Request example
{
"shopId": "7496162162184128712",
"pageNumber": 1,
"region": "US",
"sortField": {},
"dateRange": "last30Day",
"pageSize": 10
}Response body
Returns the documented upstream API response directly without an additional wrapper.
| Name | Type | Required | Description |
|---|---|---|---|
errcode | integer | optional | Business status code, 200 indicates success Example: 1 |
data | array | optional | Shop rank list (rank) or 1-element detail array (detail) Example: [] |
costToken | integer | optional | Tokens consumed for this call, fixed at 14000 Example: 1 |
errmsg | string | optional | Status message, ok on success |
data[].rank | integer | optional | Rank position (1 is highest) Example: 1 |
data[].shop_name | string | optional | Shop name |
data[].shop_id | string | optional | Shop unique ID (string, to avoid large integer precision loss) Example: example-id |
data[].shop_type | string | optional | Shop type (e.g., BRAND) |
data[].revenue | number | optional | Total revenue / GMV (in the requested currency) Example: 1 |
data[].sales_volumn | integer | optional | Sales volume (note the field is spelled volumn) Example: 1 |
data[].on_sell_product_count | integer | optional | Products currently on sale Example: 1 |
data[].unit_price | number | optional | Unit price (in the requested currency) Example: 1 |
data[].revenue_growth_rate | number | optional | Revenue growth rate (%, can be positive or negative) Example: 1 |
data[].self_promotion_revenue | number | optional | Self-operated/self-promoted revenue Example: 1 |
data[].affiliate_revenue | number | optional | Affiliate distribution revenue Example: 1 |
data[].shopping_mall_revenue | number | optional | Mall revenue Example: 1 |
data[].seller_type | string | optional | Shop/seller type (e.g., BRAND) -- detail uses seller_type, not shop_type |
data[].region | string | optional | Region/market (e.g., US) Example: US |
data[].product_number | integer | optional | Products currently on sale Example: 1 |
data[].self_account_revenue | number | optional | Self-operated/self-broadcast revenue -- detail uses self_account_revenue, not self_promotion_revenue Example: 1 |
data[].shoppingmall_revenue | number | optional | Mall revenue (note: no underscore between shopping and mall) Example: 1 |
data[].creator_number | integer | optional | Creator collaborations Example: 1 |
data[].video_number | integer | optional | Associated video count Example: 1 |
data[].live_number | integer | optional | Associated livestream count Example: 1 |
code | string | optional | Provider-specific status code. |
msg | string | optional | Provider-specific status message. |
message | string | optional | Provider-specific message. |
type | string | optional | Provider-specific render or payload type. |
title | string | optional | Provider-specific response title. |
sourceType | string | optional | Provider-specific source platform type. |
sourceTool | string | optional | Provider-specific source tool name. |
costTime | integer | optional | Execution time reported by the upstream provider. |
page | integer | optional | Current page returned by the upstream provider. |
pageSize | integer | optional | Page size returned by the upstream provider. |
pageItemCount | integer | optional | Item count on the current page returned by the upstream provider. |
totalPage | integer | optional | Total page count returned by the upstream provider. |
dataSnapshotMonth | string | optional | Data snapshot month returned by the upstream provider. |
Response example
Direct response payload. No extra wrapper is added.
{
"errcode": 1,
"data": [
{
"rank": 1,
"shop_id": "example-id",
"revenue": 1,
"sales_volumn": 1,
"on_sell_product_count": 1,
"unit_price": 1,
"revenue_growth_rate": 1,
"self_promotion_revenue": 1,
"affiliate_revenue": 1,
"shopping_mall_revenue": 1,
"region": "US",
"product_number": 1,
"self_account_revenue": 1,
"shoppingmall_revenue": 1,
"creator_number": 1,
"video_number": 1,
"live_number": 1
}
],
"costToken": 1
}Responses
| Code | Description |
|---|---|
| 200 | API executed successfully. Body is the direct response payload. |
| 400 | Request JSON or required API parameters are invalid. |
| 401 | API key is missing, invalid, or cannot be matched to a user. |
| 5xx | API 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.