Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · Social Media

How to Use TikTok video search in Muse Code

Returns TikTok videos matching a search phrase. Use it to find content about a product, brand, or topic across accounts.

Prompts to try with TikTok video search in Muse Code

Copy an example into Muse Code, or ask in your own words.

Use TikTok video search for 'Duolingo Spanish' and build a results view in this project from the returned video list.

TikTok video searchMuse Code
Try asking
  • Use TikTok video search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from TikTok video search and tell me what changed since last week.

  • Check TikTok video search and summarize what you find in three bullet points.

  • Pull the newest data from TikTok video search and give me the result as a table.

How to set up TikTok video search in Muse Code

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

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run TikTok video 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-web-fetch-search-video",
        "input": {
          "keyword": "TikTok"
        }
      }'

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

TikTok video search providers and prices

Spiral runs TikTok video search through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
TikTok Web · Search video
tikhub/tiktok-web-fetch-search-video

Settings you can ask for

Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Counta whole number20

Number per page

Offseta whole number0

Page cursor

Every API field of TikTok Web · Search video is on its tool page: open its card above.

What can you do with TikTok video search in Muse Code?

Build a TikTok research view for videos, hashtags, public brand connections, and LIVE information. A coding agent can adapt retrieved responses to your project's data model and handle TikTok pagination and guest-session limits.

Research a content topic

Explore BookTok through daily search terms, hashtag details, and associated videos. Use keyword search to broaden the examples and a consistent guest identity to support collection with fewer duplicates where supported.

Build an editorial shortlist

Find TikTok videos and hashtags relevant to a publisher's next reading campaign. Compare the collected examples with daily trending searches, using a consistent guest identity during supported collection.

Prepare a brand campaign brief

Combine campaign-related videos, hashtags, search trends, and brand LIVE information. Add public likes and business or creator accounts found in follower and following lists; use guest sessions to support consistent collection where applicable.

Compare public brand activity

Prepare an internal comparison of Duolingo and Ryanair using relevant videos, hashtags, daily search topics, public content selections, business account connections, and LIVE details. Keep guest identity consistent during supported collection and distinguish observed results from conclusions about brand strategy.

Questions about TikTok video search in Muse Code

Can Muse Code use TikTok video search?

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

How much does TikTok video 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 video search in Muse Code?

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

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

How fresh is the TikTok data?

TikHub describes repeat API requests as fresh, real-time retrieval rather than cached results. That describes retrieval freshness, not a guarantee that every TikTok value updates immediately.

Does a page of results contain every matching TikTok record?

No. TikHub says paginated endpoints frequently return fewer items than requested, so a short page alone does not establish that collection is complete.

Does this cover private TikTok content?

TikHub states that its data access covers only publicly available information. Private content falls outside that stated coverage.

Is TikTok data guaranteed to be accurate and complete?

No. TikHub's terms do not warrant that retrieved data is accurate, complete, or current.

Can I freely republish retrieved TikTok content?

Retrieval does not establish unrestricted reuse rights. TikHub's terms state that accessed content may carry third-party intellectual property rights.

Get started

Start using TikTok video search in Muse Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse Code:

Set up Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options