antworkDOCS

Reading platform posts

What an account published on the platform, Antwork's posts or not, with metrics and links.

POSThttps://antwork.io/api/v1/accounts/{id}/platform-posts:fetchScoperead

Request

curl -X POST https://antwork.io/api/v1/accounts/acc_x/platform-posts:fetch \
  -H "Authorization: Bearer $ANTWORK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "maxPosts": 10
  }'

The same read as the MCP fetch_platform_posts tool, for one account. maxPosts is 1 to 25, default 10. Needs the read scope.

It is a POST because it is not free: every call spends the account's API quota on the platform, and X bills per post returned. X reads are kept for a week and served from there. Each key may make 10 of these reads per 10 minutes (429 platform_read_rate_limited), beside the general limits.

With source: "search" and a query (keywords or a #hashtag), or source: "account" and a creator's handle, it reads other people's public posts on this account's network instead, with this account's sign-in: X, YouTube, Bluesky and Mastodon, and Instagram by creator only (a public Business or Creator account, read with an Instagram account connected through the Facebook-based login; an Instagram search answers unsupported: true, and an account on the Instagram login answers 409 instagram_reconnect_for_discovery). sinceDays is 1 to 30 (default 7 for a search, 30 for a creator; X search reaches back 7) and maxPosts is how many come back. The answer is object: "discovered_posts": each post has text, url, author, format, metrics, traits and outlierScore, how many times its usual it did, sorted best first. Other networks answer unsupported: true; Threads, and Instagram search by hashtag, are coming next. Part of every paid plan (402 discovery_requires_upgrade on Free); uncached X searches are limited per workspace owner per week (429 discovery_x_weekly_limit), and every read is kept for a day.

Response

200 OK
{
  "object": "platform_posts",
  "accountId": "acc_x",
  "workspaceId": "ws_...",
  "platform": "x",
  "accountName": "Antwork",
  "accountHandle": "@antwork",
  "posts": [
    {
      "id": "1849...",
      "text": "Shipped the API today.",
      "publishedAt": "2026-10-21T09:00:04.000Z",
      "engagementMetrics": { "likes": 52, "comments": 4, "shares": 9, "impressions": 2400 },
      "mediaType": "text",
      "permalink": "https://x.com/antwork/status/1849..."
    }
  ],
  "postCount": 1
}

LinkedIn does not let a personal profile list its own posts, so one answers 200 with unsupported: true, the reason, and no posts, without reading anything. A disconnected account answers 409 account_inactive; one whose token the platform no longer accepts, 409 token_invalid.

Something look wrong? Tell us which.