# TikTok Trending hashtags API (tiktok.trending_hashtags)

- Canonical page: https://everyinfra.com/en/tiktok-api/trending_hashtags
- Endpoint: POST /api/v1/social with {"platform": "tiktok", "action": "trending_hashtags", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of 20 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=tiktok&action=trending_hashtags

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| country | not declared | no | not declared | The market whose trends you want, default US: AE, AR, AU, BR, CA, CO, DE, EG, ES, FR, GB, ID, IL, IT, JP, KR, MX, MY, PH, SA, SG, TH, TR, TW, US, VN or ZA. Other markets have no list and are declined before you are charged. |
| industry | enum: apparel / appliances / apps / baby / beauty / business_services / education / finance / food / games / health / home_improvement / household / life_services / news_entertainment / pets / sports / tech / travel / vehicles | no | not declared | Keep `trending_hashtags` to one industry, such as `beauty`, `games` or `food`; leave it out for all industries. |
| page_token | not declared | no | not declared | Page token for TikTok list actions such as `hashtag_search`, `user_search`, `following` and `shop_products`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged; the last page has none. |
| time_window | enum: 30d / 7d / 90d | no | not declared | The period `trending_hashtags` ranks over: `7d` (default), `30d` or `90d`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | platform-native meaning |
| hashtag_id | platform-native meaning |
| hashtag_name | platform-native meaning |
| url | Link to the record on the platform. |
| video_count | platform-native meaning |
| view_count | Views or plays. null means not disclosed, not 0. |
| trend | platform-native meaning |
| next_page_token | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "tiktok",
  "action": "trending_hashtags",
  "params": {}
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "tiktok",
        "action": "trending_hashtags",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "trending_hashtags",
  "results": [
    {
      "rank": …,
      "hashtag_id": …,
      "hashtag_name": …,
      "url": …,
      "video_count": …,
      "view_count": …,
      "trend": …,
      "next_page_token": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
