CtrlK
BlogDocsLog inGet started
Tessl Logo

social-scraping

Scrape social media profiles, posts, comments, followers, and search across 6 platforms via x402. USE FOR: - Getting TikTok, Instagram, X/Twitter, Facebook, Reddit, or LinkedIn profiles - Fetching a user's posts, stories, highlights, or videos - Getting comments, replies, and reactions on posts - Listing followers and following for any account - Searching posts, hashtags, profiles, jobs, and ads across platforms - Cross-platform social media research and monitoring TRIGGERS: - "tiktok", "instagram", "facebook", "linkedin profile", "linkedin posts" - "get followers", "who follows", "following list" - "scrape profile", "get posts from", "social media data" - "instagram stories", "tiktok videos", "facebook page" - "linkedin company", "linkedin jobs", "linkedin ads" - "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?token=... until finished (free). All endpoints are $0.06 per call. Use `npx agentcash fetch` for paid POST triggers. Use `npx agentcash 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/...`).

Install with Tessl CLI

npx tessl i github:Merit-Systems/agentcash-skills --skill social-scraping
What are skills?

18

Does it follow best practices?

Validation for skill structure

Validation failed for this skill
This skill has errors that need to be fixed before it can move to Implementation and Discovery review.
SKILL.md
Review
Evals

Social Media Scraping with StableSocial

Scrape profiles, posts, comments, followers, and search across TikTok, Instagram, X/Twitter, Facebook, Reddit, and LinkedIn. All endpoints cost $0.06 per call.

Setup

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

How It Works: Async Two-Step Flow

Every request follows a trigger-then-poll pattern:

Step 1: Trigger (paid, $0.06)

npx agentcash fetch https://stablesocial.dev/api/x/profile -m POST -b '{"handle": "elonmusk"}'

Returns 202 Accepted with a JWT token:

{"token": "eyJhbGciOiJIUzI1NiIs..."}

Step 2: Poll (free)

npx agentcash 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. Jobs typically finish in 5-60 seconds.

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 — X/Twitter

TaskEndpointDepends On
Get profilehttps://stablesocial.dev/api/x/profile
Get postshttps://stablesocial.dev/api/x/postsprofile
Post replieshttps://stablesocial.dev/api/x/post-repliesposts
Post retweetshttps://stablesocial.dev/api/x/post-retweetsposts
Quote tweetshttps://stablesocial.dev/api/x/post-quotesposts
Followershttps://stablesocial.dev/api/x/followersprofile
Followinghttps://stablesocial.dev/api/x/followingprofile
Search postshttps://stablesocial.dev/api/x/search
Search profileshttps://stablesocial.dev/api/x/search-profiles

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 — LinkedIn

TaskEndpointDepends On
Member profilehttps://stablesocial.dev/api/linkedin/profile
Member postshttps://stablesocial.dev/api/linkedin/postsprofile
Company profilehttps://stablesocial.dev/api/linkedin/company
Company postshttps://stablesocial.dev/api/linkedin/company-postscompany
Post commentshttps://stablesocial.dev/api/linkedin/post-commentsposts
Comment replieshttps://stablesocial.dev/api/linkedin/comment-repliespost-comments
Post reactorshttps://stablesocial.dev/api/linkedin/post-reactorsposts
Search postshttps://stablesocial.dev/api/linkedin/search-posts
Search jobshttps://stablesocial.dev/api/linkedin/search-jobs
Search membershttps://stablesocial.dev/api/linkedin/search-members
Search companieshttps://stablesocial.dev/api/linkedin/search-companies
Search adshttps://stablesocial.dev/api/linkedin/search-ads

Input: {"member_id": "username"} for profile. {"company_id": "company"} for company. {"query": "keyword"} for search.

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 fetch https://stablesocial.dev/api/instagram/profile -m POST -b '{"handle": "natgeo"}'
# Poll until finished...

# 2. Now fetch followers (depends on profile)
npx agentcash 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 fetch https://stablesocial.dev/api/tiktok/followers -m POST -b '{"handle": "username", "cursor": "abc123"}'

Key Parameters

  • handle / profile_id / member_id / company_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_activities / max_results — item limits (default 50)
  • cursor — pagination cursor from previous response
  • order_by — sort order: date_desc, date_asc, id_desc
  • activity_type — LinkedIn: posts, articles, documents, media, comments
  • reaction_type — LinkedIn: LIKE, CELEBRATE, SUPPORT, LOVE, INSIGHTFUL, FUNNY

Workflows

Profile Deep Dive

  • (Optional) Check balance: npx agentcash wallet info
  • 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 fetch https://stablesocial.dev/api/x/search -m POST -b '{"query": "brand name"}'
npx agentcash fetch https://stablesocial.dev/api/instagram/search -m POST -b '{"query": "brand name"}'
npx agentcash fetch https://stablesocial.dev/api/tiktok/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 LinkedIn for competitor company
  • Get company posts and reactions
  • Search for competitor ads
  • Monitor employee activity
npx agentcash fetch https://stablesocial.dev/api/linkedin/company -m POST -b '{"company_id": "competitor"}'
npx agentcash fetch https://stablesocial.dev/api/linkedin/search-ads -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 X/Twitter (Grok) and Reddit on stableenrich.dev ($0.02/call, synchronous). Use it for quick X/Twitter keyword searches and Reddit post lookups.

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

  • TikTok, Instagram, Facebook, or LinkedIn data
  • Profiles, followers, following — not just search
  • Comments, replies, reactions on posts
  • LinkedIn jobs, ads, company data
  • Cross-platform research
Repository
Merit-Systems/agentcash-skills
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.