Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

Social media scraping

Social media scraping collects public posts, profiles, comments, hashtags and engagement counts from platforms like Reddit, YouTube, TikTok and X. Zenrows fetches the pages a logged-out visitor sees, renders their JavaScript, and returns HTML, Markdown or JSON for listening, creator research and trend tracking.

Updated

Sample output: one public video post
{
  "platform": "tiktok",
  "url": "https://www.tiktok.com/@example_account/video/7425000000000000000",
  "account": {
    "handle": "@example_account",
    "followers": 184300,
    "verified": false
  },
  "caption": "Three ways to fold a fitted sheet, ranked",
  "hashtags": ["laundryhacks", "homeorganization"],
  "posted_at": "2026-10-09T17:20:00Z",
  "duration_seconds": 41,
  "views": 1250000,
  "likes": 96400,
  "comments": 1830,
  "shares": 5210,
  "sound": "original sound",
  "collected_at": "2026-10-12T09:00:00Z"
}
Illustrative. The page shows counts like "1.2M": store numbers with the collection time, since engagement keeps moving after posting.

What teams collect from social media

Most projects read a few public page types: profile, post, comment thread, search or hashtag results.

The job decides which, and how often.

JobData you collectTypical sources
Social listening Posts and comments naming a brand, product or topic Reddit search and threads, YouTube comments, TikTok search, public forums
Influencer research Profile stats, recent posts, engagement per post TikTok and YouTube public profiles, Twitch channels
Trend and hashtag tracking Hashtag volume, top posts, sounds, formats over time TikTok hashtag pages, YouTube search, X public posts
Comment mining for product feedback Comment text, replies, likes, timestamps YouTube review videos, Reddit product communities
Competitor content benchmarking Cadence, formats, engagement of competitor accounts Public brand pages on TikTok, YouTube and X
Community and creator platforms Posts, subscriber counts, comment threads substack.com, fandom.com, wordpress.com blogs

Why social media scraping fails

Social platforms build each page in the browser, counts change by the minute, and repeat requests from one IP get rate-limited.

What it looks like

Errors, empty pages or challenges on Reddit and TikTok

How Zenrows handles it

Zenrows' stealth and retries get through

How to scrape social media data with Zenrows

  1. List the public pages: profiles, posts, searches, hashtags a logged-out visitor can open.
  2. Fetch with Adaptive Stealth Mode, which escalates to rendering and stealth only when needed.
  3. Load the full thread when it matters: page actions that scroll, or a Browser session in Playwright.
  4. Structure and store: Extract or CSS selectors, counts as numbers, a timestamp on every record.
  5. Refresh on a schedule: re-fetch recent posts in Batch for an engagement curve per post.
# pip install requests
import requests

params = {
    "apikey": "YOUR_ZENROWS_API_KEY",
    "url": VIDEO_URL,  # a public video or post page
    "mode": "auto",  # Adaptive Stealth Mode
    "extract": "auto",
}
response = requests.get("https://api.zenrows.com/v1/", params=params)
print(response.json())

What success looks like

MeasureWhat good looks likeHow to check it
Field completeness Text, handle, timestamp and counts on nearly every post Empty fields per platform, per run
Thread depth Comments to the end of the thread, or your set depth Stored comments against the displayed count
Engagement history Readings at fixed intervals, not one snapshot Readings per post in its first week
Platform coverage Every platform returns data every run Successful requests per platform per day
Public-only scope No login-gated or private pages Audit source URLs against allowed page types
Refresh run time The daily refresh fits its window as the list grows Start and end time of each Batch job

Social media scraping FAQ

  • Turning public posts, profiles, comments, hashtags and engagement counts into records, from pages a logged-out visitor sees. Used for listening, creator research, trends and sentiment datasets.

  • It depends. Public content is widely collected, but platform terms apply and posts hold personal data under GDPR and CCPA: take only what you need, skip sensitive categories, pseudonymise handles. Not legal advice; ask your legal team.

  • Zenrows is built for public data a logged-out visitor can open. For your own accounts' data (ad metrics, page insights), use the platform's official API with your credentials and join it with the public data.

  • Any platform visible logged out: Reddit threads and search; YouTube videos, channels and comments; TikTok videos, profiles and hashtags; public X posts; Substack and Fandom. What shows without login varies, so test your page types before scaling.

  • Official APIs suit your own accounts but cap volume, often cost money and exclude others' content. Scraping reads public pages across platforms in one format. Many use both: official for owned channels, scraping for the conversation.

  • Connect the Zenrows MCP server to Claude, Cursor or another client and ask, say, for the last ten videos on some YouTube channels with views; you get a table. For repeat jobs, the CLI runs it in one command from a terminal or cron.

  • What the platform still shows, like older videos or a thread's full comments. A page only shows today's counts, so for engagement history start early and store a reading per visit.

Turn the live web into usable data.