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

# How to Use TikTok following search in Muse Code

Returns nickname matches within the accounts a specified TikTok account follows. Use it to check whether a business follows a named public brand or creator.

|  |  |
| --- | --- |
| Model | TikTok following search |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with TikTok following search in Muse Code

- Use TikTok following search to look for the nickname 'LEGO' among @nike's followed accounts; add the returned public business matches to this project's research report.
- Use TikTok following search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok following search and tell me what changed since last week.
- Check TikTok following search and summarize what you find in three bullet points.
- Pull the newest data from TikTok following search and give me the result as a table.

## How to set up TikTok following search 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 following search**: 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": "tikhub",
    "model": "tikhub/tiktok-app-v3-search-following-list",
    "input": {
      "keyword": "a",
      "user_id": "7540849481009988663"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds TikTok following search on Spiral, shows the price and runs it.

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

## TikTok following search tools and prices

- [TikTok App · Search following list](https://spiral.ai/tools/tikhub/tikhub/tiktok-app-v3-search-following-list) (TikHub): $0.0013 per request.

## What can you do with TikTok following search in Muse Code?

Build a TikTok research view that connects public videos, discussions, and business account records. Use account IDs to connect account research and keep comments separate from replies.

### Prepare a brand campaign brief

Find campaign videos, examine comments and reply threads, resolve the brand's account IDs, review its broadcaster account information, and search both relationship directions for named public business accounts.

### Build a competitor research dossier

Research a public competitor's videos and discussions, identify its account records, review its broadcaster information, and check for named business accounts in its followers and following results.

### Research a public creator partnership

Find relevant videos and audience discussions, resolve the creator's handle, inspect broadcaster account information, and search for a prospective brand in both follower and following results.

### Prepare an agency account handoff

Assemble public account identifiers, broadcaster information, campaign search results, comment discussions, and targeted searches for business accounts in the client's followers and following results.

## Overview

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

## TikTok following search in other agents

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

## More Muse Code guides

- [TikTok following list](https://spiral.ai/integrations/muse-code/tiktok-following-list)
- [TikTok gift name lookup](https://spiral.ai/integrations/muse-code/tiktok-gift-name-lookup)
- [TikTok follower search](https://spiral.ai/integrations/muse-code/tiktok-follower-search)
- [TikTok gift names in bulk](https://spiral.ai/integrations/muse-code/tiktok-gift-names-in-bulk)
- [TikTok fake view analysis](https://spiral.ai/integrations/muse-code/tiktok-fake-view-analysis)
- [TikTok guest session](https://spiral.ai/integrations/muse-code/tiktok-guest-session)

## Questions about TikTok following search in Muse Code

**Can Muse Code use TikTok following search?**

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

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

**Do I need a TikHub account to use TikTok following search in Muse Code?**

No. Spiral runs TikTok following 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 following search 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 following search runs?**

TikTok following search runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**What TikTok data is available?**

The service returns publicly available TikTok data and is read-only. These results support research into public content and accounts.

**How many comments should I request at once?**

For comment retrieval, the documentation recommends 30 or fewer per call.

**How do I collect more video comments?**

Continue with the cursor returned by the previous response. The video-comments documentation explicitly describes this pagination method.

**What does a username lookup return?**

It returns two TikTok account identifiers: user_id and sec_user_id.

