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
This sample shows 10 of 11 fields. See every field
{
"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-11-20 · 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.
Matching X (Twitter) communities. Search returns a summary record; pass url to twitter.community for the full detail, or to twitter.community_tweets for its posts. Populated whenever the provider has data for the entity.
- idstring
1493446837219098304
Community identifier. Populated whenever the provider has data for the entity.
- memberCountinteger
184200
Number of members in the community.
- namestring
Artificial Intelligence Builders
Community name. Populated whenever the provider has data for the entity.
- nsfwboolean
false
Whether the community is flagged as not safe for work.
- topicstring
Technology
The community's primary topic label (may be empty).
- urlstring
https://x.com/i/communities/1493446837219098304
Canonical URL of the community on X. Pass it to twitter.community or twitter.community_tweets. Populated whenever the provider has data for the entity.
The page of matching communities, or null when nothing was found.
- nextCursorstring
DAABCgABGZ3xw5A2xVIKAAIY__community_page2
Opaque cursor for the next page of communities, or null when this lane has no more. Pass it back as cursor to continue.
- foundboolean
true
True when the search returned at least one community; false when nothing matched.
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
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, 96.5% of X / Twitter search communities calls through AnyAPI succeeded, with a median response time of 0.7 seconds across 374 measured calls.