Nexscope

TikTok Shop Analytics API

REST API and MCP service documentation generated from server-side API definitions. Responses use the shared code, msg, and data envelope.

API selector
TikTok / Social Commerce

API overview

Search TikTok Shop leaderboards and store details with regional sales, revenue, product, channel, and creator-collaboration metrics.

Try this API
Endpoint
https://api.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://api.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 bodyPlatform envelope: code, msg, data, ts, time, cost, traceId. Inspect data.status for asynchronous completion.

Status codes

CodeDescription
200HTTP request completed. Check JSON code; only 0 indicates business success or acceptance.
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 '{   "dateRange": "last30Day",   "sortField": {},   "region": "US",   "pageNumber": 1,   "shopId": "7496162162184128712",   "pageSize": 10 }'
All categories/ TikTok / Social Commerce
POSThttps://api.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 documented response payload.

Endpoint

MethodPOST
Pathhttps://api.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: {}
category_idsarrayoptional
Category ID list filter; results use the selected category dimension
Example: []
revenue_rangestringoptional
Revenue / GMV range filter
shop_typestringoptional
Shop type filter: BRAND or RETAILER
category_idstringoptional
Optional category ID dimension
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

{
  "dateRange": "last30Day",
  "sortField": {},
  "region": "US",
  "pageNumber": 1,
  "shopId": "7496162162184128712",
  "pageSize": 10
}

Response body

NameTypeRequiredDescription
dataanyrequired
Data value used by this API operation.
codeintegerrequired
0 means accepted or successful; nonzero is a platform error.
msgstring | nullrequired
Msg value used by this API operation.
tsstringrequired
Epoch milliseconds.
timestringrequired
Server local time: yyyy-MM-dd HH:mm:ss.
coststringrequired
Elapsed milliseconds, never credits; -1 outside web requests.
traceIdstring | nullrequired
Trace id value used by this API operation.

Any of option 1

NameTypeRequiredDescription
dataobjectrequired
Data value used by this API operation.
data.dataarrayoptional
Shop rank list (rank) or 1-element detail array (detail)
Example: []
data.costTokenintegeroptional
Tokens consumed for this call, fixed at 14000
Example: 1
data.data[].rankintegeroptional
Rank position (1 is highest)
Example: 1
data.data[].shop_namestringoptional
Shop name
Example: null
data.data[].shop_idstringoptional
Shop unique ID (string, to avoid large integer precision loss)
Example: example-id
data.data[].shop_typestringoptional
Shop type (e.g., BRAND)
Example: null
data.data[].revenuenumberoptional
Total revenue / GMV (in the requested currency)
Example: 1
data.data[].sales_volumnintegeroptional
Sales volume (note the field is spelled volumn)
Example: 1
data.data[].on_sell_product_countintegeroptional
Products currently on sale
Example: 1
data.data[].unit_pricenumberoptional
Unit price (in the requested currency)
Example: 1
data.data[].revenue_growth_ratenumberoptional
Revenue growth rate (%, can be positive or negative)
Example: 1
data.data[].self_promotion_revenuenumberoptional
Self-operated/self-promoted revenue
Example: 1
data.data[].affiliate_revenuenumberoptional
Affiliate distribution revenue
Example: 1
data.data[].shopping_mall_revenuenumberoptional
Mall revenue
Example: 1
data.data[].seller_typestringoptional
Shop/seller type (e.g., BRAND) -- detail uses seller_type, not shop_type
Example: null
data.data[].regionstringoptional
Region/market (e.g., US)
Example: US
data.data[].product_numberintegeroptional
Products currently on sale
Example: 1
data.data[].self_account_revenuenumberoptional
Self-operated/self-broadcast revenue -- detail uses self_account_revenue, not self_promotion_revenue
Example: 1
data.data[].shoppingmall_revenuenumberoptional
Mall revenue (note: no underscore between shopping and mall)
Example: 1
data.data[].creator_numberintegeroptional
Creator collaborations
Example: 1
data.data[].video_numberintegeroptional
Associated video count
Example: 1
data.data[].live_numberintegeroptional
Associated livestream count
Example: 1
data.typestringoptional
Provider-specific render or payload type.
Example: null
data.titlestringoptional
Provider-specific response title.
Example: null
data.sourceTypestringoptional
Provider-specific source platform type.
Example: null
data.sourceToolstringoptional
Provider-specific source tool name.
Example: null
data.costTimeintegeroptional
Execution time reported by the upstream provider.
Example: null
data.pageintegeroptional
Current page returned by the upstream provider.
Example: null
data.pageSizeintegeroptional
Page size returned by the upstream provider.
Example: null
data.pageItemCountintegeroptional
Item count on the current page returned by the upstream provider.
Example: null
data.totalPageintegeroptional
Total page count returned by the upstream provider.
Example: null
data.dataSnapshotMonthstringoptional
Data snapshot month returned by the upstream provider.
Example: null

Any of option 2

NameTypeRequiredDescription
datanullrequired
Data value used by this API operation.

Response example

Platform response envelope. code 0 indicates success or acceptance; data contains the business result.

{
  "data": {
    "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
  },
  "code": 0,
  "msg": null,
  "ts": "0",
  "time": "2026-01-01 00:00:00",
  "cost": "-1",
  "traceId": null
}

Responses

CodeDescription
200HTTP request completed. Check JSON code; only 0 indicates business success or acceptance.
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": {
      "dateRange": "last30Day",
      "sortField": {},
      "region": "US",
      "pageNumber": 1,
      "shopId": "7496162162184128712",
      "pageSize": 10
    }
  }
}

Online test

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

15 credits / callAPI usage records

Try it

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

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