[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [TikTok Search by Hashtag](https://spiral.ai/integrations/muse-code/tiktok-search-by-hashtag)

# How to Use TikTok Search by Hashtag in Muse 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.

|  |  |
| --- | --- |
| Model | TikTok Search by Hashtag |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with TikTok Search by Hashtag in Muse Code

- 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 Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run TikTok Search by Hashtag**: One request; the result comes back by polling or a webhook.

```bash
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: Muse Code finds TikTok Search by Hashtag on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## TikTok Search by Hashtag tools and prices

- [TikTok · Search by Hashtag](https://spiral.ai/tools/scrapecreators/scrapecreators/tiktok-search-hashtag) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim |  | — | Set to true to get a trimmed response |
| cursor |  | — | Cursor to get more videos. Get 'cursor' from previous response. |
| region |  | — | Region the proxy will be set to. Note: this isn't going to grab you all tiktoks from this region, you're just setting the proxy there. |

## What can you do with TikTok Search by Hashtag in Muse 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.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## TikTok Search by Hashtag in other agents

- [Amp](https://spiral.ai/integrations/amp/tiktok-search-by-hashtag)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/tiktok-search-by-hashtag)
- [Claude](https://spiral.ai/integrations/claude-desktop/tiktok-search-by-hashtag)
- [Claude Code](https://spiral.ai/integrations/claude-code/tiktok-search-by-hashtag)
- [Cline](https://spiral.ai/integrations/cline/tiktok-search-by-hashtag)
- [Codex](https://spiral.ai/integrations/codex/tiktok-search-by-hashtag)
- [Cursor](https://spiral.ai/integrations/cursor/tiktok-search-by-hashtag)
- [Devin](https://spiral.ai/integrations/devin/tiktok-search-by-hashtag)
- [dots](https://spiral.ai/integrations/dots/tiktok-search-by-hashtag)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/tiktok-search-by-hashtag)
- [Gemini](https://spiral.ai/integrations/gemini/tiktok-search-by-hashtag)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/tiktok-search-by-hashtag)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/tiktok-search-by-hashtag)
- [goose](https://spiral.ai/integrations/goose/tiktok-search-by-hashtag)
- [Grok](https://spiral.ai/integrations/grok/tiktok-search-by-hashtag)
- [Grok Build](https://spiral.ai/integrations/grok-build/tiktok-search-by-hashtag)
- [Hermes](https://spiral.ai/integrations/hermes/tiktok-search-by-hashtag)
- [Instinct](https://spiral.ai/integrations/instinct/tiktok-search-by-hashtag)
- [Manus](https://spiral.ai/integrations/manus/tiktok-search-by-hashtag)
- [Muse](https://spiral.ai/integrations/muse/tiktok-search-by-hashtag)
- [n8n](https://spiral.ai/integrations/n8n/tiktok-search-by-hashtag)
- [Notion](https://spiral.ai/integrations/notion/tiktok-search-by-hashtag)
- [OpenClaw](https://spiral.ai/integrations/openclaw/tiktok-search-by-hashtag)
- [opencode](https://spiral.ai/integrations/opencode/tiktok-search-by-hashtag)
- [Perplexity](https://spiral.ai/integrations/perplexity/tiktok-search-by-hashtag)
- [Raycast](https://spiral.ai/integrations/raycast/tiktok-search-by-hashtag)
- [VS Code](https://spiral.ai/integrations/vscode/tiktok-search-by-hashtag)
- [Windsurf](https://spiral.ai/integrations/windsurf/tiktok-search-by-hashtag)
- [Zapier](https://spiral.ai/integrations/zapier/tiktok-search-by-hashtag)

## More Muse Code guides

- [TikTok Search Users](https://spiral.ai/integrations/muse-code/tiktok-search-users)
- [TikTok TikToks using Song](https://spiral.ai/integrations/muse-code/tiktok-tiktoks-using-song)
- [TikTok Search Suggestions ScrapeCreators](https://spiral.ai/integrations/muse-code/tiktok-search-suggestions-scrapecreators)
- [TikTok Top Ads Spotlight](https://spiral.ai/integrations/muse-code/tiktok-top-ads-spotlight)
- [TikTok Profile](https://spiral.ai/integrations/muse-code/tiktok-profile)
- [TikTok account LIVE details](https://spiral.ai/integrations/muse-code/tiktok-account-live-details)

## Questions about TikTok Search by Hashtag in Muse Code

**Can Muse Code use TikTok Search by Hashtag?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run TikTok Search by Hashtag like any built-in tool.

**How much does TikTok Search by Hashtag cost in Muse 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 Muse Code plan is separate.

**Do I need a ScrapeCreators account to use TikTok Search by Hashtag in Muse 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 Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while TikTok Search by Hashtag runs?**

TikTok Search by Hashtag runs in the background. Muse 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.

