[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [TikTok ad details](https://spiral.ai/integrations/gemini-cli/tiktok-ad-details)

# How to Use TikTok ad details in Gemini CLI

Returns one ad's creative, brand, landing page, target countries, and engagement data. Use it to inspect a specific campaign reference and connect its video to its offer.

|  |  |
| --- | --- |
| Model | TikTok ad details |
| 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 details in Gemini CLI

- Use TikTok ad details for ad 7131673574381518849 from The Bamboo Breeze Shop and populate our reference page with its brand, landing page, countries, and engagement counts.
- Use TikTok ad details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from TikTok ad details and tell me what changed since last week.
- Check TikTok ad details and summarize what you find in three bullet points.
- Pull the newest data from TikTok ad details and give me the result as a table.

## How to set up TikTok ad details in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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 details**: 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-ads-detail",
    "input": {
      "ads_id": "<ads_id>"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds TikTok ad details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## TikTok ad details tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cookie |  | — |  |

## What can you do with TikTok ad details in Gemini CLI?

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.

### Expand a narrow creative search

Turn a product term into suggested search phrases and expand an existing ad reference into similar examples. Add featured industry cases and inspect individual ads to keep the shortlist relevant to the offer.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## TikTok ad details in other agents

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

## More Gemini CLI guides

- [TikTok account videos](https://spiral.ai/integrations/gemini-cli/tiktok-account-videos)
- [TikTok ad engagement timeline](https://spiral.ai/integrations/gemini-cli/tiktok-ad-engagement-timeline)
- [TikTok account secUid](https://spiral.ai/integrations/gemini-cli/tiktok-account-secuid)
- [TikTok ad keyframe analysis](https://spiral.ai/integrations/gemini-cli/tiktok-ad-keyframe-analysis)
- [TikTok account search](https://spiral.ai/integrations/gemini-cli/tiktok-account-search)
- [TikTok ad performance percentiles](https://spiral.ai/integrations/gemini-cli/tiktok-ad-performance-percentiles)

## Questions about TikTok ad details in Gemini CLI

**Can Gemini CLI use TikTok ad details?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run TikTok ad details like any built-in tool.

**How much does TikTok ad details cost in Gemini CLI?**

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

**Do I need a TikHub account to use TikTok ad details in Gemini CLI?**

No. Spiral runs TikTok ad details 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 details in Gemini CLI?**

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

**Does Gemini CLI wait while TikTok ad details runs?**

TikTok ad details runs in the background. Gemini CLI 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.

