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

opencode · Social Media

How to Use TikTok Search Users in opencode

Returns accounts matching a TikTok search, with names and follower and following counts in the documented response. Use it to find public brands or creators rather than individual posts.

Prompts to try with TikTok Search Users in opencode

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

Scrape https://example.com/pricing with TikTok Search Users and turn it into a comparison table. Save the result in ./assets.

TikTok Search Usersopencode
Try asking
  • Crawl the docs at https://docs.example.com with TikTok Search Users and summarize each section.

  • Pull the latest posts from this blog with TikTok Search Users and list their titles and dates.

  • Scrape the job listings at https://example.com/careers with TikTok Search Users and give me a CSV.

  • Scrape the changelog at https://example.com/changelog with TikTok Search Users and list this month's changes.

How to set up TikTok Search Users 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 Search Users

    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": "scrapecreators",
        "model": "scrapecreators/tiktok-search-users",
        "input": {
          "query": "<query>"
        }
      }'

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

TikTok Search Users providers and prices

Spiral runs TikTok Search Users through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
TikTok · Search Users
scrapecreators/tiktok-search-users

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Trimon or off

Set to true to get a trimmed response

Cursora number

Cursor to get more users. Get 'cursor' from previous response.

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

What can you do with TikTok Search Users in opencode?

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.

Questions about TikTok Search Users in opencode

Can opencode use TikTok Search Users?

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

How much does TikTok Search Users cost in opencode?

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

Do I need a ScrapeCreators account to use TikTok Search Users in opencode?

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

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

Does opencode wait while TikTok Search Users runs?

TikTok Search Users runs in the background. opencode 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.

Get started

Start using TikTok Search Users 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