How to Use TikTok account country in opencode
Returns a TikTok account's country, username, and account identifiers. Use it to add country context to a public brand or creator account.
Prompts to try with TikTok account country in opencode
Copy an example into opencode, or ask in your own words.
Use TikTok account country for @duolingo and add the returned country and account identifiers to the project's brand research fixture.
Use TikTok account country to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from TikTok account country and tell me what changed since last week.
Check TikTok account country and summarize what you find in three bullet points.
Pull the newest data from TikTok account country and give me the result as a table.
How to set up TikTok account country 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 account country
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-user-country-by-username", "input": { "username": "tiktok" } }'
Then paste one of the prompts above: opencode finds TikTok account country on Spiral, shows the price and runs it.
TikTok account country providers and prices
Spiral runs TikTok account country through TikHub. Open a card for today's price, with every fee included.
What can you do with TikTok account country in opencode?
Build a brand research view that keeps TikTok country, content, and public account connections in separate sections. A coding agent can turn retrieved records into project data and add pagination for longer lists.
Prepare a brand account brief
Build a brief for a public brand such as Duolingo: find candidate accounts, add account country, inventory posts and music, and separate reposts from visible likes. Review only public business and creator accounts in follower and following results.
Compare public brand activity
Compare Red Bull and GoPro using the same research scope: account discovery, country, published videos, music lists, reposts, visible likes, and connections to public organizations. Keep each activity separate so the comparison shows what each brand publishes and selects.
Research a potential content collaboration
Prepare questions for a collaboration with a public artist or business. Review account country, published work, music, reposts, visible likes, and public creator or business connections; use account search to investigate additional candidates.
Maintain a weekly brand research digest
Compare scheduled retrievals for a fixed list of public brands. Report changes in account discovery, country, published videos, music, reposts, visible likes, and connections to public organizations, with separate sections for each type of evidence.
Find public business accounts to review
Search for organizations such as museums or outdoor brands, then expand the review through public business accounts in follower and following results. Add account country to the resulting research list.
More on TikTok account country and opencode
Overview
TikTok account country in other agents
Questions about TikTok account country in opencode
Can opencode use TikTok account country?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run TikTok account country like any built-in tool.
How much does TikTok account country 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 account country in opencode?
No. Spiral runs TikTok account country 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 account country in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while TikTok account country runs?
TikTok account country runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
How fresh is the TikTok data?
TikHub describes each API request as fetching fresh, real-time data, including repeated requests with identical inputs.
Can deleted or private TikTok content be retrieved?
TikHub says TikTok content that has been deleted or made private returns a 400 response.
How many TikTok followers can one page contain?
The follower list documentation caps the requested page size at 20 and says to keep it fixed while paging.
Does data access include ownership or unrestricted reuse?
TikHub says it does not own the underlying data. Users remain responsible for how retrieved data is used, stored, and processed.
Start using TikTok account country 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


