Nexscope

TikTok Shop Rankings

Rank TikTok shops for a selected region and date range to compare available performance and discover shops worth researching.

CostRecent Avg. 22 · Range 11–22 credits / call
Try online
POST · https://api.nexscope.ai/kd/shop/rankMCP · nexscope_data_kd_shop_rank

What this API does

Rank TikTok shops for a selected region and date range to compare available performance and discover shops worth researching. The request accepts region, dateRange, pageNumber, pageSize, language. Its documented result includes errcode, errmsg, rank, shop_name, shop_id, shop_type, revenue, sales_volumn.

TikTok Shop Rankings API use cases

Shortlist a market segment

To shortlist a market segment, a marketplace analyst submits region and dateRange to TikTok Shop Rankings. The returned errcode, errmsg, rank help identify categories or products worth further market research.

Compare ranked products or categories

A marketplace analyst uses TikTok Shop Rankings with region and dateRange to compare ranked products or categories. The returned errcode, errmsg, rank help compare candidates within the requested ranking scope.

Investigate candidates before sourcing

For this workflow, a marketplace analyst calls TikTok Shop Rankings with region and dateRange to investigate candidates before sourcing. The result helps choose products to investigate before contacting suppliers.

TikTok Shop Rankings API FAQ

What does the TikTok Shop Rankings API return?

Rank TikTok shops for a selected region and date range to compare available performance and discover shops worth researching. The documented output includes errcode, errmsg, rank, shop_name, shop_id, shop_type, revenue, sales_volumn. It corresponds to the supplied region, dateRange, pageNumber, pageSize, language. Optional fields can be absent; a missing value should not be interpreted as a measured zero. Example values illustrate the response shape, rather than live account results.

How many credits does the TikTok Shop Rankings API cost?

The current documented cost is Recent Avg. 22 · Range 11–22 credits / call. This is the same cost shown at the top of this page. If a range or estimate is displayed, the final charge depends on the request. Review your available credits and the pricing page before calling the API, and check API usage records for the actual charge.

How do I call the TikTok Shop Rankings API from my app or an MCP client?

Send a POST request to https://api.nexscope.ai/kd/shop/rank with your API key as a Bearer token and the JSON inputs shown in API integration. In a compatible MCP client such as Claude or Cursor, connect Nexscope and call nexscope_data_kd_shop_rank. Use the MCP arguments shown in the MCP guide, or switch Online test to MCP to review its request before adding it to your app.

View plans and creditsConnect this API with MCP

Try this API
Endpoint
https://api.nexscope.ai/kd/shop/rank
MCP method
nexscope_data_kd_shop_rank

Step 1 of 3 · Authenticate

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 .

Step 2 of 3 · Send a request

POSThttps://api.nexscope.ai/kd/shop/rank

Run an API

Send a JSON request body using the parameters described below.

Example request

Replace YOUR_API_KEY, then run this command in your terminal.

curl -X POST 'https://api.nexscope.ai/kd/shop/rank' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "currency": "USD",
  "dateRange": "last7Day",
  "pageNumber": 1,
  "pageSize": 10,
  "region": "US"
}'

Code example

{
  "currency": "USD",
  "dateRange": "last7Day",
  "pageNumber": 1,
  "pageSize": 10,
  "region": "US"
}

Step 3 of 3 · Inspect the result

Check the response

Read code for the request status and data for the result. Open the parameter and response reference for the full field definitions.

HTTP status codes

CodeDescription
200Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result.
429Execution admission rate limit; honor Retry-After when present.
503Execution admission is temporarily unavailable; honor Retry-After when present.
Opt-inX-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing or invalid API key (code 11209, including an incomplete or corrupted copy) or an expired website login session (code 12001), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses.
All categories/ TikTok Intelligence KD
POSThttps://api.nexscope.ai/kd/shop/rank

Run this API

Send a JSON request to execute this API and receive the documented response payload.

Endpoint

MethodPOST
Pathhttps://api.nexscope.ai/kd/shop/rank
AuthBearer API key
Content-Typeapplication/json

Request parameters

NameTypeRequiredDescription
category_idstringoptional
Category ID, which can further limit the returned category dimensions
category_idsarrayoptional
Category ID list filtering; after specifying, return the transaction amount under the corresponding category
category_ids[]stringrequired
Category ID list filtering; after specifying, return the transaction amount under the corresponding category
currencystringoptional
Currency unit, such as `USD`; maximum length 1000
dateRangestringoptional
Time range, such as `last7Day`, `last30Day`; maximum length 1000
languagestringoptional
Return language, such as `zh-CN`, `en-US`; maximum length 1000
pageNumberintegeroptional
Page number, value 1-5; out of range returns `errcode 501`
pageSizeintegeroptional
Quantity per page, value 5-100
regionstringoptional
Region/market code, such as `US`; maximum length 1000
revenue_rangestringoptional
Transaction amount / GMV range, left closed and right open
shopIdstringrequired
TikTok store unique ID (string, to avoid loss of large integer precision), such as `7495514739648989419`, which can be obtained from `shop_id` in the list
shop_typestringoptional
Store type: `BRAND` (brand) or `RETAILER` (retailer)
sortFieldobjectoptional
Sorting conditions; when not sorting, pass an empty object `{}`

Response example

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

No response example is published for this API. Refer to the response fields below.

Response fields

Response field reference (30 fields)

NameTypeRequiredDescription
errcodeintegeroptional
Business status code, `200` indicates success
dataarrayoptional
Store list list or 1-element details array
costTokenintegeroptional
The deduction token for this call is fixed to `14000`
errmsgstringoptional
Status message, `ok` on success
rankintegeroptional
Ranking position, 1 is the highest
shop_namestringoptional
Store name
shop_idstringoptional
Store unique ID (string, to avoid loss of large integer precision)
shop_typestringoptional
Store type, such as `BRAND`
revenuenumberoptional
Total sales/GMV by requested `currency` currency
sales_volumnintegeroptional
Sales volume, field spelled `volumn`
on_sell_product_countintegeroptional
Number of items on sale
unit_pricenumberoptional
Unit price in requested `currency` currency
revenue_growth_ratenumberoptional
Sales growth rate (%), can be positive or negative
self_promotion_revenuenumberoptional
Self-operated/self-promoted sales
affiliate_revenuenumberoptional
Master Distribution Sales
shopping_mall_revenuenumberoptional
Mall sales
shop_idstringoptional
Store unique ID (string, to avoid loss of large integer precision)
shop_namestringoptional
Store name
seller_typestringoptional
Store/seller type, such as `BRAND`; use `seller_type` for details, not `shop_type`
regionstringoptional
Region/market such as `US`
revenuenumberoptional
Total sales/GMV by requested `currency` currency
sales_volumnintegeroptional
Sales volume, field spelled `volumn`
product_numberintegeroptional
Number of items on sale
unit_pricenumberoptional
Unit price in requested `currency` currency
self_account_revenuenumberoptional
Self-operated/self-broadcast self-promoted sales; use `self_account_revenue` for details
affiliate_revenuenumberoptional
Master Distribution Sales
shoppingmall_revenuenumberoptional
Mall sales; there is no underscore between `shopping` and `mall` in the detail field name
creator_numberintegeroptional
Number of collaborations with experts
video_numberintegeroptional
Number of associated videos
live_numberintegeroptional
Number of associated live broadcasts

Responses

CodeDescription
200Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result.
429Execution admission rate limit; honor Retry-After when present.
503Execution admission is temporarily unavailable; honor Retry-After when present.
Opt-inX-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing or invalid API key (code 11209, including an incomplete or corrupted copy) or an expired website login session (code 12001), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses.

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.

Step 1 of 2 · Connect your MCP client

MCP

V2 recommended

Connect remote agents through the standard MCP 2025-11-25 Streamable HTTP endpoint. Use OAuth 2.1 Authorization Code with PKCE, or an API key for compatibility.

POST https://api.nexscope.ai/mcp
MCP-Protocol-Version: 2025-11-25
Content-Type: application/json
Authentication

OAuth clients request the mcp:tools scope. The endpoint's 401 response advertises protected-resource metadata for authorization discovery.

Step 2 of 2 · Call the tool

Call a tool

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "nexscope_data_kd_shop_rank",
    "arguments": {
      "currency": "USD",
      "dateRange": "last7Day",
      "pageNumber": 1,
      "pageSize": 10,
      "region": "US"
    }
  }
}

Legacy MCP v1

Existing API-key clients can continue using the compatibility endpoint. New integrations should use MCP v2.

GET / POST /mcp/legacy

What can you do with this API?

Data explained and practical use cases

AI Guide

Question

What data can TikTok Shop Rankings provide, and how might I use it?

AI answer

This API ranks TikTok shops for a selected market and date range. You can filter by category, shop type, or GMV range and compare the returned shops using the available sales measures.

Data categoryDocumented fieldsWhat the values mean
Rank and identityrank, shop_name, shop_idA shop’s position in the returned ranking, name, and unique ID.
Shop typeshop_typeWhether a ranked shop is classified as a brand or retailer.
Salesrevenue, sales_volumn, unit_priceReported GMV, units sold, and unit price for the requested scope. Monetary values use the requested currency.
Growth and assortmentrevenue_growth_rate, on_sell_product_countReported sales growth percentage and number of products on sale.
Sales channelsself_promotion_revenue, affiliate_revenue, shopping_mall_revenueReported sales attributed to self-promotion, affiliates, and the shopping mall.
  • Compare leading US shops over last7Day and shortlist shops for further research using rank, GMV, and sales volume.
    • Prompt example: “I am researching TikTok marketplace data. Could you compare leading US shops over last7Day and shortlist shops for further research using rank, GMV, and sales volume? Show the returned values behind the comparison, and mark missing data.”
  • Filter to a category and compare the transaction amounts reported for shops in that category.
    • Prompt example: “I am researching TikTok marketplace data. Could you filter to a category and compare the transaction amounts reported for shops in that category? Show the returned values behind the comparison, and mark missing data.”
  • Compare brand and retailer shops, then examine their reported growth and product counts.
    • Prompt example: “I am researching TikTok marketplace data. Could you compare brand and retailer shops, then examine their reported growth and product counts? Show the returned values behind the comparison, and mark missing data.”
  • Look at the reported mix of self-promotion, affiliate, and mall revenue when researching how ranked shops generate sales.
    • Prompt example: “I am researching TikTok marketplace data. Could you look at the reported mix of self-promotion, affiliate, and mall revenue when researching how ranked shops generate sales? Show the relevant returned evidence and tell me what input you need from me.”

These fields are documented as optional. The supplied response example contains no shop records, so it does not establish that every field is present in every result.

Related APIs