Platforms/Facebook/Post

Facebook Post API

GET ยท 1 credit

Send a post's, reel's or video's link or id, and get its text, author, time, counts, and its photo or video.

GET /v1/facebook/posts

What people use it for

  • Link enrichment: turn a Facebook link someone pastes into your app into its text, author, photo or video.
  • Campaign reporting: read a set of posts every day and chart their reactions, comments, shares and views.
  • Verification: check who posted a viral post, when, and what it said.

How it works with other endpoints

Post ids come from Profile posts, Profile reels and the group and search endpoints; any public link works too. The post's id or link goes to Post comments. Its author's author_url goes to Profile.

Limits

  • One post, reel or video a call.
  • Content only logged-in users can see answers 403 LOGIN_REQUIRED; a post that doesn't exist or was deleted answers 404 NOT_FOUND.

Example request

const url = `${process.env.API_URL}/v1/facebook/posts?url=https%3A%2F%2Fwww.facebook.com%2Funiladmag%2Fposts%2Fpfbid02h8QyMzZrMtHks9iU7oneNe4yTKMzNPynvA9WYMedK7eLjU422HD6u3dfmvmgT5QQl`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
post_idNoA post's id: digits (the posts endpoints give it). Give post_id or url.
urlNoA post's, reel's or video's link: facebook.com/<page>/posts/..., /groups/<group>/posts/..., /permalink.php?story_fbid=..., /story.php?story_fbid=..., /share/p/... (or /share/r/..., /share/v/...), /reel/<id>, /watch/?v=<id> or /<page>/videos/<id>. Give post_id or url.

Example response

{
  "data": {
    "id": "1210584347757395",
    "url": "https://www.facebook.com/uniladmag/posts/pfbid02h8QyMzZrMtHks9iU7oneNe4yTKMzNPynvA9WYMedK7eLjU422HD6u3dfmvmgT5QQl",
    "text": "The moment this dog realised it was going to the park.",
    "created_at": "2026-11-28T18:04:00Z",
    "author": "UNILAD",
    "author_id": "146505212039213",
    "author_url": "https://www.facebook.com/uniladmag",
    "likes": 18400,
    "comment_count": 912,
    "shares": 2300,
    "views": 1200000,
    "image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/post-thumbnail.jpg",
    "video_id": "1822818806556447",
    "video_url": "https://video.xx.fbcdn.net/v/t42.1790-2/video.mp4",
    "duration_seconds": 21.4
  },
  "page": null,
  "meta": {
    "platform": "facebook",
    "endpoint": "post",
    "params": {
      "url": "https://www.facebook.com/uniladmag/posts/pfbid02h8QyMzZrMtHks9iU7oneNe4yTKMzNPynvA9WYMedK7eLjU422HD6u3dfmvmgT5QQl"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-29T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which links does it take?

Post links (facebook.com/<page>/posts/...), group posts, permalink.php and story.php links, share links (/share/p/, /share/r/, /share/v/), reels (/reel/<id>), /watch/?v=<id> and /<page>/videos/<id>.

Does it work on posts in groups?

Yes, on posts in public groups. A post only logged-in users can see answers 403 LOGIN_REQUIRED.

How do I get the comments?

Send the post's id or link to Post comments.

What if the post was deleted?

It answers 404 NOT_FOUND, and a deleted post is never served from the cache.

Works with

On other platforms

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required