How to Use TikTok trending video details in opencode
Returns a ranked video's metrics, author profile, content labels, and top comments. Use it to investigate a selected video's appeal after finding it in Creative Center's Top Contents ranking.
Prompts to try with TikTok trending video details in opencode
Copy an example into opencode, or ask in your own words.
Scrape https://example.com/pricing with TikTok trending video details and turn it into a comparison table. Save the result in ./assets.
Crawl the docs at https://docs.example.com with TikTok trending video details and summarize each section.
Pull the latest posts from this blog with TikTok trending video details and list their titles and dates.
Scrape the job listings at https://example.com/careers with TikTok trending video details and give me a CSV.
Scrape the changelog at https://example.com/changelog with TikTok trending video details and list this month's changes.
How to set up TikTok trending video details in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run TikTok trending video details
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "tikhub", "model": "tikhub/tiktok-ads-get-top-contents-item-detail", "input": { "item_id": "<item_id>", "period_end_timestamp": 1785024000 } }'
Then paste one of the prompts above: opencode finds TikTok trending video details on Spiral, shows the price and runs it.
TikTok trending video details providers and prices
Spiral runs TikTok trending video details through TikHub. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Period end timestamp | a whole number | The caller must generate this 10-digit Unix timestamp in seconds from the target ranking date, for example 1785024000; do not pass 0 because it returns an empty result | |
| Period dimension | a whole number | 3 | 3/5 /Period dimension |
Every API field of TikTok Ads · Get top contents item detail is on its tool page: open its card above.
What can you do with TikTok trending video details in opencode?
Build a creative review panel that puts TikTok references beside retention findings and industry comparisons. A coding agent can turn returned data into project tables and charts while preserving the distinction between ads, ranked videos, and creator cards.
Prepare a seasonal campaign brief
Expand product vocabulary with search suggestions, collect featured and similar ads, and inspect their offers and performance. Add ranked video examples and creator context, then use retention timelines, keyframes, and percentiles to explain which references deserve an editor's attention.
Review competitors' creative references
Use search phrases, featured cases, and similar ads to build a review shortlist. Examine brand offers, peer comparisons, and attention patterns, then compare those references with ranked videos, top comments, and public creator performance.
Build an editor's reference library
Organize ad examples by offer and industry, supported by suggested search phrases and related creatives. Include engagement timelines, keyframe findings, and percentile comparisons alongside ranked videos, audience reactions, and creator context.
Compare paid creative with trending content
Study ranked videos, comments, and creator performance alongside featured and recommended ads. Use search suggestions to broaden the subject, ad details to identify offers, and performance analyses to choose questions for the next creative test.
Assess creators behind ranked videos
Start with ranked videos, inspect their metrics and top comments, and review the associated public creator cards. Compare audience profiles, follower growth, and recent posts when preparing a campaign shortlist.
More on TikTok trending video details and opencode
Overview
TikTok trending video details in other agents
Questions about TikTok trending video details in opencode
Can opencode use TikTok trending video details?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run TikTok trending video details like any built-in tool.
How much does TikTok trending video details cost in opencode?
$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a TikHub account to use TikTok trending video details in opencode?
No. Spiral runs TikTok trending video details on its own TikHub account. You sign in to Spiral once and never paste a key.
How long does it take to set up TikTok trending video details in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while TikTok trending video details runs?
TikTok trending video details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does Creative Center cover every TikTok ad and video?
No. TikHub describes the dataset as a selection of popular records and explicitly warns that it may be incomplete.
What do the ad analysis tools measure?
They examine different aspects of creative performance: keyframe analysis identifies retention and drop-off moments, engagement timelines summarize attention over time, and percentiles compare an ad with industry peers.
What extra context is available beyond the video itself?
Ad details include the brand, landing page, target countries, and engagement data. For ranked videos, the detail response adds top comments and author information.
Do search suggestions show keyword search volume?
The documented response is a list of suggested phrases. It does not document a search-volume series, so suggestions are useful for expanding research rather than measuring demand.
Can Creative Center help assess public creators?
Creator cards document audience profiles, follower growth, overall performance, and recent posts. These provide context about creators behind ranked videos.
Start using TikTok trending video details in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


