How to Use TikTok keyword search in VS Code
Returns comprehensive TikTok search results for a keyword. Use it to investigate a brand, product, or subject before narrowing the research to hashtags or search insights.
Prompts to try with TikTok keyword search in VS Code
Copy an example into VS Code, or ask in your own words.
Use TikTok keyword search for 'LEGO flowers' and add a table of the returned results to this project's research report.
Use TikTok keyword search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from TikTok keyword search and tell me what changed since last week.
Check TikTok keyword search and summarize what you find in three bullet points.
Pull the newest data from TikTok keyword search and give me the result as a table.
How to set up TikTok keyword search in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code 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 keyword search
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-general-search-result", "input": { "keyword": "中华娘" } }'
Then paste one of the prompts above: VS Code finds TikTok keyword search on Spiral, shows the price and runs it.
TikTok keyword search providers and prices
Spiral runs TikTok keyword search through TikHub. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Count | a whole number | 20 | Number |
| Offset | a whole number | 0 | Offset |
| Sort type | a whole number | 0 | Sort type |
| Publish time | a whole number | 0 | Publish time |
Every API field of TikTok App · Get comprehensive search results of specified keywords is on its tool page: open its card above.
What can you do with TikTok keyword search in VS Code?
Build a TikTok research report in your project from retrieved search results, topic insights, or hashtag data. Your coding agent can turn the returned records into tables and translate supplied text for an editorial review.
Prepare a multilingual product launch brief
Research a product category through keyword results, matching hashtags, hashtag details, and hashtag videos. Add search topics, their statistics, regional trends, and related videos; review public shopping creator information and translate selected text for the launch team.
Build an editorial calendar for a retail category
Use search insights, topic statistics, and regional trends to propose subjects. Ground each proposal in keyword results, hashtag research, and related video examples; add potential shopping collaborators and translations of relevant text.
Plan a seasonal retail campaign
Compare seasonal search topics using their statistics, geographic interest, and related videos. Combine keyword and hashtag research with public shopping creator information, then translate selected phrases for a campaign planning brief.
Write a creator partnership brief
Combine a public shopping creator's storefront and audience counts with category keyword results and hashtag details and videos. Use search insights, topic statistics, regional trends, and related videos to suggest subjects, translating selected text for collaborators.
Research a branded hashtag
Search for a campaign phrase, inspect the matching hashtag's details, and collect associated videos for a campaign review.
Prepare a bilingual research digest
Collect keyword and hashtag video results for a category, then translate selected supplied text into the editorial team's working language.
More on TikTok keyword search and VS Code
Overview
TikTok keyword search in other agents
Questions about TikTok keyword search in VS Code
Can VS Code use TikTok keyword search?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run TikTok keyword search like any built-in tool.
How much does TikTok keyword search cost in VS Code?
$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need a TikHub account to use TikTok keyword search in VS Code?
No. Spiral runs TikTok keyword search 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 keyword search in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while TikTok keyword search runs?
TikTok keyword search runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Does TikHub return private TikTok content?
TikHub's privacy policy says it does not access or store private, restricted, or password-protected platform content. Public availability is the access boundary.
How fresh is TikHub's data?
TikHub describes repeat requests as fresh, real-time retrievals. Its terms still disclaim guarantees that the returned data is current.
Does TikHub guarantee complete or accurate results?
No. TikHub's terms explicitly disclaim guarantees that retrieved data is accurate, complete, or current.
Can retrieved TikTok content be reused freely?
TikHub's terms say retrieved content may carry third-party intellectual property rights. Retrieval does not establish permission to republish a creator's work.
Does TikHub document every returned data field?
No. TikHub says its responses vary by platform and its documentation describes endpoints and parameters rather than every payload key.
Start using TikTok keyword search in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


