[Integrations](https://spiral.ai/integrations) › [Muse](https://spiral.ai/integrations/muse) › [TikTok username to account IDs](https://spiral.ai/integrations/muse/tiktok-username-to-account-ids)

# How to Use TikTok username to account IDs in Muse

Returns the user_id and sec_user_id associated with a TikTok username. Use it to resolve a public brand or creator handle before account research that requires those identifiers.

|  |  |
| --- | --- |
| Model | TikTok username to account IDs |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with TikTok username to account IDs in Muse

- Use TikTok username to account IDs to look this up and give me the result as a table.
- Pull the latest numbers from TikTok username to account IDs and tell me what changed since last week.
- Check TikTok username to account IDs and summarize what you find in three bullet points.
- Pull the newest data from TikTok username to account IDs and give me the result as a table.
- Check TikTok username to account IDs every morning and tell me only when something changed.

## How to set up TikTok username to account IDs in Muse

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

### Use the Muse connector

1. **Create an API key**: Create one under API keys in the Spiral console.

2. **Send Muse this message**: Muse reads Spiral's skill and asks for an API key.

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

3. **Give Muse the key**: Paste the key when Muse asks for it, never in the chat itself.

### Use the Spiral skill

1. **Send Muse 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 username to account IDs**: 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-get-user-id-and-sec-user-id-by-username",
    "input": {
      "username": "tiktok"
    }
  }'
```

Then paste one of the prompts above: Muse finds TikTok username to account IDs on Spiral, shows the price and runs it.

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

## TikTok username to account IDs tools and prices

- [TikTok App · Get user_id and sec_user_id by Username](https://spiral.ai/tools/tikhub/tikhub/tiktok-app-v3-get-user-id-and-sec-user-id-by-username) (TikHub): $0.0013 per request.

## What can you do with TikTok username to account IDs in Muse?

Prepare a TikTok brand research brief from public videos, discussions, and account records. Ask for specific brands and topics to keep the report focused.

### 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.

### Resolve public business handles

Convert known brand usernames into TikTok account IDs for a business research directory.

## Overview

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

## TikTok username to account IDs in other agents

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

## More Muse guides

- [TikTok username lookup](https://spiral.ai/integrations/muse/tiktok-username-lookup)
- [TikTok video AI article](https://spiral.ai/integrations/muse/tiktok-video-ai-article)
- [TikTok user ID lookup](https://spiral.ai/integrations/muse/tiktok-user-id-lookup)
- [TikTok video ID from link](https://spiral.ai/integrations/muse/tiktok-video-id-from-link)
- [TikTok trending video rankings](https://spiral.ai/integrations/muse/tiktok-trending-video-rankings)
- [TikTok video comments](https://spiral.ai/integrations/muse/tiktok-video-comments)

## Questions about TikTok username to account IDs in Muse

**Can Muse use TikTok username to account IDs?**

Yes. Add Spiral to Muse as an MCP server, and Muse can find and run TikTok username to account IDs like any built-in tool.

**How much does TikTok username to account IDs cost in Muse?**

$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 plan is separate.

**Do I need a TikHub account to use TikTok username to account IDs in Muse?**

You need no TikHub account. Muse uses one Spiral API key for every tool, and Spiral runs TikTok username to account IDs on its own TikHub account.

**How long does it take to set up TikTok username to account IDs in Muse?**

About two minutes: create an API key, then send Muse this message, then give Muse the key.

**Does Muse wait while TikTok username to account IDs runs?**

TikTok username to account IDs runs in the background. Muse 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.

