How to Use TikTok Search by Hashtag in Claude Code
Returns TikTok videos associated with a hashtag. Use it to examine a named topic or campaign tag, and remove duplicate posts before counting results.
Prompts to try with TikTok Search by Hashtag in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use TikTok hashtag videos for #BookTok and add a results table that removes repeated post IDs.
Scrape https://example.com/pricing with TikTok Search by Hashtag and turn it into a comparison table. Save the result in ./assets.
Crawl the docs at https://docs.example.com with TikTok Search by Hashtag and summarize each section.
Pull the latest posts from this blog with TikTok Search by Hashtag and list their titles and dates.
Scrape the job listings at https://example.com/careers with TikTok Search by Hashtag and give me a CSV.
How to set up TikTok Search by Hashtag in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude 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 Search by Hashtag
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": "scrapecreators", "model": "scrapecreators/tiktok-search-hashtag", "input": { "hashtag": "<hashtag>" } }'
Then paste one of the prompts above: Claude Code finds TikTok Search by Hashtag on Spiral, shows the price and runs it.
TikTok Search by Hashtag providers and prices
Spiral runs TikTok Search by Hashtag through ScrapeCreators. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Trim | on or off | Set to true to get a trimmed response | |
| Cursor | a number | Cursor to get more videos. Get 'cursor' from previous response. |
Every API field of TikTok · Search by Hashtag is on its tool page: open its card above.
What can you do with TikTok Search by Hashtag in Claude Code?
Build a TikTok research view that turns discovery results into a reviewable content brief. Give search suggestions, accounts, videos, and photo carousels distinct displays so the project preserves what each response represents.
Plan a coffee brand's content calendar
Use trending posts for initial ideas, autocomplete for topic wording, keyword and hashtag searches for examples, Top search for both formats, and account search for public coffee brands and creators.
Prepare a public creator collaboration brief
Find public cooking creators through account search. Use trending posts, autocomplete phrases, hashtag videos, keyword videos, and Top results to assemble examples of topics and formats for a proposed collaboration.
Research a product launch
Build a reusable water bottle launch brief from topic suggestions, product searches, relevant hashtag videos, and Top results. Add public brand accounts and relevant examples discovered in the trending feed.
Produce a weekly publishing brief
For a public museum's social team, combine trending post ideas, autocomplete wording, topic and hashtag examples, mixed-format Top results, and searches for other museum accounts.
Review a named campaign hashtag
Collect videos for #BookTok, remove repeated post IDs, and compare the resulting examples with a broader keyword search for book recommendations.
More on TikTok Search by Hashtag and Claude Code
TikTok Search by Hashtag in other agents
Questions about TikTok Search by Hashtag in Claude Code
Can Claude Code use TikTok Search by Hashtag?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run TikTok Search by Hashtag like any built-in tool.
How much does TikTok Search by Hashtag cost in Claude Code?
Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need a ScrapeCreators account to use TikTok Search by Hashtag in Claude Code?
No. Spiral runs TikTok Search by Hashtag on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.
How long does it take to set up TikTok Search by Hashtag in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while TikTok Search by Hashtag runs?
TikTok Search by Hashtag runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.
Does this data include private TikTok content?
ScrapeCreators documents public data extraction only. These discovery tools should not be used as a way to obtain private TikTok content.
How fresh is the TikTok data?
ScrapeCreators describes extraction as real time, retrieving the latest public data from the source.
Can TikTok search return the same post more than once?
Yes. The hashtag and keyword search documentation explicitly warns about duplicate results, so remove repeated post IDs before counting posts.
Does selecting a country mean every post comes from there?
No. The documented country behavior can help access country-restricted posts, but it does not filter posts by origin.
Can TikTok discovery include photo carousels?
Yes. TikTok Top search includes videos and photo carousels, while keyword search returns videos only.
Start using TikTok Search by Hashtag in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


