Skip to content

Get SPS Metric Top Items

GET
/analytics/202606/shop_performances/metrics/{metric_code}/top_items

Returns the top products for NRR, NBFR, or AHT, or the top logistics providers for OTDR. Shop Performance Score (SPS) reflects a shop’s performance across key operational and service metrics on TikTok Shop. By integrating the read-only SPS APIs, ISVs can retrieve a shop’s score, tier, benefits, and metric benchmarks, diagnose performance gaps, and drill down to the products, logistics providers, aftersales types, orders, or chats associated with specific issues. This enables ISVs to embed actionable performance insights into their solutions, helping merchants identify problem areas faster and take targeted actions to improve shop performance. Available only for US-region shops. Use case guide: Click here

metric_code
required
string

Metric code that selects the returned top-items list:

  • NRR: products with negative reviews (nrr_top_product_items).
  • NBFR: products with returns or refunds (nbfr_top_product_items).
  • OTDR: logistics providers and their on-time delivery performance (otdr_logistics_items).
  • AHT: products and their aftersales handling details (aht_aftersales_type_items).
shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

locale
string

BCP 47 locale code used to localize response text. If omitted, the default locale is resolved from the request context.

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
aht_aftersales_type_items

Top product items for AHT, with fields for average handle duration and the top aftersales type.

Array<object>
object
handle_duration_hours

Average handle duration in hours.

string
product_id

Product ID.

string
product_name

Product name.

string
return_order_count

Total number of return orders.

integer format: int64
top_aftersales_type_name

Top aftersales type returned by TikTok Shop aftersales classification.

string
top_type_order_count

Number of orders associated with the top aftersales type.

integer format: int64
image_url

Product image URL.

string
metric_code

Stable metric code selected in the request. One of: NRR, NBFR, OTDR, or AHT.

string
nbfr_top_product_items

NBFR top product items.

Array<object>
object
product_id

Product ID.

string
product_name

Product name.

string
return_order_count

Number of return or refund orders.

integer format: int64
top_reason_order_count

Number of orders associated with the top return or refund reason.

integer format: int64
top_return_reasons

Top return or refund reasons.

Array<string>
image_url

Product image URL.

string
nrr_top_product_items

NRR top product items.

Array<object>
object
delivered_order_count

Total number of delivered orders.

integer format: int64
image_url

Product image URL.

string
negative_order_count

Number of orders with negative reviews.

integer format: int64
product_id

Product ID.

string
product_name

Product name.

string
top_review_reasons

Top negative review reasons.

Array<string>
otdr_logistics_items

OTDR logistics provider items.

Array<object>
object
delivered_order_count

Total number of delivered orders.

integer format: int64
logistics_provider

Logistics provider name.

string
on_time_deliver_order_count

Number of orders delivered on time.

integer format: int64
on_time_deliver_rate

On-time delivery rate as a ratio from 0 to 1.

string
total_count

Number of items in the metric-specific list returned by this response.

integer format: int64
Example
{
"code": 0,
"data": {
"aht_aftersales_type_items": [
{
"handle_duration_hours": "18.5",
"product_id": "1729592969712207011",
"product_name": "Smart Watch",
"return_order_count": 30,
"top_aftersales_type_name": "Only Refund",
"top_type_order_count": 20,
"image_url": "https://example.com/product.jpg"
}
],
"metric_code": "NRR",
"nbfr_top_product_items": [
{
"product_id": "1729592969712207010",
"product_name": "Cotton T-Shirt",
"return_order_count": 8,
"top_reason_order_count": 5,
"top_return_reasons": [
"Item doesn't match description"
],
"image_url": "https://example.com/product.jpg"
}
],
"nrr_top_product_items": [
{
"delivered_order_count": 300,
"image_url": "https://example.com/product.jpg",
"negative_order_count": 12,
"product_id": "1729592969712207008",
"product_name": "Wireless Headphones",
"top_review_reasons": [
"Item doesn't match description"
]
}
],
"otdr_logistics_items": [
{
"delivered_order_count": 1000,
"logistics_provider": "TikTok Shipping",
"on_time_deliver_order_count": 947,
"on_time_deliver_rate": "0.947"
}
],
"total_count": 120
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}