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

opencode · Social Media

How to Use TikTok LIVE search in opencode

Returns livestream search results for a keyword. Use it to investigate broadcasts about a specific topic after choosing the wording you want to search.

Prompts to try with TikTok LIVE search in opencode

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

Use TikTok LIVE search to look this up and give me the result as a table. Save the result in ./assets.

TikTok LIVE searchopencode
Try asking
  • Pull the latest numbers from TikTok LIVE search and tell me what changed since last week.

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

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

  • Check TikTok LIVE search every morning and tell me only when something changed.

How to set up TikTok LIVE search in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 LIVE 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-live",
        "input": {
          "keyword": "TikTok"
        }
      }'

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

TikTok LIVE search providers and prices

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

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

Settings you can ask for

Ask opencode 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 live is on its tool page: open its card above.

What can you do with TikTok LIVE search in opencode?

Build an internal TikTok research view that turns returned categories, search matches, or post data into reviewable records. A coding agent can add the selected data to your project’s existing reports and interfaces.

Research a product launch topic

For a coffee equipment launch, gather suggested searches, find public coffee creators, inspect photo results, and explore livestream topics and available LIVE categories.

Build a public creator research shortlist

Find public cooking creators and collect photo and livestream examples for manual review. Use search suggestions and LIVE categories to broaden the topics represented in the shortlist.

Plan a livestream series

Explore available LIVE categories and broadcasts about home baking, then find public creator accounts, related search phrases, and photo examples to inform an episode plan.

Prepare a topic brief across formats

Research museum education through account matches, photo posts, livestream results, suggested searches, and LIVE categories. Give an editor concrete topics and public accounts to review.

Questions about TikTok LIVE search in opencode

Can opencode use TikTok LIVE search?

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

How much does TikTok LIVE search cost in opencode?

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a TikHub account to use TikTok LIVE search in opencode?

No. Spiral runs TikTok LIVE 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 LIVE search in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while TikTok LIVE search runs?

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

Can this data include private TikTok content?

TikHub says it accesses only publicly available data. Private or restricted content falls outside that stated coverage.

Is the TikTok data guaranteed to be complete and current?

TikHub expressly disclaims guarantees about data accuracy, completeness, reliability, and timeliness. A successful response does not establish complete TikTok coverage.

Why can TikTok discovery results differ between searches?

TikTok says search results and suggested terms can depend on previous interactions, language, location, and how well content matches the query. Results should therefore be read as a discovery view rather than a platform-wide ranking.

Does public TikTok content show every audience comment?

No. TikTok lets creators filter all comments, keeping them hidden until approved, so visible discussions can exclude submitted feedback.

Does access grant permission to republish TikTok content?

TikHub’s terms say retrieved content may remain subject to third-party intellectual property rights. Data access alone does not establish republication rights.

Get started

Start using TikTok LIVE search in opencode

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

Paste this into opencode:

Set up opencode

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