Metric diagnosis
Returns TikTok’s diagnosis of one Shop Performance Score metric: its value, score, status and benchmarks, a daily trend, the calculation behind it (numerator and denominator with labels), how its problem cases split in distribution, and TikTok’s diagnostic text in analyses (empty when TikTok has none).
metricCode is case-insensitive. Current codes are NRR (negative review rate), NBFR (non-buyer-fault return and refund rate), SFCR (seller-fault cancellation rate), OTDR (on-time delivery rate), AHT (after-sales handling time) and IM_DSAT (chat dissatisfaction rate). TikTok may add more. trend_duration_days sets the trend length, 1 to 365, default 30. US shops only. Read live from TikTok.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
SPS metric code, case-insensitive. TikTok's codes today: NRR (negative review rate), NBFR (non-buyer-fault return and refund rate), SFCR (seller-fault cancellation rate), OTDR (on-time delivery rate), AHT (after-sales handling time), IM_DSAT (chat dissatisfaction rate). TikTok says the list may grow, so other code-shaped values pass through.
^[A-Za-z][A-Za-z0-9_]{1,31}$"NRR"
Query Parameters
Passed to TikTok to localize names and texts. Absent = TikTok picks the default.
^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$"en-US"
Days of trend to return. Absent = TikTok's default, 30. TikTok documents no maximum; the 365 cap only keeps junk out.
1 <= x <= 365Use the TikTok Shop of this child brand (organization id) of your API key's organization
Response
The metric diagnosis
0 to 5, TikTok's decimal string.
EXCELLENT | GOOD | POOR | CRITICAL | NIL. NIL means this metric has not enough data to be scored; it is not a zero score.
TikTok's decimal string, in valueUnit.
PERCENT or HOURS.
TikTok's own tier thresholds for this metric, in the same unit as value. Higher is better for OTDR, lower is better for the others.