API DocstiktokDataGet live daily rank data
Get live daily rank data
What this API is for
- Get live daily rank data
GET
/openapi/api/v1/tiktok/app/v3/fetch_live_daily_rankPrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- anchor_id: Anchor id, which can be obtained from the live room information interface, use the default value, this parameter will affect the returned data, you can try different anchor ids of different live rooms.
- room_id: Live room id, which can be obtained from the live room information interface, use the default value, this parameter will affect the returned data, you can try different room ids of different live rooms.
- rank_type: Rank type, parameter values are as follows:
- | type | rankName | Group Type | Description |
- |------|----------|------------|-------------|
- | 0 | hourly_rank | GIFT_RANK | Hourly Rank |
- | 1 | weekly_rank | GIFT_RANK | Weekly Rank |
- | 5 | rookie_star_rank | GIFT_RANK | Rookie Star Rank |
- | 6 | sale_rank | E_COMMERCE | Sale Rank |
- | 8 | daily_rank | GIFT_RANK | Daily Rank |
- | 10 | weekly_game_rank | GAME_RANK | Weekly Game Rank |
- | 11 | daily_game_rank | GAME_RANK | Daily Game Rank |
- | 12 | hall_of_fame_rank | GIFT_RANK | Hall of Fame Rank |
- | 13 | champion_tournament | GIFT_RANK | Champion Tournament (includes phase_one/two/three) |
- | 14 | daily_rookie_star_rank | GIFT_RANK | Daily Rookie Star Rank |
- | 15 | fans_team_rank | GIFT_RANK | Fans Team Rank |
- | 16 | ranking_league | GIFT_RANK | Ranking League (App display: D5 Level Rank) |
- | 20 | pubg | GAME_RANK | PUBG Rank |
- | 21 | mlbb | GAME_RANK | MLBB Rank (Mobile Legends: Bang Bang) |
- | 22 | free_fire | GAME_RANK | Free Fire Rank |
- | 23 | sub_weekly_game_rank1 | GAME_RANK | Sub Weekly Game Rank 1 |
- | 24 | sub_weekly_game_rank2 | GAME_RANK | Sub Weekly Game Rank 2 |
- | 25 | sub_weekly_game_rank3 | GAME_RANK | Sub Weekly Game Rank 3 |
- | 26 | collectibles | E_COMMERCE | Collectibles Rank |
- | 27 | beauty | E_COMMERCE | Beauty Rank |
- | 28 | women_wear | E_COMMERCE | Women Wear Rank |
- | 29 | sale_rank_daily | E_COMMERCE | Daily Sale Rank |
- | 1001 | league_campaign_rank | GIFT_RANK | League Campaign Rank |
- | -1 | unknown | DEFAULT | Unknown |
- region_type: Region type, use the default value, the specific meaning is unknown.
- gap_interval: Time interval, use the default value to represent the current day, use -1 to represent the ranking record.
- cookie: User's own cookie, optional parameter, used when the interface is not available.
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| anchor_id | query / string | No |
| |
| room_id | query / string | No |
| |
| rank_type | query / integer | No |
| |
| region_type | query / integer | No |
| |
| gap_interval | query / integer | No |
| |
| cookie | query / string | No |
|
Request examples
curl -X GET "https://api.trmesh.com/openapi/api/v1/tiktok/app/v3/fetch_live_daily_rank" \ -H "Authorization: Bearer sdc_your_project_token" \ -H "Accept: application/json"
Response fields
- Live daily rank data
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples