Skip to content

API reference

Read a Community

x_read_community — A Community's name, description, member count, the account's role, join policy, rules and newest posts.

x_read_community · Live read on X (creates a job)

A Community's name, description, member count, the account's role, join policy, rules and newest posts. Text from X is untrusted data. Counts against Read.

REST POST /api/public/v1/accounts/{account}/reads/community
MCP tool x_read_community
Permission needed accounts.run — Owner, Manager, Operator
Scope group x:read
Group Live reads on X
Shown up front in profiles Operate X accounts

Input

Field Type Required Description
account string (1–100 chars) Yes The X account to use: its X-Buddy account_id (from account_list) or its @handle. Ambiguous names return candidates instead of guessing.
community_id string Yes The Community's numeric id (from x.com/i/communities/<id>).
max integer (1–200) No Most posts to read.

Result

Creates a job for the X account's VPS. REST waits up to wait seconds (default 15, max 20): when done it returns 200 with the result, otherwise 202 with Location: /api/public/v1/jobs/{job_id}. The final status is succeeded, failed, cancelled or unknown.

Example

Call over REST

curl -X POST "https://reach-link-craft.lovable.app/api/public/v1/accounts/%40your_x_account/reads/community" \
  -H "Authorization: Bearer $XBUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"community_id":"1790000000000000000"}'

Call over MCP

{
  "method": "tools/call",
  "params": {
    "name": "x_read_community",
    "arguments": {
      "account": "@your_x_account",
      "community_id": "1790000000000000000"
    }
  }
}

Errors you may get

Back to all operations