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

opencode · Social Media

How to Use TikTok Comments in opencode

Get public TikTok comment text, posting times, likes, and reply counts for a video or slideshow. Use it to find audience questions and reactions; fetching reply text requires a separate endpoint.

Prompts to try with TikTok Comments in opencode

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

Use TikTok video comments for https://www.tiktok.com/@stoolpresidente/video/7463250363559218474 and add a CSV export of comment text, posting time, likes, and reply count to this project.

TikTok Commentsopencode
Try asking
  • Use TikTok video comments for https://www.tiktok.com/@stoolpresidente/video/7517114944362499342 and build a report that groups repeated audience questions with supporting comments.

  • Use TikTok video comments for https://www.tiktok.com/@stoolpresidente/video/7623818255903329566 and add a view ranking retrieved comments by likes and reply count.

  • Use TikTok video comments for https://www.tiktok.com/@stoolpresidente/video/7463250363559218474 and implement pagination with deduplication by cid. Show the retrieved count separately from the reported total.

  • Use TikTok video comments for https://www.tiktok.com/@stoolpresidente/video/7517114944362499342 and create a review screen for audience questions, showing the original text and engagement counts.

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

    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-video-comments",
        "input": {
          "url": "<url>"
        }
      }'

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

TikTok Comments providers and prices

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

ScrapeCreatorsSocial Media
TikTok · Comments
scrapecreators/tiktok-video-comments

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 comments. Get 'cursor' from previous response.

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

What can you do with TikTok Comments in opencode?

Build a TikTok audience-feedback report that groups comment text into questions, praise, and objections. Add comment likes and reply counts to the project's report so reviewers can prioritize what to examine.

Build an audience FAQ

Group recurring questions under a public business's TikTok posts into an FAQ draft, with supporting comment text for each proposed answer.

Review campaign reactions

Compare praise, objections, and confusion across selected campaign posts. Report the number of comments analyzed for each post.

Find product feedback

Extract feature requests, usability complaints, and questions from comments on public product demonstrations. Separate explicit requests from inferred suggestions.

Plan follow-up videos

Turn repeated audience questions into follow-up video briefs, using comment likes and reply counts to help prioritize topics.

Prepare a response queue

Identify questions and complaints under a brand's public posts for a community manager to review. Include the comment text and available engagement counts.

Compare creative approaches

Compare the questions and reactions beneath selected tutorial, demonstration, and announcement posts to inform the next creative brief.

Select discussions for deeper review

Rank top-level comments by reported reply count to identify discussions worth examining through the separate replies endpoint.

Questions about TikTok Comments in opencode

Can opencode use TikTok Comments?

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

How much does TikTok Comments 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 Comments in opencode?

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

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

Does opencode wait while TikTok Comments runs?

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

Does this work with TikTok slideshows?

Yes. The documented coverage includes comments on public photo slideshows as well as public videos.

What information comes back for each comment?

Comment records include text, creation time, likes, reply count, and author details. That supports analysis of what people said and which comments attracted responses.

How many comments come back in one call?

The provider's published test returned 20 comments per initial call across three videos. That is an observed page size, not a documented maximum; use pagination to retrieve further pages.

Can I retrieve every comment counted on a TikTok post?

TikTok's displayed total is not a guarantee that every comment is retrievable. An empty page also does not prove the post has no comments globally.

Does a reply count include the actual reply text?

Reply counts and reply text are separate. Fetching the text requires the comment replies endpoint, using the comment identifier returned by the comments endpoint.

Get started

Start using TikTok Comments 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