Skip to content
Endless Documentation
Social

Facebook search

POST
/social/facebook_search

Search Facebook for public posts about a topic, brand, or keyword (across pages, public profiles, and public groups). Use for monitoring mentions and conversations. Set recent:true for the most recent posts instead of the most relevant; narrow with start_date/end_date. There is no search for groups by topic: to find public-group discussion on a topic, web_search for <topic> facebook group (no site:facebook.com — that search is refused), then read the group URLs it returns with facebook_group_posts.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: social:query

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json
  1. body
organization_id*string
Match^org_
max_credits?integer

Refuse the call when its quoted ceiling exceeds this many credits.

Range-9007199254740991 <= value <= 9007199254740991
tool_call_id?|

The tool call behind this read, for the ledger. Every read that runs is billed, a repeated id too.

conversation_id?|

The chat this call belongs to, for cost attribution.

message_id?|

The chat turn this call belongs to, for cost attribution.

run_lock?boolean

The chat turn holds its conversation's run lock: the read is refused once the turn no longer does (it was stopped).

input*

Response Body

OK

application/json
  1. response
operation*string

Operation name — see the operations catalog.

Value in"instagram_profile""instagram_user_posts""instagram_user_reels""instagram_user_stories""instagram_user_highlights""instagram_highlight_stories""instagram_post""instagram_post_comments""instagram_search""instagram_hashtag_posts""tiktok_profile""tiktok_user_posts""tiktok_post""tiktok_post_comments""tiktok_search""tiktok_hashtag_posts""tiktok_music_posts""tiktok_trending""tiktok_trend_scan""linkedin_profile""linkedin_company""linkedin_user_posts""linkedin_company_posts""linkedin_post""linkedin_search_people""linkedin_search_posts""linkedin_ads""youtube_channel""youtube_channel_videos""youtube_channel_playlists""youtube_channel_shorts""youtube_video""youtube_search""youtube_trending""facebook_page""facebook_page_posts""facebook_page_reels""facebook_post""facebook_post_comments""facebook_group""facebook_group_posts""facebook_search""reddit_search""reddit_subreddit_posts""reddit_post""reddit_post_comments""x_search""x_profile""x_user_posts""x_post""x_post_comments""x_user_connections""x_tweet_engagers""x_trends""threads_profile""threads_user_posts""threads_search""meta_ads_advertisers""meta_ads_page_ads""meta_ads_search""resolve_mention"
result*
requests*integer
Range0 <= value <= 9007199254740991
credits_charged*integer
Range0 <= value <= 9007199254740991
Example Request
curl -X POST 'https://api.endless.app/social/facebook_search' \  -H 'Content-Type: application/json' \  -d '{  "organization_id": "string",  "input": {    "query": "string"  }}'
Example Response
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "query": "string",    "count": -9007199254740991,    "posts": [      {        "post_id": "string",        "type": "string",        "url": "string",        "text": "string",        "created_at": "string",        "comments_count": 0,        "reactions_count": 0,        "reshare_count": 0,        "reactions": {          "property1": 0,          "property2": 0        },        "video_view_count": 0,        "external_url": "string",        "image_url": "string",        "album_image_urls": [          "string"        ],        "author": {          "id": "string",          "name": "string",          "url": "string"        },        "group": {          "group_id": "string",          "name": "string",          "url": "string"        }      }    ]  },  "requests": 0,  "credits_charged": 0}