# How do I get all videos under a TikTok hashtag?

With the TikTok-Api Python library, `api.hashtag(name=...).videos()` started returning nothing in July 2025 (issue 1248, 11 comments, headless or not), and the official Research API only serves approved researchers. XTikAPI's `tiktok.hashtag_videos.list` returns a page of a hashtag's videos by its challenge ID (`ch_id`), paging with `cursor`, $0.002 a page; `tiktok.trends.hashtags` lists trending hashtags by country.

Updated 2026-11-21

## Where the usual routes fail

| Route | What happens |
| --- | --- |
| TikTok-Api `hashtag().videos()` | Empty output since July 2025 (issue 1248); changing proxy let the page open but still no videos |
| TikTok-Api with several hashtags | Not supported, a feature request since 2024 (issue 1117) |
| Research API | Query videos by hashtag, but only for approved research projects |
| Searching the hashtag as a keyword (`tiktok.videos.search`) | Works, but mixes in videos that only mention the word |

## With XTikAPI

1. `ch_id` is the numeric ID TikTok gives the hashtag; trending hashtags from `tiktok.trends.hashtags` come back with their `id`.
2. `tiktok.hashtag_videos.list` with `ch_id`, `limit`, `region`; pass back `cursor`.
3. `tiktok.trends.hashtags` with `country_code` and `time_range` for what's rising.

Cost: 20 hashtags × 10 pages = 200 calls × $0.002 = $0.40.

## Why XTikAPI

- XTikAPI reads TikTok with 24 endpoints from $0.002 a call, and a failed call is not charged.
- Fewer tokens for AI: across 14 recorded live TikTok calls (2026-11-18), raw platform JSON is ~1.21M tokens vs ~35k via XTikAPI REST (97.1% fewer) and ~35k via MCP (97.1% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (22 of 24 for TikTok).
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [TikTok hashtag videos API](https://xtikapi.com/apis/tiktok/hashtag_videos/list) ($0.002 a call): TikTok videos under a hashtag ID.
- [TikTok trending hashtags API](https://xtikapi.com/apis/tiktok/trends/hashtags) ($0.002 a call): Trending TikTok hashtags by region, from Creative Center.
- [TikTok video search API](https://xtikapi.com/apis/tiktok/videos/search) ($0.002 a call): Search TikTok videos by keyword.

## More about TikTok

- [TikTok API](https://xtikapi.com/apis/tiktok)
- [TikTok-Api errors (EmptyResponseException, 200 empty body, Captcha, statusCode): how do I fix them?](https://xtikapi.com/answers/tiktok-api-errors-and-fixes)
- [Can the TikTok Display API read other users' videos?](https://xtikapi.com/answers/tiktok-display-api-other-users)
- [Can I use the TikTok Research API for commercial work?](https://xtikapi.com/answers/tiktok-research-api-commercial-use)
- [f2 TikTok user posts return status 200 with an empty response: why?](https://xtikapi.com/answers/f2-tiktok-user-post-empty)
- [Why does the Douyin video URL I parsed return 403 Forbidden?](https://xtikapi.com/answers/douyin-video-url-403-forbidden)

## How to do it

- [How to get TikTok video comments with Python](https://xtikapi.com/guides/tiktok-video-comments-python)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-21.

- [TikTok-Api issue #1248 (can't get videos in a hashtag)](https://github.com/davidteather/TikTok-Api/issues/1248)
- [TikTok-Api issue #1117 (multiple hashtags)](https://github.com/davidteather/TikTok-Api/issues/1117)
- [TikTok for Developers: Research API, query videos](https://developers.tiktok.com/doc/research-api-specs-query-videos)

## Questions

### Can I get every video ever posted under a big hashtag?

Large hashtags have millions of videos; in practice you page through recent and popular ones and repeat on a schedule.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/tiktok-hashtag-videos-api) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
