Meta Posts Scraper avatar

Meta Posts Scraper

Under maintenance

Pricing

from $1.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 $1.20 / 1,000 meta starters

Rating

0.0

(0)

Developer

yourlocalhost

yourlocalhost

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

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.

What it does

This Actor automates scraping across both Meta platforms. Select Facebook, Instagram, or both, then provide search keywords and/or hashtags. It navigates each platform, searches for your terms, and extracts post data — author handle, caption text, full engagement metrics, post date, hashtag list, and image URLs. Supports optional login for each platform to access richer data behind authentication walls.

Use cases

  • Social listening — track brand mentions, product buzz, and community sentiment
  • Viral content discovery — find trending posts and viral hashtags
  • Influencer analysis — benchmark engagement rates across creators
  • Competitive research — monitor competitor content performance on Meta platforms
  • Product discovery — feed social signals into e-commerce trend detection pipelines

Input

FieldTypeRequiredDefaultDescription
platformsstringNo"both"Which platforms: "both", "facebook", or "instagram"
searchKeywordsarrayNo[]Keywords to search for posts
hashtagsarrayNo[]Hashtags to search (without # symbol)
postsPerQueryintegerNo15Max posts per keyword/hashtag (1–100)
fbEmailstringNoFacebook email for login
fbPasswordstringNoFacebook password (stored as secret)
igUsernamestringNoInstagram username for login
igPasswordstringNoInstagram password (stored as secret)
loginFacebookbooleanNotrueWhether to log in to Facebook before scraping
loginInstagrambooleanNotrueWhether to log in to Instagram before scraping

Tip: Set loginFacebook / loginInstagram to false to scrape without authentication (public data only).

Example input

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

Output

Each post is pushed as a separate record to the Apify dataset.

FieldTypeDescription
platformstring"facebook" or "instagram"
post_idstringUnique post identifier
post_urlstringDirect URL to the post
author_handlestringAuthor username/handle
captionstringPost caption/text
likes_countnumberNumber of likes/reactions
comments_countnumberNumber of comments
shares_countnumberNumber of shares
views_countnumberNumber of views (if 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
extracted_atstringISO 8601 date-time of extraction

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"],
"extracted_at": "2026-03-06T14:30:00.000Z"
}

How to run

On Apify Platform

  1. Go to the Actor's page on Apify Console
  2. Select platforms, enter keywords/hashtags, and optionally provide login credentials
  3. Click Start and wait for the run to finish
  4. Download results from the Dataset tab in JSON, CSV, or Excel format

Locally

$apify run

Deploy to Apify

apify login
apify push

Built with

  • Apify SDK — actor framework and dataset management
  • Playwright — browser automation for Facebook and Instagram