TL;DR
- An AI agent can watch competitors' Instagram and TikTok accounts daily: instagram.posts ($0.002 per call) and tiktok.posts ($0.00015 per call) return each account's recent posts with views, likes and comment counts.
- For the posts that matter, instagram.comments ($0.002 per call) takes a post URL and tiktok.comments ($0.001 per call) takes a video id, so the agent can score what customers say.
- The digest goes out from the agent's own inbox at $0.0008 per recipient. Five competitors on both networks, with comments on the top 3 posts each, costs about $0.06 a day.
- Everything is public data on one key: no scraper, proxy, Instagram login or TikTok developer approval. The same tools work from Claude or ChatGPT through one MCP connector.
- The monitor only reads. The one thing that speaks is the email, and you can make it wait for your approval.
Tools used in this post
Updated 26 November 2026.
To monitor competitors' Instagram and TikTok posts with an AI agent, give it two read calls per competitor and an inbox: on Naive, instagram.posts ($0.002) and tiktok.posts ($0.00015) return each account's recent posts with view, like and comment counts, the comment tools read what customers say under the posts that took off, and the agent emails you a digest every morning. Five competitors on both networks, with comment sentiment on their top posts, costs about $0.06 a day, with no scraper, proxy or social login.
Naive is a developer platform that gives an AI agent priced tools (Instagram, TikTok and 10,000+ other data endpoints) and its own accounts, such as an email inbox, on one API key, CLI or MCP server.
Definitions. A tool is a priced, read-only call that returns JSON, such as instagram.posts. An identity is the name your agent acts as; its inbox is a real email address it sends from. A digest is the one email the agent writes after each run.
This guide builds the monitor in four steps: posts, comments, sentiment and the email. Then it covers running it from Claude or ChatGPT, the daily cost, and when a social listening suite is the better buy.
What does a competitor monitoring agent do each day?
It answers three questions for every handle on your list: what did they post since yesterday, which posts are outperforming their usual numbers, and what are people saying underneath those posts.
| Step | Call | Input | Price |
|---|---|---|---|
| 1. New Instagram posts | instagram.posts | username, optional limit | $0.002 / call |
| 2. New TikTok videos | tiktok.posts | username, optional limit | $0.00015 / call |
| 3. Instagram comments on the top posts | instagram.comments | post or reel url | $0.002 / call |
| 4. TikTok comments on the top videos | tiktok.comments | video_id, optional limit (up to 50) | $0.001 / call |
| 5. Label sentiment | your own model | the comment text | your model's cost |
| 6. Email the digest | emails.send from the agent's inbox | recipients, subject, plain text | $0.0008 / recipient |
Steps 1 to 4 are read-only calls on public data from the Instagram tool and the TikTok tool. Step 6 is the only step that speaks, and it speaks to you.
How do you set it up?
Create a key at developers.usenaive.ai ($1 free credit, no card), store it as NAIVE_API_KEY, and install the SDK or the CLI:
npm install @usenaive-sdk/naive # SDK
npm install -g @usenaive-sdk/cli # CLI, then: naive loginThen give the agent an identity and an inbox, so the digest arrives from its own address instead of yours:
naive identity create --name competitor-watch
naive email create --identity idn_123Keep the idn_ and eml_ ids the commands print; the script below reads them from the environment. On the free credit the agent can email the address you signed up with, which is all a digest to yourself needs.
Or hand your coding agent one line and let it set itself up: set up https://usenaive.ai/developers/skill.md.
How do you pull a competitor's latest posts?
Try one handle from the terminal first and look at what comes back:
naive tools run instagram.posts --arg username=competitor_handle --arg limit:=12
naive tools run tiktok.posts --arg username=competitor_handle --arg limit:=10key=value is always text; limit:=12 passes a number. Each run returns a run object with its status, its cost_usd and the output. The output is the network's own post data, so print it once before you build on it. In our test run, Instagram posts arrived under output.data.items, each with a code (the short id in the post URL), caption.text, taken_at, like_count and comment_count. TikTok videos arrived under output.items, each with an id, desc, createTime and a stats object with playCount, diggCount and commentCount. Instagram returns a fixed page of about 12 posts whatever limit you pass; TikTok honours limit. Comments come back the same way: Instagram comments under output.data.items, each with text and comment_like_count, and TikTok comments under output.comments, each with text, digg_count (likes) and create_time.
The same calls in TypeScript. Brands often use a different handle on each network, so list both. The script keeps the whole page as the account's baseline and flags posts from the last 24 hours:
import { createNaive } from "@usenaive-sdk/naive";
const naive = createNaive(); // reads NAIVE_API_KEY
const COMPETITORS = [
{ name: "Competitor One", instagram: "competitor_one", tiktok: "competitorone" },
{ name: "Competitor Two", instagram: "competitor.two", tiktok: "competitor_two_official" },
];
const since = Date.now() / 1000 - 24 * 60 * 60;
type Post = { network: "instagram" | "tiktok"; handle: string; id: string; url: string; text: string;
likes: number; comments: number; created: number; lift: number };
// Each account's usual numbers: the median likes across the page we already fetched.
const median = (xs: number[]) => { const s = [...xs].sort((a, b) => a - b); return s[Math.floor(s.length / 2)] || 1; };
function keepNew(page: Post[]) {
const usual = median(page.map((p) => p.likes));
for (const p of page) if (p.created >= since) posts.push({ ...p, lift: p.likes / usual });
}
async function run(tool: string, input: Record<string, unknown>) {
const r = await naive.tools.run(tool, input, { wait: true });
return r.object === "run" && r.status === "succeeded" ? (r.output as any) : null;
}
const posts: Post[] = [];
for (const c of COMPETITORS) {
const ig = await run("instagram.posts", { username: c.instagram, limit: 12 });
keepNew((ig?.data?.items ?? []).map((p: any): Post => ({
network: "instagram", handle: c.instagram, id: p.code, url: `https://www.instagram.com/p/${p.code}/`,
text: p.caption?.text ?? "", likes: p.like_count ?? 0, comments: p.comment_count ?? 0, created: p.taken_at ?? 0, lift: 0 })));
const tt = await run("tiktok.posts", { username: c.tiktok, limit: 10 });
keepNew((tt?.items ?? []).map((v: any): Post => ({
network: "tiktok", handle: c.tiktok, id: v.id, url: `https://www.tiktok.com/@${c.tiktok}/video/${v.id}`,
text: v.desc ?? "", likes: v.stats?.diggCount ?? 0, comments: v.stats?.commentCount ?? 0, created: v.createTime ?? 0, lift: 0 })));
}lift is how far a new post beats the account's median: 3 means three times its usual likes. Swap diggCount for stats.playCount if you would rather rank TikTok by views. A handle that does not exist, or a private account, comes back as a failed run with no charge, so one bad handle does not stop the loop.
How do you read the comments on the posts that took off?
Not every post deserves a comment read. Rank yesterday's posts by lift, so a small account's breakout beats a big account's ordinary day, and read comments on the top three per network:
const top = (network: Post["network"]) =>
posts.filter((p) => p.network === network).sort((a, b) => b.lift - a.lift).slice(0, 3);
const threads: { post: Post; comments: { text: string; likes: number }[] }[] = [];
for (const post of top("instagram")) {
const out = await run("instagram.comments", { url: post.url });
const items = out?.data?.items ?? [];
threads.push({ post, comments: items.map((c: any) => ({ text: c.text ?? "", likes: c.comment_like_count ?? 0 })) });
}
for (const post of top("tiktok")) {
const out = await run("tiktok.comments", { video_id: post.id, limit: 50 });
const items = out?.comments ?? [];
threads.push({ post, comments: items.map((c: any) => ({ text: c.text ?? "", likes: c.digg_count ?? 0 })) });
}From the CLI, one post at a time:
naive tools run instagram.comments --arg url=https://www.instagram.com/p/POST_CODE/
naive tools run tiktok.comments --arg video_id=7694359043367783702 --arg limit:=50Comments arrive ranked the way the network ranks them, so the first page holds the ones most people saw. For deeper TikTok threads, naive tools get tiktok lists every TikTok action with its price, including the paged comment actions covered in the TikTok comments API guide.
How do you add sentiment to the digest?
Naive returns comment text; the model you already use scores it. Keep the labels small so the numbers mean something from one day to the next:
- Positive, negative, neutral or question. Weight each comment by its likes: a complaint with 300 likes speaks for more people than ten with none.
- Quote two comments per post: the most-liked complaint and the most-liked question. Complaints show where a competitor is weak ("where is my order?" under a sale post is a shipping problem, not a product one). Questions show what buyers want to know before they buy.
- Keep yesterday's scores. Save each day's counts (a JSON file next to the script is enough) and compare: a day where negative share doubles is the line worth reading first.
Then write the email body as plain text and send it from the agent's inbox:
const lines = threads.map(({ post, comments }) =>
`${post.network} @${post.handle}: ${post.likes} likes (${post.lift.toFixed(1)}x usual), ${post.comments} comments\n${post.url}\n` +
`Top comment: ${comments.sort((a, b) => b.likes - a.likes)[0]?.text ?? "(none)"}`,
);
await naive.emails.send(process.env.WATCH_IDENTITY!, process.env.WATCH_INBOX!, {
to: ["you@yourcompany.com"], // the email you signed up with
subject: `Competitor digest: ${posts.length} new posts`,
text: [`${posts.length} new posts in the last 24 hours.`, "", ...lines].join("\n\n"),
});Pass the comment lists to your model before the send if you want the labels and the two quotes in each section. Bodies are plain text: no HTML, attachments or cc. The email inbox guide covers replies, custom domains and limits.
How do you run it every day?
The tools do not schedule themselves; your script runs on whatever clock you already have. A crontab line on a server, or a scheduled CI job, is enough:
on:
schedule:
- cron: "0 7 * * *" # 07:00 UTC daily
jobs:
digest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npx tsx digest.ts
env:
NAIVE_API_KEY: ${{ secrets.NAIVE_API_KEY }}
WATCH_IDENTITY: ${{ secrets.WATCH_IDENTITY }}
WATCH_INBOX: ${{ secrets.WATCH_INBOX }}Give the key a daily budget in the console so a runaway loop stops at a number you chose, and check what each run spent with naive tools runs.
Can you run it from Claude or ChatGPT without code?
Yes, for an on-demand report. Add Naive as a custom connector with this URL and sign in; there is no key to paste:
https://mcp.usenaive.ai/v1/mcp- Claude: Customize, Connectors, Add custom connector. Name it Naive, paste the URL, then Connect and Approve.
- Claude Code:
claude mcp add --transport http naive https://mcp.usenaive.ai/v1/mcp, then/mcpand Authenticate. - ChatGPT: Plugins, Add, Add custom MCP server, name it Naive, paste the URL, choose OAuth and Approve. Custom MCP servers need a Business, Enterprise or Edu workspace (developer mode); on other plans, use Claude.
Then ask in plain words:
Competitor One is @competitor_one on Instagram and @competitorone on TikTok; Competitor Two is
@competitor.two and @competitor_two_official. List their posts from the last 24 hours, rank them
against each account's usual likes, read the comments on the top 3 on each network, label them
positive, negative or question, and email me a short digest from my competitor-watch inbox.The assistant finds the actions with tools_search and runs each with tools_execute, for example {"tool": "instagram.posts", "arguments": {"input": {"username": "competitor_one", "limit": 12}}, "writes": false}. Every call is billed from the same balance. A chat only acts when you write to it, so for a digest that arrives on its own every morning, use the script.
What does it cost?
For 5 competitors on both networks, with comments on the top 3 posts per network:
| Item | Calls a day | Price each | Cost a day |
|---|---|---|---|
instagram.posts | 5 | $0.002 | $0.01 |
tiktok.posts | 5 | $0.00015 | $0.00075 |
instagram.comments | 15 | $0.002 | $0.03 |
tiktok.comments | 15 | $0.001 | $0.015 |
| Digest email to you | 1 recipient | $0.0008 | $0.0008 |
| Total | about $0.06 a day, about $1.70 a month |
Your model's cost for the sentiment labels comes on top and depends on the model. New accounts get $1 of free credit with no card, which covers more than two weeks of this run. Emailing anyone other than the address you signed up with unlocks after a first $10 top-up.
Verified run
Three real calls on production on 2026-11-26, against public accounts, timed from the client through POST /v1/tools/runs:
| Call | Input | Returned | Time | Cost |
|---|---|---|---|---|
instagram.posts | a large consumer brand, limit 3 | 12 posts (the page size is fixed) with captions, likes and comment counts | 8.7 s | $0.002 |
instagram.comments | that brand's newest post URL | 15 comments under data.items, each with comment_like_count | 8.5 s | $0.002 |
tiktok.comments | one public video id, limit 50 | 49 comments under comments, each with digg_count | 6.7 s | $0.001 |
In a separate check, tiktok.posts with limit 3 returned exactly 3 videos.
Each call is a live read, so expect seconds per call. Run the handles in parallel when the list grows.
Safety: Ask me first
The monitor reads public data and never posts, likes, follows or comments. The one action that speaks is the email. A digest to yourself is low risk, but if you add teammates or clients as recipients, set the identity's Send email rule to always ask in the app: each send then waits for a person to approve it, and an unapproved send expires after 24 hours. The approvals docs cover the rules, and how to add human approval to an AI agent covers the pattern.
Use the data the way you would use what you saw by scrolling: on public business accounts, within each network's terms and the privacy law where you operate. Do not build profiles of the individual people in the comments. This is not legal advice.
When not to use Naive
- You need years of history or share-of-voice across the whole network. Social listening suites keep archives and track every mention of a brand, not only the brand's own posts.
- You need your own accounts' analytics. Your reach, follower demographics and ad results come from the networks' business tools, not from public reads.
- You track hundreds of brands a day. At that volume a dedicated data contract can cost less than per-call pricing.
- You need private content. Private accounts, close-friends stories and DMs are out of reach, by design.
Naive fits when you want a small, cheap monitor you own: a handful of competitors, two networks, comments where they matter, and one email a day, on a key that also gives the agent an inbox. Want the same data in a chat? Read one MCP connector for TikTok, Instagram and YouTube data.
Get started
- Get a key with $1 free credit, no card: developers.usenaive.ai/signup.
- Or hand your agent this line: set up https://usenaive.ai/developers/skill.md.
- Read the tools docs and email docs, or browse everything on the developer platform.
FAQ
- Can an AI agent monitor competitors' Instagram accounts?
- Yes. On Naive, instagram.posts takes a username and returns the account's recent posts with captions, likes, comment counts and views, for $0.002 per call. Run it once a day per competitor, keep the posts newer than your last run, and the agent has a feed of everything they published.
- Is there a competitor TikTok tracker API?
- Yes. tiktok.posts takes a username and returns recent videos with play, like, comment and share counts for $0.00015 per call. tiktok.comments then reads up to 50 comments on any video for $0.001 per call.
- How much does it cost to monitor 5 competitors every day?
- About $0.06 a day, or roughly $1.70 a month: 5 Instagram post lists ($0.01), 5 TikTok post lists ($0.00075), comments on 15 Instagram posts ($0.03) and 15 TikTok videos ($0.015), plus one digest email ($0.0008). New accounts get $1 of free credit with no card.
- Can it do sentiment analysis on competitors' comments?
- Naive returns the comments as JSON; your agent's own model labels them. A good digest counts positive, negative and question comments per post and quotes the most-liked complaint and the most-liked question.
- Do I need an Instagram or TikTok account to track competitors?
- No. Every read works on public data with one Naive key and no social login. Private accounts, stories behind a follow and DMs are out of reach by design.
- Can I run it from ChatGPT or Claude instead of code?
- Yes. Add https://mcp.usenaive.ai/v1/mcp as a custom connector and ask for the report in plain words. Claude supports custom connectors on its plans; in ChatGPT, custom MCP servers need a Business, Enterprise or Edu workspace. A chat only runs when you ask, so a daily schedule needs code or cron.