[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [TikTok ad engagement timeline](https://spiral.ai/integrations/muse-code/tiktok-ad-engagement-timeline)

# How to Use TikTok ad engagement timeline in Muse Code

Returns an ad's engagement time series, average watch time, completion rate, and peak interaction time. Use it to identify where attention changes across the video and plan edits to its pacing.

|  |  |
| --- | --- |
| Model | TikTok ad engagement timeline |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with TikTok ad engagement timeline in Muse Code

- Use TikTok ad engagement timeline for Creative Center ad 7213258221116751874 and add a chart of its returned timestamps and metric values to this project's review page.
- Use TikTok ad engagement timeline to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok ad engagement timeline and tell me what changed since last week.
- Check TikTok ad engagement timeline and summarize what you find in three bullet points.
- Pull the newest data from TikTok ad engagement timeline and give me the result as a table.

## How to set up TikTok ad engagement timeline in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run TikTok ad engagement timeline**: One request; the result comes back by polling or a webhook.

```bash
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-ads-get-ad-interactive-analysis",
    "input": {
      "material_id": "<material_id>"
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## TikTok ad engagement timeline tools and prices

- [TikTok Ads · Get ad interactive analysis](https://spiral.ai/tools/tikhub/tikhub/tiktok-ads-get-ad-interactive-analysis) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cookie |  | — |  |
| metric_type |  | remain | Analysis type (ctr, cvr, clicks, conversion, remain) |
| period_type |  | 180 | Period type (days) |

## What can you do with TikTok ad engagement timeline in Muse Code?

Build a creative review panel that puts TikTok references beside retention findings and industry comparisons. A coding agent can turn returned data into project tables and charts while preserving the distinction between ads, ranked videos, and creator cards.

### Prepare a seasonal campaign brief

Expand product vocabulary with search suggestions, collect featured and similar ads, and inspect their offers and performance. Add ranked video examples and creator context, then use retention timelines, keyframes, and percentiles to explain which references deserve an editor's attention.

### Review competitors' creative references

Use search phrases, featured cases, and similar ads to build a review shortlist. Examine brand offers, peer comparisons, and attention patterns, then compare those references with ranked videos, top comments, and public creator performance.

### Build an editor's reference library

Organize ad examples by offer and industry, supported by suggested search phrases and related creatives. Include engagement timelines, keyframe findings, and percentile comparisons alongside ranked videos, audience reactions, and creator context.

### Compare paid creative with trending content

Study ranked videos, comments, and creator performance alongside featured and recommended ads. Use search suggestions to broaden the subject, ad details to identify offers, and performance analyses to choose questions for the next creative test.

### Review an ad before planning a recut

Pair the ad's creative and offer with its engagement timeline and keyframe findings. Use industry percentiles to place the example in context before proposing scenes to shorten or reorder.

### Prepare a creative review meeting

Bring featured ad cases, industry comparisons, and specific retention moments into the discussion. Separate observations about the returned performance data from proposed explanations that the team still needs to test.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## TikTok ad engagement timeline in other agents

- [Amp](https://spiral.ai/integrations/amp/tiktok-ad-engagement-timeline)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/tiktok-ad-engagement-timeline)
- [Claude](https://spiral.ai/integrations/claude-desktop/tiktok-ad-engagement-timeline)
- [Claude Code](https://spiral.ai/integrations/claude-code/tiktok-ad-engagement-timeline)
- [Cline](https://spiral.ai/integrations/cline/tiktok-ad-engagement-timeline)
- [Codex](https://spiral.ai/integrations/codex/tiktok-ad-engagement-timeline)
- [Cursor](https://spiral.ai/integrations/cursor/tiktok-ad-engagement-timeline)
- [Devin](https://spiral.ai/integrations/devin/tiktok-ad-engagement-timeline)
- [dots](https://spiral.ai/integrations/dots/tiktok-ad-engagement-timeline)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/tiktok-ad-engagement-timeline)
- [Gemini](https://spiral.ai/integrations/gemini/tiktok-ad-engagement-timeline)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/tiktok-ad-engagement-timeline)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/tiktok-ad-engagement-timeline)
- [goose](https://spiral.ai/integrations/goose/tiktok-ad-engagement-timeline)
- [Grok](https://spiral.ai/integrations/grok/tiktok-ad-engagement-timeline)
- [Grok Build](https://spiral.ai/integrations/grok-build/tiktok-ad-engagement-timeline)
- [Hermes](https://spiral.ai/integrations/hermes/tiktok-ad-engagement-timeline)
- [Instinct](https://spiral.ai/integrations/instinct/tiktok-ad-engagement-timeline)
- [Manus](https://spiral.ai/integrations/manus/tiktok-ad-engagement-timeline)
- [Muse](https://spiral.ai/integrations/muse/tiktok-ad-engagement-timeline)
- [n8n](https://spiral.ai/integrations/n8n/tiktok-ad-engagement-timeline)
- [Notion](https://spiral.ai/integrations/notion/tiktok-ad-engagement-timeline)
- [OpenClaw](https://spiral.ai/integrations/openclaw/tiktok-ad-engagement-timeline)
- [opencode](https://spiral.ai/integrations/opencode/tiktok-ad-engagement-timeline)
- [Perplexity](https://spiral.ai/integrations/perplexity/tiktok-ad-engagement-timeline)
- [Raycast](https://spiral.ai/integrations/raycast/tiktok-ad-engagement-timeline)
- [VS Code](https://spiral.ai/integrations/vscode/tiktok-ad-engagement-timeline)
- [Windsurf](https://spiral.ai/integrations/windsurf/tiktok-ad-engagement-timeline)
- [Zapier](https://spiral.ai/integrations/zapier/tiktok-ad-engagement-timeline)

## More Muse Code guides

- [TikTok ad details](https://spiral.ai/integrations/muse-code/tiktok-ad-details)
- [TikTok ad keyframe analysis](https://spiral.ai/integrations/muse-code/tiktok-ad-keyframe-analysis)
- [TikTok account videos](https://spiral.ai/integrations/muse-code/tiktok-account-videos)
- [TikTok ad performance percentiles](https://spiral.ai/integrations/muse-code/tiktok-ad-performance-percentiles)
- [TikTok account secUid](https://spiral.ai/integrations/muse-code/tiktok-account-secuid)
- [TikTok ad search](https://spiral.ai/integrations/muse-code/tiktok-ad-search)

## Questions about TikTok ad engagement timeline in Muse Code

**Can Muse Code use TikTok ad engagement timeline?**

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

**How much does TikTok ad engagement timeline 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 ad engagement timeline in Muse Code?**

No. Spiral runs TikTok ad engagement timeline 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 ad engagement timeline 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 ad engagement timeline runs?**

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

**Does Creative Center cover every TikTok ad and video?**

No. TikHub describes the dataset as a selection of popular records and explicitly warns that it may be incomplete.

**What do the ad analysis tools measure?**

They examine different aspects of creative performance: keyframe analysis identifies retention and drop-off moments, engagement timelines summarize attention over time, and percentiles compare an ad with industry peers.

**What extra context is available beyond the video itself?**

Ad details include the brand, landing page, target countries, and engagement data. For ranked videos, the detail response adds top comments and author information.

**Do search suggestions show keyword search volume?**

The documented response is a list of suggested phrases. It does not document a search-volume series, so suggestions are useful for expanding research rather than measuring demand.

**Can Creative Center help assess public creators?**

Creator cards document audience profiles, follower growth, overall performance, and recent posts. These provide context about creators behind ranked videos.

