Skip to main content
The Communities lookup endpoint lets you retrieve information about X Communities by their ID.

Overview

Communities are public or private groups on X where members can share Posts, discuss topics, and connect around shared interests.

By ID

Get details for a specific Community

Search

Find Communities by keyword

Endpoint

MethodEndpointDescription
GET/2/communities/:idGet Community by ID

Response fields

FieldDescription
idCommunity ID
nameCommunity name
descriptionCommunity description
created_atCreation date
member_countNumber of members
is_privateWhether Community is private

Example request

curl "https://api.x.com/2/communities/1234567890?\
community.fields=name,description,member_count,created_at" \
  -H "Authorization: Bearer $BEARER_TOKEN"

Getting started

Prerequisites