keywordstring필수
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.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
keywordstring필수Keyword 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.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Facebook Post Search이 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 |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/facebook/search-post에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.028571, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: keyword (string). 선택: startDate (string), endDate (string) 및 cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Facebook Post Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Facebook API 액세스를 별도로 신청할 필요는 없습니다.