Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

TikTok Stream Audience Ranking List

Docs da API
https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-list

Returns the audience ranking list for a stream room based on the specified room identifier and anchor identifier. Helps inspect top viewer participation.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
2 obrigatórios · 0 opcionais

Playground

Entrada
Anchor id
Live room id
SaídaExemplo
Respostaoutputs · 738 B · 29 linhas
[
  {
    "data": {
      "data": {
        "anchor_show_contribution": true,
        "anonymous": 0,
        "bottom_notice": "Showing the top viewers in this LIVE.",
        "currency": "Coins",
        "deprecated": false,
        "display_config": {
          "avatar_count": 2,
          "can_panel_click": true,
          "show_avatar_list": true,
          "show_online_panel": true,
          "show_score": true
        },
        "preview_count": 0,
        "ranks": [],
        "rule_url": "aweme://roma_redirect/?spark_page=top_view_ranking_new&roma_url_query=show_new_score_rule%3D1",
        "sub_tabs": [],
        "total": 0
      },
      "extra": {
        "now": 1791290307794
      },
      "status_code": 0
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

TikTok Stream Audience Ranking List API

Returns the audience ranking panel for a TikTok LIVE room. You pass the room_id and the anchor_id of the host. The response holds the ranked viewer list plus display settings and notice text for the panel.

Use cases

  • Read the ranks list to see which viewers sit at the top of a LIVE room's audience ranking.
  • Check total to see how many viewers appear in the ranking for a room.
  • Read currency and show_score to see how the ranking panel presents viewer scores.
  • Poll a room during a stream to see whether the ranking list is filled or still empty.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-list" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"anchor_id": "7222941468722758702", "room_id": "7358603858249009962"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
anchor_idstringYesAnchor id
room_idstringYesLive room id

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "anchor_show_contribution": true,
    "anonymous": 0,
    "bottom_notice": "Showing the top viewers in this LIVE.",
    "currency": "Coins",
    "deprecated": false,
    "display_config": {
      "avatar_count": 2,
      "can_panel_click": true,
      "show_avatar_list": true,
      "show_online_panel": true,
      "show_score": true
    },
    "preview_count": 0,
    "ranks": [],
    "rule_url": "aweme://roma_redirect/?spark_page=top_view_ranking_new&roma_url_query=show_new_s…",
    "sub_tabs": [],
    "total": 0
  },
  "extra": {
    "now": 1793691833556
  },
  "status_code": 0
}

Response fields

FieldMeaning
data.ranks[]List of ranked viewers in the room. It is empty when no viewers are ranked, as in the sample response.
data.totalTotal number of entries in the ranking. The sample response returns 0.
data.currencyName of the currency used by the ranking, for example Coins.
data.anchor_show_contributionBoolean flag. true means the ranking is set to show viewer contributions for the anchor.
data.anonymousNumeric anonymity value for the ranking. The sample response returns 0.
data.bottom_noticeNotice text shown at the bottom of the ranking panel.
data.display_config.show_score / data.display_config.show_avatar_list / data.display_config.show_online_panelBoolean flags for what the panel shows: viewer scores, an avatar list, and the online viewer panel.
data.display_config.avatar_countNumber of avatars the panel is configured to show.
data.rule_urlIn-app link to the ranking rules page.
extra.nowTimestamp of the response as a number, in the format shown in the sample (1793691833556).

Notes

  • Both room_id and anchor_id are required. Take the room ID from a LIVE room lookup such as TikTok Broadcast Room Information.
  • Use TikTok LIVE Status to check that the room is online before you request its ranking.
  • An empty ranks list with total of 0 is a valid response with status_code 0.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.01 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON

Guias:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API TikTok Stream Audience Ranking List?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-list com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API TikTok Stream Audience Ranking List?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API TikTok Stream Audience Ranking List aceita?

Obrigatórios: anchor_id (string) e room_id (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API TikTok Stream Audience Ranking List retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor TikTok ou de uma chave de API?

Não. TikTok Stream Audience Ranking List funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok separadamente.