How to Use TikTok music charts in opencode
Returns TikTok music chart entries, including song information and ranking changes. Use it to build a sound shortlist or compare chart movement, with up to 50 entries per call.
Prompts to try with TikTok music charts in opencode
Copy an example into opencode, or ask in your own words.
Use TikTok music charts to retrieve up to 50 chart entries and build a table of returned song information and ranking changes in our project.
Use TikTok music charts to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from TikTok music charts and tell me what changed since last week.
Check TikTok music charts and summarize what you find in three bullet points.
Pull the newest data from TikTok music charts and give me the result as a table.
How to set up TikTok music charts 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 music charts
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-app-v3-fetch-music-chart-list", "input": { "count": 50 } }'
Then paste one of the prompts above: opencode finds TikTok music charts on Spiral, shows the price and runs it.
TikTok music charts providers and prices
Spiral runs TikTok music charts 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 |
|---|---|---|---|
| Count | a whole number | 50 | Number per page (max 50) |
| Scene | a whole number | 0 | Chart type (0: Top 50, 1: Viral 50) |
| Cursor | a whole number | 0 | Pagination cursor |
Every API field of TikTok App · Music Chart List is on its tool page: open its card above.
What can you do with TikTok music charts in opencode?
Build a TikTok research report in your project from retrieved discovery or broadcast data. Give recommended videos, places, sounds, live rankings, and merchandise their own views so reviewers can inspect the evidence behind each finding.
Prepare a local video brief
Collect home feed examples, look up the campaign's city or venue, and review music charts plus individual sound details. Turn the findings into a brief with separate sections for creative references, place matches, and sound research.
Assemble an agency research digest
Create a daily internal digest covering recommended videos, matching places, music discoveries, public business broadcasts, leaderboard results, and available merchandise. Keep audience rankings aggregated and label legacy product results as potentially incomplete or stale.
Draft an internal market bulletin
Combine recommended video examples, place matches, music chart movement, sound details, and live search results. Add broadcast leaderboard observations as a separate section so editors can choose which findings deserve further reporting.
Research an event sponsorship concept
Look up the event venue, collect recommended video references, and investigate chart sounds. Review relevant public business broadcasts and leaderboard observations, using only aggregate audience ranking counts in the sponsorship brief.
More on TikTok music charts and opencode
Overview
TikTok music charts in other agents
Questions about TikTok music charts in opencode
Can opencode use TikTok music charts?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run TikTok music charts like any built-in tool.
How much does TikTok music charts 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 music charts in opencode?
No. Spiral runs TikTok music charts 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 music charts in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while TikTok music charts runs?
TikTok music charts runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Can this retrieve private TikTok content?
TikHub describes its TikTok data as publicly available content. It excludes private accounts, direct messages, and non-public analytics.
How fresh is the TikTok data?
TikHub says requests retrieve fresh data. Its guidance makes an exception for legacy commerce routes under the app API, which may return incomplete or stale results.
Does a short page mean there are no more results?
No. TikHub says paginated endpoints frequently return fewer items than requested, so a short page alone does not establish that every matching result was retrieved.
Does TikHub guarantee accurate and complete TikTok data?
No. TikHub's terms explicitly decline to warrant that returned data is accurate, complete, or current.
What use does TikHub's service license permit?
TikHub licenses its service for lawful internal business purposes, subject to its terms.
Start using TikTok music charts 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


