Facebook Post Info avatar

Facebook Post Info

Pricing

from $3.00 / 1,000 facebook-full-data

Go to Apify Store
Facebook Post Info

Facebook Post Info

Extracts basic details: Title, Creation date, Likes, Comments, Author name and URL from public Facebook post, image, reel, video, and story URLs.

Pricing

from $3.00 / 1,000 facebook-full-data

Rating

0.0

(0)

Developer

Sergio Gour

Sergio Gour

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

a day ago

Last modified

Share

Extract basic metadata from public Facebook URLs that represent a single piece of content, including standard posts, photos, reels, videos, and publicly accessible stories.

This Actor is designed for quick per-URL extraction. It opens only the supplied page, reads visible page content and page metadata, and returns one dataset item per input URL.

What it extracts

  • Post title
  • Post creation date
  • Number of likes, if visible on the loaded page
  • Number of comments, if visible on the loaded page
  • Author name
  • Author URL

Supported URL types

  • Facebook posts
  • Facebook photos / images
  • Facebook reels
  • Facebook videos
  • Facebook stories, when publicly accessible without login

Input

{
"postUrls": [
"https://www.facebook.com/username/posts/123456789012345",
"https://www.facebook.com/reel/123456789012345"
],
"maxConcurrency": 3,
"requestTimeoutSecs": 90
}

Output

Each input URL produces one result item like this:

{
"url": "https://www.facebook.com/reel/123456789012345",
"resolvedUrl": "https://www.facebook.com/reel/123456789012345",
"postType": "reel",
"title": "Example title",
"createdAt": "2025-12-01T09:15:00.000Z",
"likesCount": 124,
"commentsCount": 18,
"authorName": "Example Author",
"authorUrl": "https://www.facebook.com/example.author",
"DeletedPost": false,
"isPublicAccessible": true,
"extractionNotes": []
}

Behavior and limitations

  • The Actor does not crawl beyond the supplied post URL.
  • The Actor does not open secondary views just to compute likes or comments.
  • If the page does not visibly show likes or comments, the Actor returns -1 for that field.
  • If Facebook shows a login wall or "content isn't available" screen, the Actor returns null or -1 where appropriate, marks isPublicAccessible as false, and sets DeletedPost to true when one of Facebook's deleted or unavailable messages is visible on the page.
  • Facebook changes its public page structure frequently, so some edge cases may need future selector updates.

Pay-per-event monetization

This Actor supports Apify pay-per-event monetization with these custom event names:

  • facebook-no-data: the URL was processed but no meaningful data was extracted
  • facebook-partial-data: some meaningful fields were extracted, but not all core fields were present
  • facebook-full-data: all core fields were extracted

Recommended Apify Console setup:

  • Enable synthetic event apify-actor-start to cover startup cost
  • Disable synthetic event apify-default-dataset-item to avoid double charging for dataset output
  • Add prices for facebook-no-data, facebook-partial-data, and facebook-full-data

The Actor checks the remaining chargeable budget and stops processing new URLs when the run reaches the user's maximum total charge.

Local development

Install dependencies:

$npm install

Install the Playwright browser for local runs:

$npx playwright install chromium

Create local input in storage/key_value_stores/default/INPUT.json and run:

$npm start

Apify-ready project files

  • .actor/actor.json contains Actor metadata used during deployment.
  • .actor/input_schema.json defines the Apify input UI and input validation.
  • .actor/dataset_schema.json documents the dataset output fields in Console.
  • CHANGELOG.md provides release notes for published versions.
  • README.md becomes the Actor README shown in Apify Console and Store.

Short description:

Extract title, date, likes, comments, and author details from public Facebook post URLs.

Suggested categories:

  • Social media
  • Web scraping
  • Data extraction