Retrieves a list of Communities matching the specified search query.
curl --request GET \
--url https://api.x.com/2/communities/search \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "1146654567674912769",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
],
"meta": {
"next_token": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
The access token received from the authorization server in the OAuth 2.0 flow.
Query to search communities.
1 - 4096"Love"
The maximum number of search results to be returned by a request.
10 <= x <= 100This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. The next token.
1This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. The next token.
1A comma separated list of Community fields to display. The fields available for a Community object.
1access, created_at, description, id, join_policy, member_count, name [
"access",
"created_at",
"description",
"id",
"join_policy",
"member_count",
"name"
]The request has succeeded.
1Show child attributes
1An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).
Show child attributes
Show child attributes
curl --request GET \
--url https://api.x.com/2/communities/search \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "1146654567674912769",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
],
"meta": {
"next_token": "<string>"
}
}