TikTok trends in a niche this week
get_tiktok_niche_trendsUse this when someone asks what is trending or working in a TikTok niche this week, or wants ideas based on what a niche is posting now. Input: a niche or topic in plain words (for example skincare, gym, TikTok Shop finds, personal finance). Returns the stored public posts with the most views from the last 7 days (14 or 30 days, or the wider niche, when there are too few; it says which), each with its opening line, caption, hashtags, views, date and TikTok link, plus counts of the hashtags and opening styles they share. It reads a stored sample that is refreshed weekly: it looks nothing up on TikTok, is not TikTok’s own trending list, and does not predict or promise views.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_tiktok_niche_trends"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| niche | No | The niche, sub-niche or topic in plain words, for example skincare, gym, TikTok Shop finds or personal finance. Text. | |
| username | No | Optional. A public TikTok username, used only when no niche is given and that account was already read in the last 24 hours: the niche is then taken from its captions. Nothing is looked up on TikTok. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | The matching page on inayaflow.ai. | |
| niche | No | The niche the request was matched to. level sub_niche = a narrow topic; niche = the whole wider niche. | |
| notes | No | ||
| limits | No | ||
| status | Yes | ok, or the plain reason there is no result (not_found, private, no_videos, videos_unavailable, not_enough_videos, invalid_input, unknown_niche, niche_needed, no_data, rate_limited, paused, off, busy, unavailable). | |
| message | Yes | One or two plain sentences that say what was found or what went wrong. | |
| patterns | No | Counted across the stored posts of the window (up to 60): hashtags used by 2 or more posts, how the opening lines start, and first words that repeat. Counts only, nothing is judged. | |
| top_posts | No | The stored public posts with the most views in the window, highest first, one per creator (up to 5). | |
| window_days | No | 7, 14 or 30: how far back the posts go. The shortest window with enough stored posts is used. | |
| window_note | No | Which window was used and why. Say this to the person. | |
| matched_from | No | ||
| last_collected | No | The day the newest of these posts was stored. |