X
X Community Search
Find X Communities by keyword - community id, name, member count, primary topic, NSFW flag and banner - with cursor pagination, as JSON. Costs 1 credit per request.
POST/api/v1/x/search/communities
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonkeywordstringrequiredSearch keywords, up to 500 characters.
Example: crypto
cursorstringPagination cursor from a previous response (next_cursor).
Notes
Pass a community_id to Community or Community Tweets.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.x.search_communities(keyword="crypto")
print(results)Response
"next_cursor": "WzI2MS4zMTMxNCwxOTExOTQ1MjU2MjgwNDMyNzI1XQ==",
"has_more": true
},
"response_time": 5048
}