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

Muse Code · Social Media

How to Use TikTok video metrics in Muse Code

Returns a TikTok video's views, likes, comments, favorites, and performance overview, with documented 14-day trend fields. Use it to measure post performance and compare engagement across selected videos.

Prompts to try with TikTok video metrics in Muse Code

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

Use TikTok video metrics for video 7502551047378832671 and add a table of views, likes, comments, and favorites to this project.

TikTok video metricsMuse Code
Try asking
  • Use TikTok video metrics for video 7502551047378832671 and add a chart for any returned daily trends, using the response's dates as labels.

  • Use TikTok video metrics to look this up and give me the result as a table. Save the result in ./assets.

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

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

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

    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-analytics-fetch-video-metrics",
        "input": {
          "item_id": "7502551047378832671"
        }
      }'

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

TikTok video metrics providers and prices

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

TikHubSocial Media
TikTok Analytics · Get video metrics
tikhub/tiktok-analytics-fetch-video-metrics

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

Build a TikTok reporting view that turns comment themes, creator milestones, or post engagement into evidence an editor can review. A coding agent can add tables and comparisons to your project using the returned data.

Prepare a creator partnership brief

Combine dated account milestones and follower totals with selected video results and audience comment themes to prepare questions for a public creator partnership.

Write a campaign review

Report engagement on selected campaign videos, summarize the feedback in matching comments, and add account totals and milestones as context.

Compare public brand accounts

Compare a chosen set of brands using account totals, dated milestones, selected post metrics, and comment themes. Keep the comparison tied to the accounts and videos reviewed.

Plan the next content brief

Use audience questions from comments and engagement on selected posts to propose follow-up videos. Include account milestones when choosing whether a retrospective or celebration fits the brief.

Build a weekly brand report

Compare retrieved account totals, video engagement, and comment themes with earlier saved results to show what changed for a public business account.

Create a public creator case study

Build a dated account timeline, describe engagement on selected example videos, and summarize the audience feedback returned for those posts.

Questions about TikTok video metrics in Muse Code

Can Muse Code use TikTok video metrics?

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

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

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

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

Can this retrieve private TikTok content?

TikHub says it excludes private, restricted, and password-protected content. Its stated coverage boundary is publicly accessible source data.

Do repeated requests return the same saved data?

TikHub says endpoint requests retrieve fresh data, including when the request is repeated. That is its stated retrieval behavior, rather than a documented TikTok update interval.

Are TikTok results guaranteed to be complete and current?

No. TikHub's terms explicitly decline guarantees of accuracy, completeness, and currency, which qualifies the FAQ's fresh-data description.

Does reopening a cached response refresh its contents?

The cache preserves the exact response for 24 hours. Reopening it provides that saved result rather than an updated TikTok snapshot.

Does public TikTok data come with unrestricted reuse rights?

TikHub places downstream compliance on the customer, including TikTok's terms and applicable privacy and intellectual property laws. Public availability alone does not establish unrestricted reuse rights.

Get started

Start using TikTok video metrics 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