Collect Facebook Posts by Keyword

5 endpoints • Base: https://openapi.scdata.cc

Keyword collection runs asynchronously: this call creates the task and returns its id; read the matched posts from the task-result endpoint.

GET/api/v1/facebook/task/post/search

Quota usage: Each successful request to this endpoint deducts 1 quota units from your plan.

Request Parameters

Required Parameters

NameInTypeDescription
queryquerystringSearch keyword

Optional Parameters

NameInTypeDescription
limitqueryintegerMaximum number of results
recent_postsquerystringOnly search recent posts (0 = no, 1 = yes)
publish_at_startquerystringPublish time from
example: 2026-01-01
publish_at_endquerystringPublish time to
example: 2026-01-31

Response Fields

NameTypeDescription
successbooleanSuccess
codeintegerCode
messagestringMessage
dataobject-
data.task_idstringTask ID
data.task_statusstringTask status

Try It

https://openapi.scdata.cc/api/v1/facebook/task/post/search
Select an API key from Dashboard
Add an API key before sending a request.Go to Dashboard

Query Params

query*
limit
recent_posts
publish_at_start
publish_at_end

cURL Example

bash
curl -X GET "https://openapi.scdata.cc/api/v1/facebook/task/post/search?query=example" \
-H "Authorization: YOUR_API_KEY"

Response Example (200 application/json)

json
{
"success": true,
"code": 200,
"message": "Request successful",
"data": {
"task_id": "string",
"task_status": "string"
}
}

Use Cases

  • Brand mention tracking — Collect public posts that mention a brand or campaign hashtag.
  • Trend research — Gauge how much conversation a topic generates on Facebook.

Related Endpoints