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

Facebook Post Search

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

Search public Facebook posts by keyword with optional inclusive date-range filters and cursor pagination. Use it to find topic-related posts or continue a time-bounded public-content search.

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

प्लेग्राउंड

इनपुट
Keyword to search for in public posts. Supports basic text matching.
Start date for the search range (inclusive), formatted as yyyy-MM-dd.
End date for the search range (inclusive), formatted as yyyy-MM-dd.
Pagination cursor for fetching the next set of results.
आउटपुटतैयार

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

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

API README

Facebook Post Search API

Returns public Facebook posts that match a keyword. Each result includes the post text, author, reaction counts, a Unix timestamp and the post URL. The only required input is keyword.

Use cases

  • Track public posts that mention a product such as iphone and see how people talk about it.
  • Find resale or marketplace-style posts in Facebook groups and read the prices in the post text.
  • Collect posts from a set date window by combining startDate and endDate.
  • Rank posts on a topic by reactions_count, comments_count and reshare_count to find the ones with the most engagement.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/search-post" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "iphone"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword to search for in public posts. Supports basic text matching.
cursorstringNoPagination cursor for fetching the next set of results.
endDatestringNoEnd date for the search range (inclusive), formatted as yyyy-MM-dd.
startDatestringNoStart date for the search range (inclusive), formatted as yyyy-MM-dd.

Example response

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

{
  "cursor": "{\"page_number\": 0, \"flow_cursors_serialized\": {\"INTERNAL_DEBUG_MODULE\": \"{}\", \"S…",
  "results": [
    {
      "album_preview": [
        {
          "id": "10247538089934137",
          "image_file_uri": "https://scontent.fbts7-1.fna.fbcdn.net/v/t51.82787-15/881518759_1814603034459415…",
          "type": "photo",
          "url": "https://www.facebook.com/photo.php?fbid=10247538089934137&set=a.1021736408468286…"
        }
      ],
      "associated_group": null,
      "associated_group_id": null,
      "attached_event": null,
      "attached_group": null,
      "attached_post": null,
      "attached_post_url": null,
      "author": {
        "delegate_page_id": null,
        "id": "pfbid0o7seBmPbqJSH3mNoByH3PqufHNfsWWDNHpVQWw3ug1e7RRARyYDw89Q6CKrwgRyWl",
        "name": "Erin Jimenez",
        "profile_picture_url": "https://scontent.fbts7-1.fna.fbcdn.net/v/t39.30808-1/482276981_10237393528566443…",
        "url": "https://www.facebook.com/pfbid0o7seBmPbqJSH3mNoByH3PqufHNfsWWDNHpVQWw3ug1e7RRARy…"
      },
      "author_title": null,
      "authors": [
        {
          "delegate_page_id": null,
          "id": "pfbid0o7seBmPbqJSH3mNoByH3PqufHNfsWWDNHpVQWw3ug1e7RRARyYDw89Q6CKrwgRyWl",
          "name": "Erin Jimenez",
          "profile_picture_url": "https://scontent.fbts7-1.fna.fbcdn.net/v/t39.30808-1/482276981_10237393528566443…",
          "url": "https://www.facebook.com/pfbid0o7seBmPbqJSH3mNoByH3PqufHNfsWWDNHpVQWw3ug1e7RRARy…"
        }
      ],
      "comments_count": 0,
      "comments_id": "10247538090374148"
    }
  ]
}

Response fields

FieldMeaning
results[]List of matching posts. Each item is one post.
results[].messageText of the post. message_rich holds the same text in this response.
results[].post_idID of the post. comments_id and shares_id carry the same value in these results.
results[].urlLink to the post on Facebook.
results[].timestampTime the post was made, as a Unix timestamp in seconds.
results[].author.name / results[].author.id / results[].author.urlName, ID and profile link of the account that wrote the post.
results[].reactions_countTotal number of reactions on the post.
results[].reactions.like / reactions.love / reactions.care / reactions.haha / reactions.wow / reactions.sad / reactions.angryCount of each reaction type. The keys sit under results[].reactions.
results[].comments_count / results[].reshare_countNumber of comments and number of reshares on the post.
results[].associated_group.nameName of the group the post was made in. It is null when the post is not in a group.
results[].album_preview[].image_file_uriImage link for each photo in the post's album preview. images_count gives the number of images in the post.

Notes

  • Use startDate and endDate in yyyy-MM-dd format. Both dates are inclusive.
  • For the next page, pass the top-level cursor value from the response as the cursor parameter.
  • To read the full comment thread of a result, call Facebook Post Comments with the post.
  • To read more posts from one group, use Facebook Group Posts.

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 Post Search API का उपयोग कैसे करें?

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

Facebook Post Search API की लागत कितनी है?

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

Facebook Post Search API कौन-से parameters स्वीकार करती है?

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

Facebook Post Search API क्या लौटाती है?

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

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

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