Ir para o conteúdo
Documentação do Endless

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

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/social/facebook_search" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "query": "string"    }  }'
{  "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}