Nexscope logo

TikTok Shop 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 store leaderboards via Kalodata and query detailed information for specific stores. Supports viewing high-ranking, high-sales TikTok Shop stores by region, currency, language, and date range, and using shopId to retrieve revenue, sales volume, on-sale product count, self-operated/affiliate/shopping mall channel revenue, and creator collaboration count.

Try this API
Endpoint
https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-shop-analytics/run
MCP method
nexscope_tiktok_shop_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-shop-analytics/run

Run an API

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

Slugtiktok-shop-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-shop-analytics/run \
  -H "Authorization: Bearer nk_xxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{   "shopId": "7496162162184128712",   "pageNumber": 1,   "region": "US",   "sortField": {},   "dateRange": "last30Day",   "pageSize": 10 }'
All categories/ TikTok / Social Commerce
POSThttps://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-shop-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-shop-analytics/run
AuthBearer API key
Content-Typeapplication/json

Request body

NameTypeRequiredDescription
regionstringoptional
Region/market code, e.g., US. Max length 1000
Example: US
dateRangestringoptional
Time range, e.g., last7Day (last 7 days), last30Day (last 30 days). Max length 1000
Example: last30Day
pageNumberintegeroptional
Page number, value range 1-5 (out of range returns errcode 501)
Example: 1
pageSizeintegeroptional
Items per page, value range 5-100
Example: 10
languagestringoptional
Return language, e.g., zh-CN, en-US. Max length 1000
currencystringoptional
Currency unit, e.g., USD. Max length 1000
sortFieldobjectoptional
Sort criteria; pass an empty object {} for default rank order when not sorting
Example: {}
shopIdstringoptional
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.

NameTypeRequiredDescription
errcodeintegeroptional
Business status code, 200 indicates success
Example: 1
dataarrayoptional
Shop rank list (rank) or 1-element detail array (detail)
Example: []
costTokenintegeroptional
Tokens consumed for this call, fixed at 14000
Example: 1
errmsgstringoptional
Status message, ok on success
data[].rankintegeroptional
Rank position (1 is highest)
Example: 1
data[].shop_namestringoptional
Shop name
data[].shop_idstringoptional
Shop unique ID (string, to avoid large integer precision loss)
Example: example-id
data[].shop_typestringoptional
Shop type (e.g., BRAND)
data[].revenuenumberoptional
Total revenue / GMV (in the requested currency)
Example: 1
data[].sales_volumnintegeroptional
Sales volume (note the field is spelled volumn)
Example: 1
data[].on_sell_product_countintegeroptional
Products currently on sale
Example: 1
data[].unit_pricenumberoptional
Unit price (in the requested currency)
Example: 1
data[].revenue_growth_ratenumberoptional
Revenue growth rate (%, can be positive or negative)
Example: 1
data[].self_promotion_revenuenumberoptional
Self-operated/self-promoted revenue
Example: 1
data[].affiliate_revenuenumberoptional
Affiliate distribution revenue
Example: 1
data[].shopping_mall_revenuenumberoptional
Mall revenue
Example: 1
data[].seller_typestringoptional
Shop/seller type (e.g., BRAND) -- detail uses seller_type, not shop_type
data[].regionstringoptional
Region/market (e.g., US)
Example: US
data[].product_numberintegeroptional
Products currently on sale
Example: 1
data[].self_account_revenuenumberoptional
Self-operated/self-broadcast revenue -- detail uses self_account_revenue, not self_promotion_revenue
Example: 1
data[].shoppingmall_revenuenumberoptional
Mall revenue (note: no underscore between shopping and mall)
Example: 1
data[].creator_numberintegeroptional
Creator collaborations
Example: 1
data[].video_numberintegeroptional
Associated video count
Example: 1
data[].live_numberintegeroptional
Associated livestream count
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": [
    {
      "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

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_shop_analytics",
    "arguments": {
      "shopId": "7496162162184128712",
      "pageNumber": 1,
      "region": "US",
      "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-shop-analytics/run
MCP method
nexscope_tiktok_shop_analytics
cURL
curl -X POST \
  https://claw-callback.nexscope.ai/api/skill-api/v1/skills/tiktok-shop-analytics/run \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "shopId": "7496162162184128712", "pageNumber": 1, "region": "US", "sortField": {}, "dateRange": "last30Day", "pageSize": 10 }'
Response
No response yet. Run the request to see the response here.