Skip to main content
GET
/
2
/
communities
/
search
Search Communities
curl --request GET \
  --url https://api.x.com/2/communities/search \
  --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>"
    }
  ],
  "meta": {
    "next_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Query Parameters

query
string
required
Required string length: 1 - 4096
Example:
max_results
integer
default:10
Required range: 10 <= x <= 100
next_token
string
Minimum length: 1
pagination_token
string
Minimum length: 1
community.fields
enum<string>[]
Minimum length: 1
Example:

Response

data
object[]
Minimum length: 1
errors
object[]
Minimum length: 1
meta
object