Introducing the Instagram APIRead more →

Facebook Post API. Send a post or video link, or an ID.

Post, photo, video or reel with exact counts. We handle the proxies, blocks and platform changes.

Facebook Post API at a glance

Returns a public Facebook post, photo, video or reel from its link or ID: text, author, date, and exact reaction, comment, share and view counts. It also has the reactions by type, hashtags and mentions, every photo of an album, the video file with its thumbnail, size and length, and the shared link card or reshared post.

GET /v1/facebook/post

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 22 typed fields null when unknown
  • url is all it needs, e.g. https://www.facebook.com/reel/4075684206061398/
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 22 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.facebook.com/reel/4075684206061398/
GET /v1/facebook/postTry in
const params = new URLSearchParams({
  url: "https://www.facebook.com/reel/4075684206061398/",
});
const res = await fetch(`https://socialtap.dev/v1/facebook/post?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/facebook/postLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 21 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Facebook doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    Facebook post, photo, video or reel URL: /<page>/posts/<id>, permalink.php and story.php links, /photo/?fbid= and /<page>/photos/… links, reel, watch, video.php and /<page>/videos/… links, fb.watch and /share/p|v|r/ share links (m., mbasic. and web. hosts too), or a numeric post, photo or video ID.

  • Write one parser

    Facebook, TikTok, Instagram and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the Facebook Post API.

  • Track engagement on Page and creator posts

  • Monitor competitors' campaigns and reels

  • Collect post text and links for social listening

  • Archive post media before it expires

Good to know before you build.

  • view_count is set on videos and reels, share_count on posts and photos: Facebook's video page shows no shares logged out.
  • Media links are Facebook CDN links that expire at media[].expires_at, so download what you need before then.
  • Private, friends-only, group-only and deleted posts return private_or_unavailable, because Facebook answers them all alike logged out.
  • When the post's page is unavailable, the post comes from Facebook's embedded post: large counts are rounded (approximate_fields lists them), and the view count, reactions by type, feedback ID, reshared post and a video's file and length are null, with a partial_data warning.
  • Past and current live broadcasts are platform_type live, with their title.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Facebook Post API.

More in the API reference.

Are the counts exact?
Yes. Reaction, comment, share and view counts are the exact figures Facebook's page states, not the rounded ones it displays.
Can I download the video?
Yes. media[0].url links the video file, HD when Facebook has it, else SD. The link expires at media[0].expires_at.
Is like_count only likes?
No. It counts every reaction (like, love, care, haha, wow, sad, angry), as Facebook does, and platform_specific.facebook.reactions splits it by type.
What is id for a video or reel?
The post ID, as for every other post. The video's own ID (the one in /reel/<id>) is platform_specific.facebook.video_id. A video a Page uploaded to its videos tab without a post of its own, such as a live broadcast's, has no post ID, so there id is the video's ID.
How much does the Facebook Post API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs