keywordstringzorunlu
Keyword to search for in public posts. Supports basic text matching.
https://api.sandbase.ai/v1/api/facebook/search-postSearch 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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
iphone and see how people talk about it.startDate and endDate.reactions_count, comments_count and reshare_count to find the ones with the most engagement.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Keyword to search for in public posts. Supports basic text matching. |
cursor | string | No | Pagination cursor for fetching the next set of results. |
endDate | string | No | End date for the search range (inclusive), formatted as yyyy-MM-dd. |
startDate | string | No | Start date for the search range (inclusive), formatted as yyyy-MM-dd. |
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"
}
]
}
| Field | Meaning |
|---|---|
results[] | List of matching posts. Each item is one post. |
results[].message | Text of the post. message_rich holds the same text in this response. |
results[].post_id | ID of the post. comments_id and shares_id carry the same value in these results. |
results[].url | Link to the post on Facebook. |
results[].timestamp | Time the post was made, as a Unix timestamp in seconds. |
results[].author.name / results[].author.id / results[].author.url | Name, ID and profile link of the account that wrote the post. |
results[].reactions_count | Total number of reactions on the post. |
results[].reactions.like / reactions.love / reactions.care / reactions.haha / reactions.wow / reactions.sad / reactions.angry | Count of each reaction type. The keys sit under results[].reactions. |
results[].comments_count / results[].reshare_count | Number of comments and number of reshares on the post. |
results[].associated_group.name | Name of the group the post was made in. It is null when the post is not in a group. |
results[].album_preview[].image_file_uri | Image link for each photo in the post's album preview. images_count gives the number of images in the post. |
startDate and endDate in yyyy-MM-dd format. Both dates are inclusive.cursor value from the response as the cursor parameter.$0.028571 per successful call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
keywordstringzorunluKeyword to search for in public posts. Supports basic text matching.
startDatestringStart date for the search range (inclusive), formatted as yyyy-MM-dd.
endDatestringEnd date for the search range (inclusive), formatted as yyyy-MM-dd.
cursorstringPagination cursor for fetching the next set of results.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Facebook Post SearchBu API Facebook | $0.028571 çağrı başına | JSON |
Facebook | Kullanım başına $0.0012'den itibaren | JSON |
Facebook | Kullanım başına $0.00462'den itibaren | JSON |
Facebook | Kullanım başına $0.0012'den itibaren | JSON |
Facebook | Kullanım başına $0.0011'den itibaren | JSON |
Facebook | Kullanım başına $0.0011'den itibaren | JSON |
Kılavuzlar:Best Facebook API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/facebook/search-post adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.028571, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: keyword (string). İsteğe bağlı: startDate (string), endDate (string) ve cursor (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Facebook Post Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Facebook API erişimi için ayrıca başvuru yapmanız gerekmez.