Nexscope

TikTok Livestream 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 livestream rankings and details by region and date, including revenue, viewers, duration, GPM, and products sold.

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

Run an API

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

Slugtiktok-livestream-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-livestream-analytics/run \
  -H "Authorization: Bearer nk-xxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{   "sortField": {},   "pageNumber": 1,   "dateRange": "last30Day",   "pageSize": 10,   "region": "US" }'
All categories/ TikTok / Social Commerce
POSThttps://api.nexscope.ai/api/skill-api/v1/skills/tiktok-livestream-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-livestream-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, structure defined by the gateway; pass an empty object {} for default rank order when not sorting
Example: {}
category_idstringoptional
Category ID filter
shop_idstringoptional
Shop ID filter
creator_idstringoptional
Creator ID filter
product_idstringoptional
Product ID filter
followers_rangestringoptional
Creator follower range filter
livestreamIdstringoptional
Target livestream unique ID (camelCase), e.g., 7661409374878878494. Typically obtained from the livestream_id in the livestream rank endpoint. Max length 1000

Request example

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

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
Livestream rank list or livestream detail data
Example: []
data.costTokenintegeroptional
Tokens consumed for this call, fixed at 14000
Example: 1
data.data[].livestream_start_timeintegeroptional
Livestream start time (epoch milliseconds)
Example: 1
data.data[].livestream_end_timeintegeroptional
Livestream end time (epoch milliseconds)
Example: 1
data.data[].livestream_durationintegeroptional
Livestream duration (seconds)
Example: 1
data.data[].livestream_titlestringoptional
Livestream title
Example: null
data.data[].livestream_idstringoptional
Livestream unique ID (string, to avoid large integer precision loss); can be used as livestreamId in the detail endpoint
Example: example-id
data.data[].creator_idstringoptional
Creator unique ID (string, to avoid large integer precision loss)
Example: example-id
data.data[].creator_handlestringoptional
Creator account handle
Example: null
data.data[].revenuestringoptional
Total revenue / GMV (in the requested currency; returned as string, e.g., "185590.52")
Example: null
data.data[].unit_pricestringoptional
Unit price (in the requested currency; returned as string, e.g., "265.89")
Example: null
data.data[].viewsintegeroptional
View count
Example: 1
data.data[].record_typestringoptional
Record type (e.g., SHORT)
Example: null
data.data[].viewersintegeroptional
Viewer count (note: DETAIL uses viewers, RANK uses views)
Example: 1
data.data[].gpmnumberoptional
GMV per mille, number type -- unique to DETAIL, not present in the RANK endpoint
Example: 1
data.data[].product_numberintegeroptional
Product count in the livestream
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": [
      {
        "livestream_start_time": 1,
        "livestream_end_time": 1,
        "livestream_duration": 1,
        "livestream_id": "example-id",
        "creator_id": "example-id",
        "views": 1,
        "viewers": 1,
        "gpm": 1,
        "product_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_livestream_analytics",
    "arguments": {
      "sortField": {},
      "pageNumber": 1,
      "dateRange": "last30Day",
      "pageSize": 10,
      "region": "US"
    }
  }
}

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