X / Twitter Search communities API
Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets.
$0.11/1k results, pay per request, no subscription.
Search Communities
Results for "artificial intelligence"
Artificial Intelligence Builders
184.2K members·Technology
{"id":Â "1493446837219098304","name":Â "Artificial Intelligence Builders","url":Â "https://x.com/i/communities/1493446837219098304","memberCount":Â 184200,"topic":Â "Technology","nsfw":Â false}
Pricing
X / Twitter Search communities API pricing
Try it
Get X / Twitter search communities in one request
{
"found": true,
"data": {
"communities": [
{
"id": "1493446837219098304",
"name": "Artificial Intelligence Builders",
"url": "https://x.com/i/communities/1493446837219098304",
"memberCount": 184200,
"topic": "Technology",
"nsfw": false
},
{
"id": "1592004821338099712",
"name": "AI Agents & Automation",
"url": "https://x.com/i/communities/1592004821338099712",
"memberCount": 96500,
"topic": "Technology",
"nsfw": false
},
{
"id": "1601887732290011136",
"name": "Machine Learning Daily",
"url": "https://x.com/i/communities/1601887732290011136",
"memberCount": 52300,
"topic": "Technology",
"nsfw": false
}
],
"nextCursor": "DAABCgABGZ3xw5A2xVIKAAIY__community_page2"
}
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
One request, one response shape.
Every field you send and every field you get back, each with a real example.
Last verified 2026-10-06 · uptime and latency measured over 30d
Request body
JSON, posted to this endpoint.
- querystring
artificial intelligence
Keyword to match against X (Twitter) community names and topics (e.g. artificial intelligence).
- cursorstring
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of communities.
Response
JSON, one example value per field.
- foundboolean
true
- idstring
1493446837219098304
- namestring
Artificial Intelligence Builders
- urlstring
https://x.com/i/communities/1493446837219098304
- memberCountnumber
184200
- topicstring
Technology
- nsfwboolean
false
- nextCursorstring
DAABCgABGZ3xw5A2xVIKAAIY__community_page2
FAQ
About the X / Twitter Search communities API
The AnyAPI X / Twitter Search communities API returns X / Twitter search communities data as normalized JSON from one POST call to /v1/run/twitter.search_communities. Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets. AnyAPI returns one normalized schema whichever source serves it. It costs $0.11 per 1,000 results, and never more than $0.0011 for a single request, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of X / Twitter search communities calls through AnyAPI succeeded, with a median response time of 0.5 seconds across 78 measured calls.