/v1/call/x.communityPreviewX (Twitter) community profile API
Only on X.
The X (Twitter) community profile API returns an X community by its ID: name, description, members, moderators, how people join, when it was created. One call costs 1 credit ($0.002 to $0.0033 depending on the pack); failed calls are free. Call it over HTTP or from your AI client over MCP. Last tested 2026-10-17.
Last updated:
Request and response
curl https://api.socialtoai.com/v1/call/x.community \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "1493446837214187523" }'import osimport requestsresponse = requests.post( "https://api.socialtoai.com/v1/call/x.community", headers={"Authorization": f"Bearer {os.environ['SOCIALTOAI_KEY']}"}, json={ "id": "1493446837214187523", },)print(response.json())# Connected over MCP? Ask in plain words.Use the X community profile interface (x.community) with id: 1493446837214187523.# Your AI calls the call tool with:{ "id": "1493446837214187523"}{ "op": "x.community", "platform": "x", "status": "ok", "items": [ { "platform": "x", "id": "…", "ref": "…", "approx": [], "type": "entry", "entry_type": "community", "title": "…", "url": "https://example.com/…", "rank": null, "heat": null, "fields": { "description": "…", "nsfw": false, "created_at": "2022-02-15T04:47:27.000Z", "members": 268685 } } ], "unavailable": [], "cost_credits": 1}- entry_type
- community
- description
- …
- nsfw
- false
- created_at
- 2022-02-15T04:47:27.000Z
- members
- 268685
Names and text were removed from the sample; the numbers are as recorded.
1 parameter.
All required.
Send them as a JSON body with POST. Your key goes in the Authorization header, never in the URL.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Required | — | Community ID, a string of digits |
Where to get what you send.
idCommunity ID, a string of digits (e.g. 1493446837214187523)
No other interface of the platform returns it: take it from the web page or link as described above.
The fields of each item.
What X cannot give is marked.
| Field | Type | Meaning |
|---|---|---|
| items[].title | string | The entry's title or name. |
| items[].url | string | A link that opens it; null where the platform's list has none. |
| items[].rank | integer | Position on a board, from 1. |
| items[].heat | integer | The platform's heat score. |
| items[].fields.description | string | The community's description. |
| items[].fields.nsfw | boolean | Whether it is marked as adult content. |
| items[].fields.created_at | string | When it was created, ISO 8601 in UTC. |
| items[].fields.members | integer | Member count. |
nullFields X cannot giveX gives every field of this call. Where one item lacks a value, that field is null.
Every item also has platform, id, ref, approx and type; the response around the items is the same on every call. Response format
What to expect.
1 call per second per key, 5 after a purchase; going over is not charged. Rate limits
A failed call costs 0 credits and is never retried on its own. Error codes
Once connected over MCP, these questions use it.
Get an X community by its ID: 1493446837214187523.
1 creditcall {"op":"x.community","id":"1493446837214187523"}