Nexscope

TikTok Product 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

Analyze TikTok Shop product leaderboards and product-level price, sales, revenue, commission, listing status, and shop data.

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

Run an API

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

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

Request body

NameTypeRequiredDescription
regionstringoptional
TikTok Shop market region code, e.g., US. If not specified, defaults to the server default (usually US)
Example: US
dateRangestringoptional
Relative date range, e.g., last7Day, last30Day
Example: last30Day
currencystringoptional
Currency code, e.g., USD
languagestringoptional
Return language, e.g., zh-CN, en-US
sortFieldobjectoptional
Sort specification object; omitted to use default ranking
Example: {}
category_idsarrayoptional
Category ID list filter
Example: []
shop_idstringoptional
Shop ID filter
creator_idstringoptional
Creator ID filter
video_idstringoptional
Return products associated with the specified video
livestream_idstringoptional
Return products associated with the specified livestream
revenue_rangestringoptional
Revenue / GMV range filter
is_affiliatestringoptional
Affiliate filter: PUBLIC_PLAN or NON_AFFILIATE
commission_ratenumberoptional
Affiliate commission rate, e.g. 0.15
is_tts_productintegeroptional
Fully managed product filter: 1 or 0
unit_price_rangestringoptional
Product unit-price range filter
pageNumberintegeroptional
Page number, range 1-5
Example: 1
pageSizeintegeroptional
Items per page, range 5-100
Example: 10
productIdstringoptional
TikTok product ID, e.g., 1729508370969629931 (string format, to avoid large integer precision loss), obtainable from the product_id in the product rank response
Example: 1732505564636812173

Request example

{
  "dateRange": "last30Day",
  "sortField": {},
  "region": "US",
  "pageNumber": 1,
  "productId": "1732505564636812173",
  "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
Rank or detail data
Example: []
data.costTokenintegeroptional
Tokens consumed for this call, typically 14000
Example: 1
data.data[].product_idstringoptional
Product ID (string format, to avoid large integer precision loss); used as productId to query details
Example: example-id
data.data[].product_namestringoptional
Product title
Example: null
data.data[].unit_pricenumberoptional
Unit price (currency depends on region, e.g., US means USD)
Example: 1
data.data[].sales_volumnintegeroptional
Sales volume (units). Note: the field name is spelled sales_volumn (as-is, not volume). Use this exact name when extracting with jq/ConvertFrom-Json
Example: 1
data.data[].revenuenumberoptional
Total revenue (GMV), = video_revenue + live_revenue + showcase_revenue
Example: 1
data.data[].video_revenuenumberoptional
Video channel revenue
Example: 1
data.data[].live_revenuenumberoptional
Livestream channel revenue
Example: 1
data.data[].showcase_revenuenumberoptional
Showcase/display channel revenue
Example: 1
data.data[].revenue_growth_ratenumberoptional
Revenue growth rate (percentage, e.g., 27.94 means 27.94%)
Example: 1
data.data[].commission_ratenumberoptional
Commission rate (percentage, e.g., 25.0 means 25%; not basis points)
Example: 1
data.data[].launch_datestringoptional
Launch date (YYYY-MM-DD)
Example: 2026-01-01
data.data[].product_regionstringoptional
Product region/market (e.g., us)
Example: null
data.data[].product_shop_idstringoptional
Belonged shop ID
Example: example-id
data.data[].pri_cate_idstringoptional
Primary category ID
Example: example-id
data.data[].sec_cate_idstringoptional
Secondary category ID
Example: example-id
data.data[].ter_cate_idstringoptional
Tertiary category ID
Example: example-id
data.data[].min_pricenumberoptional
Minimum price (in the requested currency)
Example: 1
data.data[].max_pricenumberoptional
Maximum price (in the requested currency)
Example: 1
data.data[].product_review_countintegeroptional
Product review count
Example: 1
data.data[].delivery_typestringoptional
Delivery method (e.g., local)
Example: null
data.data[].video_numberintegeroptional
Associated video count
Example: 1
data.data[].live_numberintegeroptional
Associated livestream count
Example: 1
data.data[].shopping_mall_revenuenumberoptional
Mall revenue (in the requested currency)
Example: 1
data.data[].creator_numberintegeroptional
Associated creator 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": [
      {
        "product_id": "example-id",
        "unit_price": 1,
        "sales_volumn": 1,
        "revenue": 1,
        "video_revenue": 1,
        "live_revenue": 1,
        "showcase_revenue": 1,
        "revenue_growth_rate": 1,
        "commission_rate": 1,
        "launch_date": "2026-01-01",
        "product_shop_id": "example-id",
        "pri_cate_id": "example-id",
        "sec_cate_id": "example-id",
        "ter_cate_id": "example-id",
        "min_price": 1,
        "max_price": 1,
        "product_review_count": 1,
        "video_number": 1,
        "live_number": 1,
        "shopping_mall_revenue": 1,
        "creator_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_product_analytics",
    "arguments": {
      "dateRange": "last30Day",
      "sortField": {},
      "region": "US",
      "pageNumber": 1,
      "productId": "1732505564636812173",
      "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-product-analytics/run
MCP method
nexscope_tiktok_product_analytics
cURL
curl -X POST \
  https://api.nexscope.ai/api/skill-api/v1/skills/tiktok-product-analytics/run \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "dateRange": "last30Day", "sortField": {}, "region": "US", "pageNumber": 1, "productId": "1732505564636812173", "pageSize": 10 }'
Response
No response yet. Run the request to see the response here.