Skip to main content
POST
/
twitter
/
community
/
search
Search Community
curl --request POST \
  --url https://api.twitterxapi.com/twitter/community/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "target_count": 123
}'
{
  "code": 123,
  "msg": "<string>",
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "member_count": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
required

The query to search for.

target_count
integer
required

The number of communities to search.

Response

A list of community objects.

code
integer
required

The status code of the response.

msg
string
required

The message of the response.

data
CommunityModel · object[]
required

A list of community objects.