Use cases › Social Listening
Track brand mentions on social media
Collect posts and comments about your brand from TikTok, Instagram, YouTube, X and Threads, in one JSON shape.
- 01Search for the brand
Search TikTok, YouTube and Threads by keyword. Every platform answers in the same JSON envelope.
- 02Read the comments
Pull the comments under your own posts on Instagram, X, TikTok or YouTube by post link.
- 03Review what is new
Save each mention with its platform and time, then send new ones to a sheet or a chat.
Sources you’ll use
5TikTok profiles, videos, comments, hashtags, music and search results from public accounts.
Instagram profiles, posts, reels, stories, comments and hashtag posts from public accounts.
YouTube channels, videos, comments, transcripts, playlists and search results.
X posts with text, media and engagement counts, top replies and a user’s tweets. No login.
Threads posts with text, media and engagement counts, plus replies, search and user posts.
import os, requests KEY = os.environ["ZAPI_KEY"] BRAND = "your brand" IG_POST = "https://www.instagram.com/p/<code>/" X_POST = "https://x.com/<user>/status/<id>" CALLS = [ ("TikTok", "tiktok-scraper/search", {"keywords": BRAND}, "videos"), ("YouTube", "youtube-scraper/search", {"query": BRAND}, "items"), ("Threads", "threads-scraper/search", {"query": BRAND, "type": "recent"}, "items"), ("Instagram", "instagram-scraper/comments", {"url": IG_POST}, "comments"), ("X", "x-scraper/replies", {"url": X_POST}, "replies"), ] for platform, path, params, field in CALLS: r = requests.get( "https://api.zapi.ink/v1/social-media:" + path, params=params, headers={"x-api-key": KEY}, timeout=60, ) for m in r.json()["data"][field]: who = (m.get("author") or {}).get("username") or (m.get("channel") or {}).get("name") print(platform, who, m.get("title") or m.get("text"))
What you get
Example outputQuestions
Can I collect from private accounts?
No. Zapi reads posts and comments that anyone can open without logging in. Use the data within each platform’s terms and our Acceptable Use Policy.
How many comments come back per call?
It depends on the source. Instagram comments take a limit of up to 200, YouTube returns about 20 per page, X returns the first page of top replies and Threads search returns one page of about 20 posts.
Can I pull comments for many posts at once?
Yes. Instagram and TikTok comments can run as one bulk job. Bulk jobs need the Ultra or Max plan.
What if a platform changes its page?
We fix the source on our side. Your request and the response shape stay the same.
Start building today.
Free key, 600 Zap a month and one response shape for every source.