快工助手跨境电商知识与商机助手

Get SPS Metric Diagnosis

TikTok Shop 官方资料 · TikTok Shop Partner Center 开发者文档 · 适合开发者

stable本次发布有变化全部展示

来自 TikTok Shop 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
TikTok Shop / profile.tiktok.docs_api
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/tiktok_shopaudience/developercategory/api_doctopic/compliancetopic/developer

资料正文

§1 Path: /analytics/202606/shop_performances/metrics/{metric_code}/diagnosis

#

§2 Method: [GET]

#

§3 Function Description

Returns diagnosis details for a single SPS metric, including benchmark thresholds, trends, calculation details, and distribution details. 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


#

§4 Common Parameters

For common parameters, refer to How to call TikTok Shop APIs - Common Parameters

Properties Location Type Require Sample Properties description
shop_cipherquerystringYGCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3Use this property to pass shop information in requesting the API. Failure in passing the correct value when requesting the API for cross-border shops will return incorrect response.
Get by API Get Authorization Shop
content-typeheaderstringYapplication/jsonAllowed type: application/json
#

§5 Request Path Parameters

Properties Type Require Sample Properties description
metric_codestringYOTDRMetric code. Possible values include NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.
#

§6 Request Query Parameters

Properties Type Require Sample Properties description
localestringNen-USLocale code used to localize response text. If omitted, the default locale is resolved from the request context.
trend_duration_daysintN30Number of days to look back for metric trend data. Default value is 30.
#

§7 Request Sample

Query

https://open-api.tiktokglobalshop.com/analytics/202606/shop_performances/metrics/OTDR/diagnosis?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&locale=en-US&trend_duration_days=30
#

§8 Response Parameters

Properties Type Sample Properties description
codeint0The success or failure status code returned in API response.
messagestringSuccessThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstring202203070749000101890810281E8C70B7Request log
dataobjectSpecific return information
^benchmarksobjectBenchmark thresholds for this metric.
^^excellent_thresholdstring0.98Excellent tier threshold.
^^poor_thresholdstring0.80Poor tier threshold.
^calculation_ruleobjectCalculation details used to derive this metric.
^^denominator_labelstringDelivered ordersDenominator label.
^^denominator_valuestring1000Denominator value.
^^numerator_labelstringOn-time delivered ordersNumerator label.
^^numerator_valuestring947Numerator value.
^dimensionstringProduct satisfactionSPS dimension that the metric belongs to.
^distribution_details[]objectAdditional distribution details for the metric.
^^countint820Number of items in the distribution bucket.
^^namestringDispatch 24-48 HoursDistribution detail name.
^^percentstring82.0Percentage of items in the distribution bucket, from 0 to 100.
^evaluate_duration_daysint30Number of days included in the metric evaluation period.
^end_evaluation_timeint1761264000Metric evaluation period end time. Unix timestamp in seconds.
^start_evaluation_timeint1758672000Metric evaluation period start time. Unix timestamp in seconds.
^metric_codestringOTDRStable metric code. Possible values include NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.
^scorestring4.3Metric score, from 0 to 5.
^statusstringGOODMetric status. Possible values include EXCELLENT, GOOD, POOR, CRITICAL and NIL.
^status_textstringExcellentMetric status text. Values like Excellent, Good, Normal, Attention.
^trendobjectMetric trend over the requested lookback range.
^^data_points[]objectMetric trend data points.
^^^record_datestring20260601Trend date in yyyyMMdd format.
^^^valuestring0.947Metric value on the trend date, using the same unit as value_unit.
^valuestring0.947Metric value. Ratios are represented as values from 0 to 1; percentages are represented as values from 0 to 100.
^value_unitstringPERCENTUnit of the metric value. Possible values include PERCENT and HOURS.
^analyses[]objectDiagnostic insights for the selected metric.
^^summaries[]stringStable performance. Top 3 issues to address.Summarized causes affecting the selected metric.
^^details[]stringYour 30-day on-time delivery rate is only higher than **% of peers, which is hurting your SPS.Detailed explanations for the selected metric diagnosis.
#

§9 Response Sample

{"code":0,"data":{"benchmarks":{"excellent_threshold":"0.98","poor_threshold":"0.80"},"calculation_rule":{"denominator_label":"Delivered orders","denominator_value":"1000","numerator_label":"On-time delivered orders","numerator_value":"947"},"dimension":"Product satisfaction","distribution_details":[{"count":820,"name":"Dispatch 24-48 Hours","percent":"82.0"}],"evaluate_duration_days":30,"end_evaluation_time":1761264000,"start_evaluation_time":1758672000,"metric_code":"OTDR","score":"4.3","status":"GOOD","status_text":"Excellent","trend":{"data_points":[{"record_date":"20260601","value":"0.947"}]},"value":"0.947","value_unit":"PERCENT","analyses":[{"summaries":"Stable performance. Top 3 issues to address.","details":"Your 30-day on-time delivery rate is only higher than **% of peers, which is hurting your SPS."}]},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
#

§10 Error Code

For common error codes, refer to How to call TikTok Shop APIs - Common Error Code

Code Message
#