Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Facebook Get Profile Posts

API दस्तावेज़
https://api.sandbase.ai/v1/api/facebook/profile-posts

Get public posts for a Facebook profile ID with cursor pagination. Use it to browse a known profile's public posting history or continue through subsequent post pages.

मूल्य
$0.028571USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
The unique Facebook profile ID.
Pagination cursor for fetching the next set of results.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Facebook Get Profile Posts API

Returns a page of public posts for a Facebook profile, with message text, reaction counts, comment and share counts, media, and top comments. It needs a Facebook profile ID in profileId. The response includes a cursor for the next page.

Use cases

  • Pull the recent posting history of a public figure to track what they publish and how people react.
  • Compare reaction mix (like, love, haha, angry) across posts to see which topics get which responses.
  • Collect post URLs and post_id values to feed into comment or transcript lookups.
  • Monitor a brand or executive profile for new posts that include external links or attached posts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"profileId": "4"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
profileIdstringYesThe unique Facebook profile ID.
cursorstringNoPagination cursor for fetching the next set of results.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "cursor": "Cg8Ob3JnYW5pY19jdXJzb3IJAAACGkFRSFRyRXRuWmxKaUJ3SXVGNFpFaVg0RkxtSW9PX293c1VHaGdM…",
  "results": [
    {
      "album_preview": [
        {
          "id": "10118155440653191",
          "image_file_uri": "https://scontent-atl3-2.xx.fbcdn.net/v/t39.99422-6/885149443_1824040011869927_32…",
          "type": "photo",
          "url": "https://www.facebook.com/photo.php?fbid=10118155440653191&set=a.612287952871&typ…"
        }
      ],
      "associated_group": null,
      "associated_group_id": null,
      "attached_event": null,
      "attached_group": null,
      "attached_post": null,
      "attached_post_url": null,
      "author": {
        "delegate_page_id": "111895498378878",
        "id": "4",
        "name": "Mark Zuckerberg",
        "profile_picture_url": "https://scontent-atl3-2.xx.fbcdn.net/v/t39.30808-1/824997889_10117988912521901_6…",
        "url": "https://www.facebook.com/zuck"
      },
      "author_title": null,
      "authors": [
        {
          "delegate_page_id": "111895498378878",
          "id": "4",
          "name": "Mark Zuckerberg",
          "profile_picture_url": "https://scontent-atl3-2.xx.fbcdn.net/v/t39.30808-1/824997889_10117988912521901_6…",
          "url": "https://www.facebook.com/zuck"
        }
      ],
      "comments_count": 15054,
      "comments_id": "10118155444854771"
    }
  ]
}

Response fields

FieldMeaning
cursorPagination cursor. Send it as cursor in the next request to get the next page of posts.
results[].post_idID of the post. Also appears as comments_id and shares_id in the sample.
results[].messageText of the post. Long text may be cut in the response.
results[].urlPublic Facebook URL of the post.
results[].timestampPost creation time as a Unix timestamp in seconds.
results[].reactions_countTotal number of reactions on the post.
results[].reactions.like / reactions.love / reactions.haha / reactions.care / reactions.wow / reactions.sad / reactions.angryCount of each reaction type on the post.
results[].comments_count / results[].reshare_countNumber of comments and number of reshares for the post.
results[].author.id / results[].author.name / results[].author.urlID, display name, and profile URL of the post author.
results[].top_comments[].textText of a top comment on the post. Each entry also has author.name, created_time, and id.
results[].attached_post.urlURL of another post attached to this one. It is null when nothing is attached.

Notes

  • Use the Facebook profile ID as profileId. For example, 4 is the profile at https://www.facebook.com/zuck. If you only have a profile URL, try Facebook Profile ID.
  • For the next page, pass the returned cursor value as cursor with the same profileId.
  • Fields such as video, image, and album_preview are null when the post has no matching media. images_count is null when the post has no images.
  • To get all comments on a post, call Facebook Post Comments.

Pricing

$0.028571 per successful call. Failed calls are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Facebook$0.028571 प्रति कॉलJSON
Facebook$0.0012 प्रति कॉल सेJSON
Facebook$0.00462 प्रति कॉल सेJSON
Facebook$0.0012 प्रति कॉल सेJSON
Facebook$0.0011 प्रति कॉल सेJSON
Facebook$0.0011 प्रति कॉल सेJSON

गाइड्स:Best Facebook API in 2026: Pricing Compared

प्रश्न

FAQ

Facebook Get Profile Posts API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/facebook/profile-posts पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Facebook Get Profile Posts API की लागत कितनी है?

$0.028571 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Facebook Get Profile Posts API कौन-से parameters स्वीकार करती है?

आवश्यक: profileId (string)। वैकल्पिक: cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Facebook Get Profile Posts API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Facebook developer account या API key चाहिए?

नहीं। Facebook Get Profile Posts SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Facebook API access के लिए आवेदन करने की आवश्यकता नहीं है।