# TikTok, Instagram & Meta Ad Intelligence — Agent Skill

> Audit a brand's winning TikTok videos, extract spoken hooks via transcripts, scan Instagram posts, and inspect active Meta Ad Library creatives without a $300/month ad-spy suite.

- **Canonical URL**: https://duang.ai/skills/social-ad-spy
- **Steps**: 4 live data APIs
- **Estimated cost**: From $0.01071/run (~93 full runs on the $1 free welcome credit)
- **Outcome**: Creative teardown deck with winning hooks, posting cadence, and active paid angles.
- **Works with**: Claude Code, Cursor, Claude Desktop, Codex, OpenClaw, CLI & HTTP

## Example Prompt

> Audit Gymshark's social and paid strategy with Duang: pull their recent TikTok videos, transcribe the top video, list recent Instagram posts, and check active ads in Meta Ad Library.

## Workflow Steps & Pricing

| Step | Capability | Starting Price | Providers |
| :--- | :--- | :--- | :--- |
| 1. Fetch recent TikTok videos & metrics | [`tiktok.user.videos`](https://duang.ai/data/tiktok/user-videos) | From $0.00282 | Scrape Creators, TikHub |
| 2. Extract spoken hook & transcript | [`tiktok.video.transcript`](https://duang.ai/data/tiktok/video-transcript) | From $0.00282 | Scrape Creators |
| 3. Inspect Instagram posts & reels | [`instagram.user.posts`](https://duang.ai/data/instagram/user-posts) | From $0.00225 | Just One API, Scrape Creators, TikHub |
| 4. Search active Meta Ad Library campaigns | [`ads.meta.search`](https://duang.ai/data/meta-ads/search) | From $0.00282 | Scrape Creators |

## Ready-to-Use `SKILL.md`

```markdown
---
name: social-ad-spy
description: "Audit a brand's winning TikTok videos, extract spoken hooks via transcripts, scan Instagram posts, and inspect active Meta Ad Library creatives without a $300/month ad-spy suite."
---

# TikTok, Instagram & Meta Ad Intelligence

## Prerequisites
- Connect Duang first via `https://duang.ai/SKILL.md` or remote MCP `https://api.duang.ai/mcp`.
- Never ask the user to paste raw third-party API keys into chat—Duang executes managed calls from the team USD balance (new teams start with $1 free) or connected team vault accounts.

## Workflow Steps
1. **Fetch recent TikTok videos & metrics** — call `tiktok.user.videos` (providers: Scrape Creators, TikHub)
   - Goal: Identify outlier videos by views, likes, shares, and engagement velocity.
   - Example input: `{"username":"gymshark","limit":10}`
2. **Extract spoken hook & transcript** — call `tiktok.video.transcript` (providers: Scrape Creators)
   - Goal: Transcribe the opening 3-second hook, CTA, and script structure for creative analysis.
   - Example input: `{"url":"https://www.tiktok.com/@tiktok/video/7106594312292453675"}`
3. **Inspect Instagram posts & reels** — call `instagram.user.posts` (providers: Just One API, Scrape Creators, TikHub)
   - Goal: Compare cross-platform creative themes, captions, and posting frequency.
   - Example input: `{"username":"gymshark","limit":10}`
4. **Search active Meta Ad Library campaigns** — call `ads.meta.search` (providers: Scrape Creators)
   - Goal: Inspect live paid ad copy, creative formats, and active offers across Facebook and Instagram.
   - Example input: `{"query":"gymshark"}`

## Output Requirements
- Creative teardown deck with winning hooks, posting cadence, and active paid angles.
- Cite the exact source URLs and note the Duang provider and USD receipt returned by each call.
- If any step fails due to an upstream error, report it clearly (failed upstream calls cost $0 on Duang) rather than fabricating data.
```

## CLI Pipeline

```bash
npx @fastagent-sh/duang call tiktok.user.videos --input '{"username":"gymshark","limit":10}'
npx @fastagent-sh/duang call tiktok.video.transcript --input '{"url":"https://www.tiktok.com/@tiktok/video/7106594312292453675"}'
npx @fastagent-sh/duang call instagram.user.posts --input '{"username":"gymshark","limit":10}'
npx @fastagent-sh/duang call ads.meta.search --input '{"query":"gymshark"}'
```

## Frequently Asked Questions

### How much does the Social & Ad Spy skill cost to run?

Running all 4 steps once starts at From $0.01071/run—meaning the $1 free welcome credit for new teams covers roughly 93 full runs. You never pay monthly vendor subscriptions, virtual credits are never used, and failed upstream or platform calls cost $0.

### How do I install the Social & Ad Spy skill in Claude Code, Cursor, or Codex?

First connect Duang once (paste `https://api.duang.ai/mcp` as a remote MCP server or tell your agent `set up https://duang.ai/SKILL.md`). Then save the SKILL.md snippet above into your project's skills folder or paste the prompt directly.

### Which Duang data APIs does this skill chain together?

This workflow combines 4 normalized Duang capabilities: tiktok.user.videos, tiktok.video.transcript, instagram.user.posts, ads.meta.search. You can inspect schemas, test any individual step live in your browser, or swap to your own provider keys anytime.
