UnifAPI Docs

List posts from a Facebook profile or Page

Returns recent public posts from a Facebook profile or Page with text, media and reaction, comment and share counts. Paginate with `cursor`.

Pricing — $ · min $0.003

Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.

GET
/facebook/profiles/{username}/posts

Authorization

bearerAuth
AuthorizationBearer <token>

UnifAPI API key. Provider credentials are managed by UnifAPI.

In: header

Path Parameters

username*string

Facebook profile or Page username (or numeric id), as in facebook.com/{username}.

Length1 <= length <= 500

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's pagination.next_cursor. Omit for the first page.

Length1 <= length <= 16384

Header Parameters

Unifapi-Version?"2026-07-01"

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Default"2026-07-01"

Value in

  • "2026-07-01"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/facebook/profiles/string/posts"
{  "request_id": "string",  "data": [    {      "id": "string",      "text": "string",      "url": "string",      "is_paid_partnership": true,      "created_at": 0,      "author_display_name": "string",      "author_short_name": "string",      "author_id": "string",      "reaction_count": 0,      "comment_count": 0,      "video_view_count": 0,      "image_url": "string",      "image_urls": [        "string"      ],      "video_sd_url": "string",      "video_hd_url": "string",      "video_thumbnail_url": "string",      "top_comments": [        {          "id": "string",          "text": "string",          "created_at": 0,          "author_display_name": "string",          "author_id": "string",          "author_url": "string"        }      ]    }  ],  "pagination": {    "has_more": true,    "next_cursor": "string"  },  "billing": {    "credits_charged": 0,    "records_charged": 0,    "balance_remaining": 0,    "truncated_due_to_balance": true  }}