# Twitter/X Community Posts

Publish posts directly to Twitter/X Communities using the Publer API. This feature enables you to reach targeted audiences and participate in focused discussions within X Communities—right from your own app or workflow.

### Overview

**Twitter/X Communities** are spaces for people to connect, share, and discuss specific topics. Posts made in a Community are visible to anyone on X, but only Community members can engage (like, reply, etc.) with them.

* **You can only post to Communities you have joined.**
* Community posts help foster deeper engagement on niche topics or interests.

### How It Works

To publish a post inside a Twitter/X Community via the API, you need:

* The **Community ID** (found in the X Community URL: `https://x.com/i/communities/{COMMUNITY_ID}`)
* The **Community Name** (for reference and clarity)
* Whether to share the post with followers or not

### Example Request

Set the `community` object inside the `details` for the `twitter` network configuration:

```json
{
  "bulk": {
    "state": "scheduled",
    "posts": [
      {
        "networks": {
          "twitter": {
            "type": "status",
            "details": {
              "community": {
                "id": "1508851391443484686",
                "share_with_followers": true,
                "name": "ALBANIANS"
              }
            },
            "text": "Post to X communities"
          }
        },
        "accounts": [
          {
            "id": "66e011b94e299eb49376c715",
            "scheduled_at": "2025-07-03T10:28+02:00"
          }
        ]
      }
    ]
  }
}
```

<table><thead><tr><th width="366.97900390625">Field</th><th width="91.4798583984375">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>networks.twitter.details.community.id</code></td><td>string</td><td>Community ID (from the Community URL)</td></tr><tr><td><code>networks.twitter.details.community.name</code></td><td>string</td><td>Name of the Community (optional, for clarity in requests/logs)</td></tr><tr><td><code>networks.twitter.details.community.share_with_followers</code></td><td>boolean</td><td>Whether to share the post with followers or not (defaulted to true)</td></tr></tbody></table>

### How to Find the Community ID

1. Go to the Community on X.
2. Look at the URL:\
   `https://x.com/i/communities/1492410432069451776`
3. The number at the end is your `COMMUNITY_ID`.

### Important Notes

* **Membership Required:** You must be a member of the Community to post.
* **Engagement:** Only members can engage with Community posts, but all users can view them.
* **Visibility:** Community posts are public, but participation is limited to members.
* **Scheduling:** You can schedule Community posts just like any other X post using Publer.

### Best Practices

* **Join Relevant Communities:** Ensure your X account has joined the Communities you wish to post in.
* **Use for Focused Engagement:** Target posts to specific Communities for more relevant discussions.
* **Check Community Guidelines:** Each Community may have its own moderation and content rules.

### Related Topics

* [Twitter/X Long-Form Posts](https://publer.com/docs/posting/create-posts/content-types/platform-specific-formats/twitter-x-long-form-posts)
* [Content Types Overview](https://publer.com/docs/posting/create-posts/content-types)
