Facebook

Page Posts

POSThttps://api.scrapehammer.com/facebook-posts

Scrape public posts from any Facebook page. Each item returns the post itself plus engagement, reaction breakdown, media and actor data as clean JSON.

Request

Authenticate with your API token in the X-API-Key header — you can copy it from the Profile page.

curl -X POST https://api.scrapehammer.com/facebook-posts \
  -H "X-API-Key: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "urls": ["https://facebook.com/some-page"], "days": 30 }'

Body parameters

FieldTypeRequiredDescription
urlsstring[]requiredOne or more public Facebook page URLs to scrape.
daysintegeroptionalOnly return posts created within the last N days.
Each returned post costs credits_per_post credits. See Credits & limits for the current pricing of your account.

Response

Every item is grouped into predictable blocks, so you can map only the parts you need.

  • postIdentifiers, canonical URLs, message, timestamps and post type.
  • engagementTotal reaction, comment and share counts plus per-reaction breakdown.
  • mediaMedia type, dimensions, duration, thumbnail and photo count.
  • actors / collaboratorsPage or profile entities that authored or co-authored the post.
  • reactionsDetailed reaction objects with localized names and counts.
response.json
{
  "post": {
    "post_id": "1564941801667857",
    "story_id": "UzpfSTEwMDA0NDU2MTU1MDgzMToxNTY0OTQxODAxNjY3ODU3OjE1NjQ5NDE4MDE2Njc4NTc=",
    "feedback_id": "ZmVlZGJhY2s6MTU2NDk0MTgwMTY2Nzg1Nw==",
    "user_id": "100044561550831",
    "user_name": "NASA - National Aeronautics and Space Administration",
    "url": "https://www.facebook.com/NASA/posts/pfbid02rHPPbbrUfGWFuCvNurHSESfsgftqi8EAN4A3TbLTJWYRrFXK2iVeqaUBdywxiJFrl",
    "post_url": "https://www.facebook.com/100044561550831/posts/1564941801667857",
    "post_platform_id": "100044561550831_1564941801667857",
    "message": "That's one big chandelier…",
    "message_length": 360,
    "created_at_utc": "2026-06-29T21:15:30+00:00",
    "creation_timestamp": 1782767730,
    "privacy": null,
    "is_shared": false,
    "is_text_only": false,
    "actor_count": 1,
    "collaborator_count": 0,
    "post_type": "photo"
  },
  "engagement": {
    "reaction_count": 56619,
    "comment_count": 1082,
    "share_count": 3448,
    "like_count": 38420,
    "love_count": 15852,
    "wow_count": 171,
    "haha_count": 1259,
    "care_count": 900,
    "sad_count": 8,
    "angry_count": 9
  },
  "media": {
    "media_type": "album",
    "media_id": null,
    "media_url": null,
    "photo_count": 0,
    "video_duration_ms": null,
    "video_width": null,
    "video_height": null,
    "thumbnail_url": null,
    "mediaset_token": null
  },
  "actors": [
    {
      "user_id": "100044561550831",
      "user_name": "NASA - National Aeronautics and Space Administration"
    }
  ],
  "collaborators": [],
  "photos": [],
  "reactions": [
    { "reaction_type": "like",  "reaction_id": "1635855486666999", "localized_name": "Like",  "count": 38420, "visible_in_bling_bar": true },
    { "reaction_type": "love",  "reaction_id": "1678524932434102", "localized_name": "Love",  "count": 15852, "visible_in_bling_bar": true },
    { "reaction_type": "haha",  "reaction_id": "478547315650144",  "localized_name": "Wow",   "count": 1259,  "visible_in_bling_bar": false },
    { "reaction_type": "care",  "reaction_id": "613557422527858",  "localized_name": "Care",  "count": 900,   "visible_in_bling_bar": false },
    { "reaction_type": "wow",   "reaction_id": "115940658764963",  "localized_name": "Haha",  "count": 171,   "visible_in_bling_bar": false },
    { "reaction_type": "angry", "reaction_id": "444813342392137",  "localized_name": "Angry", "count": 9,     "visible_in_bling_bar": false },
    { "reaction_type": "sad",   "reaction_id": "908563459236466",  "localized_name": "Sad",   "count": 8,     "visible_in_bling_bar": false }
  ],
  "attached_story": null
}