Skip to main content
POST
/
v1
/
facebook
/
posts
curl --request POST \
  --url https://api.socq.ai/v1/facebook/posts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "results_limit": 10,
  "urls": [
    "https://www.facebook.com/facebook/posts/POST_ID"
  ]
}
'
{
  "code": 200,
  "data": {
    "task_id": "A1B2C3D4E5F6G7H8",
    "status": "queued",
    "created_time": "2023-11-07T05:31:56Z"
  }
}
{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}
{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}
{
"code": 123,
"error": {
"message": "<string>",
"type": "<string>"
}
}

Facebook Posts

Collect public Facebook post data, including post text, source URLs, media fields, and engagement metrics.

Endpoint

POST https://api.socq.ai/v1/facebook/posts

Request Body

{
  "urls": ["https://www.facebook.com/facebook/posts/POST_ID"],
  "results_limit": 10
}

Result Item

After the task succeeds, call GET /v1/tasks/{task_id} to read paginated standard records under results.
{
  "id": "1569965031842178",
  "platform": "facebook",
  "resource": "posts",
  "type": "post",
  "url": "https://www.facebook.com/facebook/posts/1569965031842178",
  "message": "Post message text",
  "author": {
    "id": "100064860875397",
    "username": "facebook",
    "name": "facebook",
    "url": "https://www.facebook.com/facebook/",
    "avatar_url": null,
    "is_verified": null,
    "is_private": null
  },
  "metrics": {
    "likes_count": 11033,
    "comments_count": 2070,
    "shares_count": 541,
    "reactions_count": 11033
  },
  "reactions": {
    "like": 8340,
    "love": 1555,
    "care": 245,
    "haha": 821,
    "wow": 40,
    "sad": 12,
    "angry": 20
  },
  "media": [],
  "created_at": "2026-07-07T19:17:33",
  "collected_at": "2026-07-08T08:59:45",
  "extra": {}
}

Response

{
  "code": 200,
  "data": {
    "task_id": "A1B2C3D4E5F6G7H8",
    "status": "queued",
    "created_time": "2026-07-08T10:30:00"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
urls
string[]

Array of public URLs to collect.

usernames
string[]

Array of public usernames to collect.

query
string

Search query

results_limit
integer

Maximum number of results to collect

Required range: x >= 1
callback_url
string

Optional callback URL

Response

Task submitted

code
integer
Example:

200

data
object