Skip to main content
GET
/
posts
List all posts
curl --request GET \
  --url https://api.social-api.ai/v1/posts \
  --header 'Authorization: <api-key>'
{
  "data": [
    {
      "created_at": "2026-03-14T09:00:00Z",
      "hidden": false,
      "id": "p_01HZ9X3Q4R5M6N7P8V2K0W1J",
      "media_ids": [
        "<string>"
      ],
      "published_at": "2026-04-01T10:00:05Z",
      "retry_count": 0,
      "scheduled_at": "2026-04-01T10:00:00Z",
      "status": "published",
      "targets": [
        {
          "account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
          "error": {
            "category": "validation",
            "caused_by": "user",
            "code": "platform.tiktok.media_required",
            "message": "Video posts require at least one media URL"
          },
          "first_comment": "<string>",
          "metadata": {},
          "metrics": {
            "comments": 23,
            "extra": {},
            "likes": 142,
            "saves": 31,
            "shares": 8
          },
          "metrics_synced_at": "2026-04-01T12:00:00Z",
          "permalink": "https://www.instagram.com/p/ABC123/",
          "platform": "instagram",
          "platform_post_id": "17895695668004550",
          "published_at": "2026-04-01T10:00:05Z",
          "scheduled_at": "2026-04-01T10:00:00Z",
          "status": "published",
          "text": "<string>",
          "title": "<string>",
          "visibility": "public"
        }
      ],
      "text": "Check out our new product launch!",
      "title": "Exciting News",
      "updated_at": "2026-03-14T09:00:00Z",
      "visibility": "public"
    }
  ],
  "pagination": {
    "has_more": true,
    "limit": 25,
    "next_cursor": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.social-api.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Query Parameters

account_ids
string

Comma-separated connected account IDs

status
string

Filter by status (draft, scheduled, publishing, published, partial, failed, cancelled)

platform
string

Filter by platform (e.g. instagram, facebook)

page_id
string

Filter by specific page ID (for multi-page accounts like Facebook)

from
string

Start of date range (RFC3339)

to
string

End of date range (RFC3339)

Text search (case-insensitive)

sort
string

Sort order: scheduled_asc (default), scheduled_desc, created_asc, created_desc

cursor
string

Pagination cursor from previous response

limit
integer

Max results (default 25, max 100)

hidden
string

Include hidden posts (true/false, default false)

Response

OK

data
object[]
pagination
object