X / Twitter Recherche de communautés API
Cherchez des communautés X (Twitter) par mot-clé et obtenez leur id, nom, sujet et nombre de membres avec pagination par curseur. C’est ainsi que vous trouvez l’URL d’une communauté à passer à twitter.community ou twitter.community_tweets.
0,11 $US/1k résultats, paiement à la requête, sans abonnement.
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}
Tarifs
Tarifs de l’API X / Twitter Recherche de communautés
Essayer
Obtenez X / Twitter Recherche de communautés en une requête
Cet exemple affiche 10 champs sur 11. Voir tous les champs
{
"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"
}
}Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.
Référence
Une requête, une seule forme de réponse.
Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.
Dernière vérification : 2026-11-21 · disponibilité et latence mesurées sur 30d
Corps de la requête
JSON, envoyé à cet endpoint.
- querystring
artificial intelligence
Mot-clé à faire correspondre aux noms et sujets des communautés X (Twitter) (p. ex. artificial intelligence).
- cursorstring
Curseur de pagination opaque issu du nextCursor d’une réponse précédente. Omettez-le pour la première page ; passez-le pour récupérer la page suivante de communautés.
Réponse
JSON, une valeur d’exemple par champ.
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
À propos de l’API X / Twitter Recherche de communautés
L’API X / Twitter Recherche de communautés d’AnyAPI renvoie des données X / Twitter en JSON normalisé à partir d’un appel POST à /v1/run/twitter.search_communities. Cherchez des communautés X (Twitter) par mot-clé et obtenez leur id, nom, sujet et nombre de membres avec pagination par curseur. C’est ainsi que vous trouvez l’URL d’une communauté à passer à twitter.community ou twitter.community_tweets. AnyAPI renvoie un schéma normalisé unique quelle que soit la source qui répond. Elle coûte 0,11 $US pour 1 000 résultats, et jamais plus de 0,0011 $US pour une seule requête, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 96,6% des appels X / Twitter Recherche de communautés passés par AnyAPI ont réussi, avec un temps de réponse médian de 0,7 secondes, sur 377 appels mesurés.