GET
/
2
/
communities
/
{id}
curl --request GET \
  --url https://api.x.com/2/communities/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "created_at": "2023-11-07T05:31:56Z",
    "id": "1146654567674912769",
    "name": "<string>"
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the Community.

Query Parameters

community.fields
enum<string>[]

A comma separated list of Community fields to display.

Available options:
access,
created_at,
description,
id,
join_policy,
member_count,
name

Response

200
application/json
The request has succeeded.
data
object

A X Community is a curated group of Posts.

errors
object[]