Meta Posts Scraper avatar

Meta Posts Scraper

Under maintenance

Pricing

from $2.20 / 1,000 meta starters

Go to Apify Store
Meta Posts Scraper

Meta Posts Scraper

Under maintenance

Scrapes Facebook and Instagram posts by keywords and hashtags using Playwright. Returns raw post data including captions, engagement metrics (likes, comments, shares, views), images, and author info.

Pricing

from $2.20 / 1,000 meta starters

Rating

0.0

(0)

Developer

yourlocalhost

yourlocalhost

Maintained by Community

Actor stats

0

Bookmarked

13

Total users

2

Monthly active users

14 days ago

Last modified

Share

Meta Posts Scraper - Facebook & Instagram Post Scraper ๐Ÿš€

Scrape Facebook and Instagram posts by keyword and hashtag - no code required. Pull captions, likes, comments, shares, views, images, videos, top comments, and author details from both Meta platforms in one run, then export to JSON, CSV, Excel, or push straight into your own app via API.

โœ… Both platforms in one Actor ย โ€ขย  โœ… Keyword and hashtag search ย โ€ขย  โœ… Full engagement metrics ย โ€ขย  โœ… Structured, ready-to-use data ย โ€ขย  โœ… Schedule, monitor & integrate on Apify


โšก What you get in 60 seconds

Type in a few keywords or hashtags, hit Start, and get a clean, structured dataset of real Facebook and Instagram posts - the kind of social data that normally takes hours of manual copy-pasting or an expensive enterprise tool.

Without this ActorWith this Actor
Manually scrolling feeds and copy-pastingOne click, structured dataset
Separate tools for Facebook and InstagramBoth platforms, one run
Screenshots and guesswork on engagementExact likes, comments, shares, views
Data trapped in your browserExport to JSON/CSV/Excel or call the API

๐Ÿ‘ค Who it's for

  • Marketers & social listeners tracking brand mentions, sentiment, and campaign buzz
  • Content creators & agencies hunting viral posts and trending hashtags
  • E-commerce & dropshippers spotting trending products before they peak
  • Analysts & researchers benchmarking engagement across creators and competitors
  • Developers who want social data piped into a pipeline via a clean JSON API

โœจ Features

  • ๐Ÿ”Ž Keyword + hashtag search across Facebook and Instagram
  • ๐Ÿ“Š Full engagement metrics - likes/reactions, comments, shares, and (for Reels) views
  • ๐Ÿ–ผ๏ธ Rich media - image URLs, video source URLs, and poster thumbnails
  • ๐Ÿ’ฌ Top comments with author and body for sentiment analysis
  • ๐Ÿท๏ธ Hashtag extraction and author profile info (handle, URL, avatar)
  • ๐Ÿ” Optional login per platform to reach data behind authentication walls
  • ๐ŸŒ Proxy support (residential recommended) to scrape reliably at scale
  • ๐Ÿ“ฆ Structured output ready for BI tools, spreadsheets, and databases

๐Ÿ› ๏ธ How to use the Meta Posts Scraper

  1. Click Try for free / open the Actor in Apify Console.
  2. Choose your platform - Facebook, Instagram, or both.
  3. Enter your search keywords and/or hashtags.
  4. (Optional) Add login credentials and a residential proxy for richer, more reliable results.
  5. Set Posts per query and click Start.
  6. When the run finishes, open the Output / Dataset tab and export to JSON, CSV, or Excel - or grab it from the API.

๐Ÿ’ก Tip: Start small (e.g. postsPerQuery: 5) to preview the data shape, then scale up once you're happy.


๐Ÿ’ธ Pricing & how it scales

This Actor runs on the Apify platform, so you get scheduling, run monitoring, storage, proxy access, API, and 50+ integrations (Zapier, Make, Slack, Google Drive, webhooks) included around it.

  • Free plan - Apify gives you free monthly usage credits, enough to test the Actor end-to-end and pull your first sample datasets at $0. Perfect for a proof of concept.
  • Need more posts? A single run scales from a handful of posts to thousands. Upgrading from the free plan unlocks the compute, proxy bandwidth, and concurrency to collect tens of thousands of posts per month on a schedule - automatically.
  • Predictable costs - you only pay for what a run actually uses. Preview cost on a small run, then extrapolate linearly before scaling.

๐Ÿš€ From free to scale: the free tier is built for evaluation. When the data proves its value, a paid plan turns this from a one-off experiment into an automated, scheduled social-intelligence feed - no extra setup.

See the live Apify pricing page for current plan limits.


๐Ÿ“ฅ Input

FieldTypeRequiredDefaultDescription
platformsstringNo"both""both", "facebook", or "instagram"
searchKeywordsarrayNo[]Keywords to search for posts
hashtagsarrayNo[]Hashtags to search (without the #)
postsPerQueryintegerNo15Max posts per keyword/hashtag (1โ€“100)
fbEmailstringNo-Facebook email for login
fbPasswordstringNo-Facebook password (stored as a secret)
igUsernamestringNo-Instagram username for login
igPasswordstringNo-Instagram password (stored as a secret)
loginFacebookbooleanNotrueLog in to Facebook before scraping
loginInstagrambooleanNotrueLog in to Instagram before scraping
proxyConfigurationobjectNooffProxy settings - residential strongly recommended for Facebook/Instagram

Tip: Set loginFacebook / loginInstagram to false to scrape public data only without credentials.

Example input

{
"platforms": "both",
"searchKeywords": ["trending products", "viral gadgets"],
"hashtags": ["trending", "viralproducts"],
"postsPerQuery": 15,
"loginFacebook": false,
"loginInstagram": false,
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}

๐Ÿ“ค Output

Each post is stored as a separate record in the dataset.

FieldTypeDescription
platformstring"facebook" or "instagram"
post_idstringUnique post identifier
post_urlstringDirect URL to the post
author_handlestringAuthor username/handle
captionstringPost caption/text
likes_countnumberLikes/reactions
comments_countnumberComments
shares_countnumberShares
views_countnumberViews (Reels/video, when available)
post_datestringWhen the post was published
sourcestringThe keyword/hashtag that found this post
hashtags_listarrayHashtags used in the post
image_urlsarrayURLs of post images
top_commentsarrayTop comments (author + body)
extracted_atstringISO 8601 extraction timestamp

Example output

{
"platform": "instagram",
"post_id": "CxYz123456",
"post_url": "https://www.instagram.com/p/CxYz123456",
"author_handle": "@gadget_reviews",
"caption": "This portable blender is a game-changer! ๐Ÿ”ฅ #viralproducts #amazonfinds",
"likes_count": 12400,
"comments_count": 328,
"shares_count": 1540,
"views_count": 89000,
"post_date": "2026-03-01",
"source": "viralproducts",
"hashtags_list": ["viralproducts", "amazonfinds", "gadgets"],
"image_urls": ["https://scontent.example.com/post_image.jpg"],
"top_comments": [{ "author": "@jane", "body": "Need this!", "likes": 12 }],
"extracted_at": "2026-03-06T14:30:00.000Z"
}

๐Ÿ”— Integrations

Push results anywhere with the Apify platform's built-in integrations:

  • Webhooks to trigger your own services when a run finishes
  • Zapier / Make for no-code automation
  • Google Sheets / Drive, Slack, Airtable
  • REST API - fetch the dataset programmatically with one call

Building a wider social/e-commerce data pipeline? Pair this with other scrapers in the Apify Store for TikTok, YouTube, Amazon, and Google to enrich your dataset across channels.


โ“ FAQ

Do I need a Facebook or Instagram account? No - you can scrape public data with loginFacebook / loginInstagram set to false. Logging in can unlock richer data, but use a dedicated test account, never your personal one.

Why am I getting few or no results? Facebook and Instagram aggressively block datacenter IPs. Enable residential proxies via proxyConfiguration for reliable results - this is the single biggest factor in success rate.

Which platform should I choose? Use "both" for the widest coverage, or pick one to save time and cost.

What formats can I export? JSON, CSV, Excel, HTML, RSS, or via the API - directly from the dataset tab.

Can I run this on a schedule? Yes. Use Apify's Schedules to run the Actor hourly/daily and build an automatically updating dataset.

Is scraping social media legal? Scraping publicly available data is generally permitted, but you are responsible for complying with each platform's Terms of Service and applicable laws (including GDPR/CCPA). Do not collect personal or sensitive data without a lawful basis. See the disclaimer below.


โš ๏ธ Disclaimer

This Actor is intended for collecting publicly available information for legitimate purposes such as market research and analytics. You are solely responsible for how you use it and for compliance with Facebook's and Instagram's Terms of Service, robots.txt, and all applicable data-protection laws. Avoid scraping personal or sensitive data unless you have a lawful basis to do so.

๐Ÿ†˜ Support & feedback

Found a bug, a broken selector, or want a new field added? Open an issue on the Actor's Issues tab - feedback is welcome and helps improve the Actor. Need a tailored or larger-scale solution? Reach out and we'll help.


๐Ÿงฐ Built with

  • Apify SDK - Actor framework, proxy, and dataset management
  • Playwright - browser automation for Facebook and Instagram