How to sample TikTok's For You feed by country
Sample TikTok's For You feed for one country and turn the returned videos into a table of captions, engagement, sounds, and hashtags
On this page
You have one weekly content meeting and need one TikTok For You sample for the US to see which captions, sounds, and engagement patterns are reaching viewers there. Use anyapi.tiktok.trending_feed to pull that sample, then turn the returned videos into a table you can scan before the meeting. No run has been executed for this guide, so the table below is a design, not a result
The sample and the table design
The contract describes the tool as a sample of TikTok's For You feed as served to a viewer in one country. It returns a rotating sample, not a ranked chart. Keep that in the table title so nobody reads the rows as a leaderboard
The deliverable is one row per returned video. Columns: caption, author, views, likes, comments, shares, createdUtc, soundTitle, hashtags, region, url, and a relevance note you add
Example table shape. Values here are placeholders showing the shape
| caption | author | views | likes | comments | shares | createdUtc | soundTitle | hashtags | region | url | relevance note |
|---|---|---|---|---|---|---|---|---|---|---|---|
| (caption text) | (author) | (number) | (number) | (number) | (number) | (number) | (sound title) | (tag list) | US | (video url) | (your note) |
The relevance note is not a tool field. Use it to mark a caption hook or sound choice you want to discuss against the three content themes you plan to test next week. For more on hashtag use, the companion article on trending hashtags on TikTok sits alongside this guide
Run one country sample
anyapi.tiktok.trending_feed is called through POST /v1/runs with toolId anyapi.tiktok.trending_feed. The documented input includes region, a required 2-letter country code for the proxy location, and trim, an optional field set to true to request the simplified response
Example input: region: US. Replace US with the country you need. For two countries, make one call per country and keep region with each row so the samples stay separate
The limit sits next to this step. The feed is a rotating sample, not a ranked chart, so do not treat one call as a trending leaderboard. A sample shows what this proxy location served during the call. It cannot tell you the rank of a video across TikTok
Read the output fields that drive the decision
Start with found. When found is true, data.videos holds the returned videos. When found is false, reason is present only when found is false and says not_found when the source states the target does not exist or returned nothing for it. A found: false answer is a successful call, not an error
Each video row carries caption, author, views, likes, comments, shares, createdUtc, soundTitle, hashtags, region and url. Use caption and soundTitle to mark recurring hooks and sound choices. Use views, likes, comments and shares as engagement context for the same row
createdUtc is a UTC epoch timestamp in seconds. Multiply by 1000 for a JS Date in milliseconds. soundTitle with the value "original sound" means the creator's own audio rather than a licensed track. hashtags carries hashtags from the caption without the # at the start, leaves the array empty when the post uses none, and excludes @-mentions
The relevance note is where you connect a row to the meeting decision: keep, drop or test a theme. The sample cannot say which theme will work. It gives you captions, sounds and engagement numbers to review by hand
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to sample TikTok's For You feed for one country. Check the current inputs and price of anyapi.tiktok.trending_feed before running anything. Use region US and make one call. Return a table with caption, author, views, likes, comments, shares, createdUtc, soundTitle, hashtags, region, url, and a blank relevance note. If found is false, return one row noting reason not_found and do not invent videos.Replace US with your country if the meeting covers another market. Keep the first run to one call so you can inspect the table shape before a two-country run
Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. The tool is listed as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One-country sample | calls x max price | $0.0012 per call | 1 | $0.0012 |
| Two-country sample | calls x max price | $0.0012 per call | 2 | $0.0024 |
The one-country sample is one call at up to $0.0012. The two-country sample is two calls at up to $0.0024. Agent model fees are not counted
Next action
Run the sample for your country from the TikTok trending feed tool
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with TikTok.FAQ
How do I sample TikTok's For You feed for a country?
Call anyapi.tiktok.trending_feed with a required region such as US. The response returns a rotating sample of videos for that proxy location, not a ranked chart.
What input does anyapi.tiktok.trending_feed take?
The documented input includes region, a 2-letter country code for the proxy location, and trim, an optional field set to true to request the simplified response.
What do I get back from a For You feed sample?
The output contains found plus data.videos. Each video includes caption, author, views, likes, comments, shares, createdUtc, soundTitle, hashtags, region and url.
What happens when the feed sample returns found false?
A found false answer is a successful call, not an error. reason is present only when found is false and says not_found when the source states the target does not exist or returned nothing.
Can I treat this feed sample as a trending leaderboard?
No. The contract describes a rotating sample, not a ranked chart, so the rows should not be read as a trending leaderboard.
How much does a one-country or two-country feed sample cost?
At the listed max_call price of $0.0012 per call, one country is at most $0.0012 and two countries are at most $0.0024. Successful runs settle at the actual AnyAPI charge, and agent model fees are not counted.
Next step
Try this with TikTok
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.