Platforms · Facebook

Facebook Post Scraper API

Returns detailed information about a specific Facebook post: the post text, like count, comment count, share count, media attachments, author info, and the per-reaction breakdown on post.ext.reaction_counts ([{type, count}], highest first, zero-count reactions omitted: like, love, care, haha, wow, sad, anger). post.ext.media_type is video for a reel or a video, image for a single photo, carousel for an album, and null for a text-only or link-share post. post.content.duration_seconds is a video's length when Facebook sends one. It is null on a photo and can also be null on an older /videos/ post, so use post.ext.media_type to tell a video from a photo.

GET /api/v1/data/facebook/post · 1 credit per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Inputs

  • url (required): Full URL of the Facebook post, reel or video. A share link from Facebook's Copy link (`https://www.facebook.com/share/v/…`, `/share/p/…`, `/share/r/…` or `/share/…`) is accepted and resolved to the post it names.
  • get_transcript: Get transcript.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • source_data.computed.language (string): ISO 639-1 language code detected from the post text. Null when undetectable.
  • source_data.computed.save_rate (number): Saves divided by views, rounded to six places. Present only when the post has both a save count and a view count above zero.
  • source_data.post.author.avatar_url (string): URL to author profile picture
  • source_data.post.author.display_name (string): Author display name
  • source_data.post.author.username (string): Author username
  • source_data.post.author.verified (boolean): Whether the author account is verified
  • source_data.post.content.duration_seconds (number): Video/clip duration in seconds (null for non-video posts)
  • source_data.post.content.media_urls (any): URL(s) of the primary media. Single string for video/photo posts; array of strings for carousels.
  • source_data.post.content.text (string): Post caption, description, or text content
  • source_data.post.content.thumbnail_url (string): URL to thumbnail image
  • source_data.post.engagement.comments (number): Comment count. Both land on this same field.
  • source_data.post.engagement.likes (number): Like / reaction count
  • source_data.post.engagement.saves (number): Save / bookmark count. `null` on Instagram: the save count is platform-private and Instagram exposes no numeric save metric on any surface (never fabricated).
  • source_data.post.engagement.shares (number): Share / repost / retweet count.
  • source_data.post.engagement.views (number): View count (if available). For Instagram video/reels this is the play count: the headline 'Views' the IG app shows. Note: since mid-July 2026 Instagram's play count is Instagram-only. It no longer includes Facebook crosspost views (Meta-side change; the app UI changed identically).
  • source_data.post.ext.author_id (string): The creator's platform-native numeric user id.
  • source_data.post.ext.feedback_id (string)
  • source_data.post.ext.group.members (any): The group's member count.
  • source_data.post.ext.group.name (any): The group's name.
  • source_data.post.ext.hashtags (array): Hashtags parsed from the caption, lower cased without the #, each listed once in order.
  • source_data.post.ext.media_type (string): Media kind: image, video or carousel.
  • source_data.post.ext.mentions (array): Handles mentioned in the caption, lower cased with the @, each listed once in order.
  • source_data.post.ext.reaction_counts (array): Reaction counts by type.
  • source_data.post.flags.deleted (boolean): Whether the post is tombstoned (always present)
  • source_data.post.flags.nsfw (boolean): NSFW flag (null when platform does not surface)
  • source_data.post.flags.pinned (boolean): Pinned-to-profile flag (null when platform does not surface)
  • source_data.post.flags.spoiler (boolean): Spoiler flag (null when platform does not surface)
  • source_data.post.id (string)
  • source_data.post.published_at (any): Post creation timestamp as an ISO 8601 UTC string.
  • source_data.post.url (string)
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • The price depends on what the call returns: from 1 credit to 2 credits.
  • The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Example call

GET /api/v1/data/facebook/post?url=https%3A%2F%2Fwww.facebook.com%2FOGCCopperfields%2Fposts%2Fpfbid02mAPifrgyzhGeAAhMGyNU4J2dFdFpAtTfb6p22yCQMHpzwqK9zh9XHS8Bm39tk7mwl

Questions

How much does the Facebook Post API cost?

Each call costs 1 to 2 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. 1 more input is optional: get_transcript. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Do I need a Facebook account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Facebook endpoints

More Facebook scraper APIs