social-scraping

v2026.09.24

Scrape social media profiles, posts, comments, followers, and search across 20+ platforms via x402. USE FOR: - Getting TikTok, Instagram, YouTube, LinkedIn, X/Twitter, Facebook, or Reddit profiles - Fetching a user's posts, stories, highlights, videos, or transcripts - Getting comments, replies, and reactions on posts - Listing followers and following for any account - Searching posts, hashtags, and profiles across platforms - Scraping ad libraries (Facebook, TikTok, Google, LinkedIn), Facebook Marketplace, Events, and Groups - GitHub users, repos, and trending; Rumble, Threads, Bluesky, Pinterest, Twitch, Spotify, and more - UGC research via the Lightreel agent: hooks, trends, creator search, scripts, briefs - Cross-platform social media research and monitoring TRIGGERS: - "tiktok", "instagram", "facebook", "reddit", "youtube", "linkedin", "twitter" - "get followers", "who follows", "following list" - "scrape profile", "get posts from", "social media data" - "instagram stories", "tiktok videos", "facebook page", "youtube channel" - "ad library", "facebook ads", "tiktok ads", "marketplace" - "ugc", "hooks", "creator search", "content trends" - "cross-platform", "social media research" IMPORTANT: StableSocial uses an async two-step flow. Step 1: POST triggers data collection (paid, $0.06). Step 2: Poll GET /api/jobs/{jobId} (or legacy GET /api/jobs?token=...) until finished (free). All endpoints are $0.06 per call.

GitHub
安装命令
npx skhub add merit-systems/social-scraping
Markdown
SKILL.md

Social Media Scraping with StableSocial

Scrape profiles, posts, comments, followers, and search across 20+ platforms: TikTok, Instagram, YouTube, LinkedIn, X/Twitter, Facebook, Reddit, GitHub, Rumble, Threads, Bluesky, Pinterest, Twitch, Spotify, and more — plus ad libraries and a UGC research agent (Lightreel). All endpoints cost $0.06 per call.

Three endpoint families:

  • Legacy platform endpoints (/api/tiktok/*, /api/instagram/*, /api/facebook/*, /api/reddit/*) — profiles, posts, comments, followers, search
  • Scrape Creators suite (/api/sc/*) — much broader platform and data coverage, including transcripts, ad libraries, and niche platforms
  • Lightreel UGC research agent (/api/lightreel/*) — durable-job research tasks (hooks, trends, creator search, scripts, briefs)

Setup

See rules/getting-started.md for installation and wallet setup.

Notes

Use npx agentcash@latest fetch for paid POST triggers. Use npx agentcash@latest fetch for free GET polling.

IMPORTANT: Use exact endpoint paths from the Quick Reference tables below. All paths include a platform prefix (e.g. https://stablesocial.dev/api/tiktok/...).

How It Works: Async Two-Step Flow

Every request follows a trigger-then-poll pattern:

Step 1: Trigger (paid, $0.06)

npx agentcash@latest fetch https://stablesocial.dev/api/instagram/profile -m POST -b '{"handle": "natgeo"}'

Returns 202 Accepted with a durable job ID, poll URL, and legacy JWT token:

{"jobId": "abc123", "status": "pending", "pollUrl": "https://stablesocial.dev/api/jobs/abc123", "token": "eyJhbGciOiJIUzI1NiIs..."}

Step 2: Poll (free)

Poll the durable job by ID (requires SIWX wallet auth from the paying wallet — the agentcash CLI handles this automatically):

npx agentcash@latest fetch https://stablesocial.dev/api/jobs/abc123

Or poll with the legacy token (no wallet auth needed):

npx agentcash@latest fetch "https://stablesocial.dev/api/jobs?token=eyJhbGciOiJIUzI1NiIs..."
  • {"status": "pending"} — poll again in 3-5 seconds
  • {"status": "finished", "data": {...}} — data is ready
  • {"status": "failed", "error": "..."} — collection failed (not charged)

Tokens expire after 30 minutes; durable jobs remain pollable by jobId. Jobs typically finish in 5-60 seconds (Lightreel jobs can take longer). GET /api/jobs (no token) lists your durable jobs.

Quick Reference — TikTok

TaskEndpointDepends On
Get profilehttps://stablesocial.dev/api/tiktok/profile—
Get postshttps://stablesocial.dev/api/tiktok/postsprofile
Post commentshttps://stablesocial.dev/api/tiktok/post-commentsposts
Comment replieshttps://stablesocial.dev/api/tiktok/comment-repliespost-comments
Followershttps://stablesocial.dev/api/tiktok/followersprofile
Followinghttps://stablesocial.dev/api/tiktok/followingprofile
Search postshttps://stablesocial.dev/api/tiktok/search—
Search hashtaghttps://stablesocial.dev/api/tiktok/search-hashtag—
Search profileshttps://stablesocial.dev/api/tiktok/search-profiles—
Search by musichttps://stablesocial.dev/api/tiktok/search-music—

Input: {"handle": "username"} for profile/posts/followers. {"query": "keyword"} for search.

Quick Reference — Instagram

TaskEndpointDepends On
Get profilehttps://stablesocial.dev/api/instagram/profile—
Get postshttps://stablesocial.dev/api/instagram/postsprofile
Post commentshttps://stablesocial.dev/api/instagram/post-commentsposts
Comment replieshttps://stablesocial.dev/api/instagram/comment-repliespost-comments
Followershttps://stablesocial.dev/api/instagram/followersprofile
Followinghttps://stablesocial.dev/api/instagram/followingprofile
Storieshttps://stablesocial.dev/api/instagram/storiesprofile
Highlightshttps://stablesocial.dev/api/instagram/highlightsprofile
Search postshttps://stablesocial.dev/api/instagram/search—
Search tagshttps://stablesocial.dev/api/instagram/search-tags—

Input: {"handle": "username"} for profile/posts/followers. {"query": "keyword"} for search.

Quick Reference — Facebook

TaskEndpointDepends On
Get profilehttps://stablesocial.dev/api/facebook/profile—
Get postshttps://stablesocial.dev/api/facebook/postsprofile
Post commentshttps://stablesocial.dev/api/facebook/post-commentsposts
Comment replieshttps://stablesocial.dev/api/facebook/comment-repliespost-comments
Followershttps://stablesocial.dev/api/facebook/followersprofile
Followinghttps://stablesocial.dev/api/facebook/followingprofile
Search postshttps://stablesocial.dev/api/facebook/search—
Search peoplehttps://stablesocial.dev/api/facebook/search-people—
Search pageshttps://stablesocial.dev/api/facebook/search-pages—
Search groupshttps://stablesocial.dev/api/facebook/search-groups—

Input: {"handle": "username"} or {"profile_id": "id"} for profile. {"query": "keyword"} for search.

Quick Reference — Reddit

TaskEndpointDepends On
Get posthttps://stablesocial.dev/api/reddit/post—
Post commentshttps://stablesocial.dev/api/reddit/post-commentspost
Get commenthttps://stablesocial.dev/api/reddit/comment—
Search postshttps://stablesocial.dev/api/reddit/search—
Search profileshttps://stablesocial.dev/api/reddit/search-profiles—
Subreddit postshttps://stablesocial.dev/api/reddit/subreddit—

Input: {"post_id": "id"} for post details. {"query": "keyword"} for search. {"subreddit": "name"} for subreddit.

Quick Reference — Scrape Creators Suite (/api/sc/*)

A larger, newer suite (~155 endpoints, all $0.06, same trigger-then-poll flow) covering many more platforms and data types. Coverage by platform:

PlatformBase pathCoverage highlights
TikTokhttps://stablesocial.dev/api/sc/tiktok/...profile, videos, video transcripts, comments/replies, followers/following, audience demographics, search (users/hashtag/keyword/top), trending feed, popular creators/hashtags, songs, Shop products/reviews
Instagramhttps://stablesocial.dev/api/sc/instagram/...profile, posts, reels, post/reel info, media transcripts, comments, highlights, hashtag/profile/reels search, trending reels
YouTubehttps://stablesocial.dev/api/sc/youtube/...channel details/videos/playlists/lives/shorts/community posts, video details, transcripts, sponsors, comments/replies, search, trending shorts
LinkedInhttps://stablesocial.dev/api/sc/linkedin/...person profile (pass a linkedin.com/in/... URL), company page/posts, post details/transcript, search posts, ads search/details
Facebookhttps://stablesocial.dev/api/sc/facebook/...profile, posts/reels/photos, post transcript, comments/replies, group posts, Ad Library (search/details/transcript/company ads), Marketplace (search/item/location), Events (search/details)
X/Twitterhttps://stablesocial.dev/api/sc/twitter/...profile, user tweets, tweet details/transcript, communities
Reddithttps://stablesocial.dev/api/sc/reddit/...subreddit details/posts/search, post comments/transcript, search
GitHubhttps://stablesocial.dev/api/sc/github/...user, repositories, PRs, activity, followers/following, contributions, repository, trending repos/developers
Rumblehttps://stablesocial.dev/api/sc/rumble/...search, channel videos, video, transcript, comments
Ad libraries.../api/sc/tiktok/ad-library/..., .../api/sc/google/..., .../api/sc/linkedin/ads/...TikTok Ad Library search/ad, Google company ads/ad details/advertiser search, LinkedIn ads
Othershttps://stablesocial.dev/api/sc/...Truth Social, Threads, Bluesky, Pinterest, Twitch, Spotify, SoundCloud, Kwai, Kick, Snapchat, Google Search, Amazon Shop, link-in-bio pages (Linktree, Komi, Pillar, Linkbio, Linkme), age/gender detection

Representative examples:

npx agentcash@latest fetch https://stablesocial.dev/api/sc/tiktok/profile -m POST -b '{"handle": "username"}'
npx agentcash@latest fetch https://stablesocial.dev/api/sc/youtube/video/transcript -m POST -b '{"url": "https://youtube.com/watch?v=..."}'
npx agentcash@latest fetch https://stablesocial.dev/api/sc/linkedin/profile -m POST -b '{"url": "https://linkedin.com/in/someone"}'
npx agentcash@latest fetch https://stablesocial.dev/api/sc/facebook/adLibrary/search/ads -m POST -b '{"query": "brand name"}'

Input: varies per endpoint — many accept {"handle": ...} or an ID, some accept a full {"url": ...} (e.g. LinkedIn profile). Check the endpoint schema (npx agentcash@latest discover https://stablesocial.dev) when unsure.

Quick Reference — Lightreel UGC Research Agent (/api/lightreel/*)

An AI research agent for UGC/short-form content. All $0.06 per call; returns a durable job immediately — poll GET /api/jobs/{jobId}. Jobs are research tasks and can take minutes, not seconds.

TaskEndpoint
Ask the agent anythinghttps://stablesocial.dev/api/lightreel/chat
Top-performing hookshttps://stablesocial.dev/api/lightreel/top-hooks
UGC video searchhttps://stablesocial.dev/api/lightreel/video-search
Creator search (incl. contact info)https://stablesocial.dev/api/lightreel/creator-search
Content trendshttps://stablesocial.dev/api/lightreel/trends
Account audit/feedbackhttps://stablesocial.dev/api/lightreel/account-feedback
Competitor strategyhttps://stablesocial.dev/api/lightreel/competitor-strategy
Script ideashttps://stablesocial.dev/api/lightreel/script-ideas
Video ideashttps://stablesocial.dev/api/lightreel/video-ideas
Video/draft feedbackhttps://stablesocial.dev/api/lightreel/video-feedback
UGC briefhttps://stablesocial.dev/api/lightreel/ugc-brief
Content calendarhttps://stablesocial.dev/api/lightreel/content-calendar
Brand mentionshttps://stablesocial.dev/api/lightreel/brand-mentions
Creator performancehttps://stablesocial.dev/api/lightreel/creator-performance

Input: /chat takes {"question": "..."} (required), optional conversation_id to continue a conversation and response_fields (up to 5 fields, type string or array) for structured output. Task endpoints take task-specific fields — e.g. /top-hooks takes {"topic": "..."} (required) plus optional timeframe, platform, max_hooks, conversation_id.

npx agentcash@latest fetch https://stablesocial.dev/api/lightreel/top-hooks -m POST -b '{"topic": "skincare UGC ads"}'

Free SIWX-authed extras: GET /api/lightreel/chats lists your Lightreel chats; GET /api/lightreel/chat/{conversationId} fetches a transcript (must be the wallet that paid).

Data Dependencies

Some endpoints require a prior collection. For example, to get followers you must first trigger the profile:

# 1. Trigger profile collection
npx agentcash@latest fetch https://stablesocial.dev/api/instagram/profile -m POST -b '{"handle": "natgeo"}'
# Poll until finished...

# 2. Now fetch followers (depends on profile)
npx agentcash@latest fetch https://stablesocial.dev/api/instagram/followers -m POST -b '{"handle": "natgeo"}'
# Poll until finished...

Pagination

When results are paginated, the response includes page_info.has_next_page and a cursor. Pass the cursor to fetch the next page (each page is a new paid POST):

npx agentcash@latest fetch https://stablesocial.dev/api/tiktok/followers -m POST -b '{"handle": "username", "cursor": "abc123"}'

Key Parameters

  • handle / profile_id — target account
  • max_page_size — results per page (default varies, max 100)
  • max_followers — how many followers to collect (default 500)
  • max_posts / max_results — item limits (default 50)
  • cursor — pagination cursor from previous response
  • order_by — sort order: date_desc, date_asc, id_desc

Workflows

Profile Deep Dive

  • (Optional) Check balance: npx agentcash@latest balance
  • Trigger profile collection
  • Poll until finished
  • Trigger posts collection
  • Poll until finished
  • Optionally fetch comments, followers

Cross-Platform Search

  • Search same keyword across multiple platforms
  • Compare results and synthesize findings
npx agentcash@latest fetch https://stablesocial.dev/api/instagram/search -m POST -b '{"query": "brand name"}'
npx agentcash@latest fetch https://stablesocial.dev/api/tiktok/search -m POST -b '{"query": "brand name"}'
npx agentcash@latest fetch https://stablesocial.dev/api/reddit/search -m POST -b '{"query": "brand name"}'

Influencer Analysis

  • Get profile on target platform
  • Fetch recent posts with engagement
  • Get follower list for audience analysis
  • Check comments for sentiment

Competitive Intelligence

  • Search for competitor on target platform
  • Get competitor posts and engagement
  • Monitor competitor mentions across platforms
  • Analyze audience sentiment via comments
npx agentcash@latest fetch https://stablesocial.dev/api/instagram/profile -m POST -b '{"handle": "competitor"}'
npx agentcash@latest fetch https://stablesocial.dev/api/reddit/search -m POST -b '{"query": "competitor name"}'

Cost Estimation

All endpoints are $0.06 per trigger call. Polling is free.

TaskCallsCost
Single profile1$0.06
Profile + posts2$0.12
Full profile deep dive4-6$0.24-0.36
Cross-platform search (3 platforms)3$0.18
Competitor analysis4-8$0.24-0.48

vs social-intelligence Skill

The social-intelligence skill uses Reddit (stableenrich.dev). Use it for quick Reddit post lookups and discussions.

Use social-scraping (this skill) when you need:

  • TikTok, Instagram, YouTube, LinkedIn, X/Twitter, Facebook, Reddit, GitHub, or other platform data (beyond basic Reddit search)
  • Profiles, followers, following — not just search
  • Comments, replies, reactions, transcripts on posts and videos
  • Ad libraries, Marketplace, Events data
  • UGC research (hooks, trends, creators, scripts) via Lightreel
  • Cross-platform research
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

未指定

源路径

skills/social-scraping

默认分支

master

最新提交

522d5da

Tree SHA

9734508