Rechercher des communautés
Rechercher des communautés.
Retour à la référence API
/Communities Endpoints
POST
/twitter/community/searchAutorisation API
AuthorizationBearer token · headerrequisJeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Corps de la requête
requisapplication/jsonquerystringrequisThe query to search for.
target_countintegerrequisThe number of communities to search.
Réponses
200A list of community objects.
codeintegerrequisCode d'état HTTP (200 indique le succès)
msgstringrequisMessage de réponse (ex. 'success')
dataCommunityModel[]requisDonnées principales renvoyées par l'API
Afficher les propriétésMasquer les propriétés
Array of
CommunityModelidstringrequisThe ID of the community
namestringrequisNom de l'utilisateur
descriptionstringrequisBiographie du profil
member_countintegerrequisThe number of members in the community
is_nsfwboolean | anyIndicates if the community is NSFW.
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anymembers_facepile_resultsstring[]The profile image URLs of members.
bannerobject | anyThe banner information of the community.
Afficher les propriétésMasquer les propriétés
Any of:
object
objectany
anyis_memberboolean | anyIndicates if the user is a member of the community.
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyrolestring | anyThe role of the user in the community.
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyadminUserModel | anyThe admin of the community.
Afficher les propriétésMasquer les propriétés
Any of:
UserModel
idstringrequisUser ID
namestringrequisNom de l'utilisateur
screen_namestringrequisNom d'utilisateur Twitter (sans @)
created_atstring | anyDate et heure de création (UTC)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycreated_at_datetimestring | anyAccount creation datetime in ISO format
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycan_dmboolean | anyWhether the user can be direct messaged
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anycan_media_tagboolean | anyWhether the user can be tagged in media
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anydefault_profileboolean | anyWhether the user has a default profile
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anydefault_profile_imageboolean | anyWhether the user has a default profile image
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anydescriptionstring | anyBiographie du profil
default: ""
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anydescription_urlsstring[]List of URLs found in the user's description
default: []
urlsurlModel[] | anyList of URLs found in the user's profile
Afficher les propriétésMasquer les propriétés
Any of:
urlModel[]
Array of
urlModelurlstringrequisURL
expanded_urlstring | anyExpanded URL
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anydisplay_urlstring | anyDisplay URL
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyany
anyfast_followers_countinteger | anyCount of fast followers
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfavourites_countinteger | anyNumber of tweets the user has liked
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfollowers_countinteger | anyNombre total d'abonnés
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfollowing_countinteger | anyNombre total d'abonnements
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyhas_custom_timelinesboolean | anyWhether the user has custom timelines
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyis_blue_verifiedboolean | anyBlue verification status
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyverified_typestring | anyVerification badge type when not blue-only: blue, business, government, etc.
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_verifiedboolean | anyTrue if the account has any verification badge (blue, business, government, or legacy verified)
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyprofile_image_shapestring | anyProfile image shape (Circle or Square; Square often indicates business/government)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_translatorboolean | anyWhether the user is a translator
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anylisted_countinteger | anyNumber of public lists the user is a member of
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anylocationstring | anyUser's location
default: ""
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anymedia_countinteger | anyNumber of media tweets posted by the user
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anynormal_followers_countinteger | anyCount of normal followers
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anypinned_tweet_idsstring[]List of pinned tweet IDs
default: []
possibly_sensitiveboolean | anyWhether the user's profile may contain sensitive content
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyprofile_banner_urlstring | anyURL of the user's profile banner
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyprofile_image_urlstring | anyURL of the user's profile image
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyprotectedboolean | anyWhether the user's tweets are protected
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anystatuses_countinteger | anyNumber of tweets posted by the user
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyany
anyjoin_policystring | anyThe join policy of the community.
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycreated_atinteger | anyDate et heure de création (UTC)
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyinvites_policystring | anyThe invites policy of the community.
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_pinnedboolean | anyIndicates if the community is pinned.
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
any422Erreur de validation des paramètres
detailValidationError[]Afficher les propriétésMasquer les propriétés
Array of
ValidationErrorlocstring | integer[]requisAfficher les propriétésMasquer les propriétés
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequisMessage de réponse (ex. 'success')
typestringrequisinputanyctxobject⚡Console interactivePOST
⚡Console interactive / Tester l'APIPOSTLive Console
🌐Serveur cible :
https://api.twexapi.io● Prêt pour la production
🔍
Lecture de données publiques (Clé TwexAPI uniquement, aucun Cookie Twitter)
Ce point d'accès consulte des données publiques — aucun compte ni Cookie Twitter requis ! Entrez simplement votre clé TwexAPI (Bearer Token) ci-dessous pour tester.
🔑Autorisation API
📝Corps de la requêteapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
Requête
curl -X POST "https://api.twexapi.io/twitter/community/search" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "string",
"target_count": 0
}'const response = await fetch("https://api.twexapi.io/twitter/community/search", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"query": "string",
"target_count": 0
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/community/search",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"query": "string",
"target_count": 0
},
)Réponse
{
"code": 0,
"msg": "string",
"data": [
{
"id": "string",
"name": "string",
"description": "string",
"member_count": 0,
"is_nsfw": true,
"members_facepile_results": [
"string"
],
"banner": {},
"is_member": true,
"role": "string",
"admin": {
"id": "1717001045992251392",
"name": "Cryptoklepto",
"screen_name": "CK_Cryptoklepto",
"created_at": "Mon Oct 28 02:32:47 +0000 2024",
"created_at_datetime": "2024-10-28T02:32:47.000Z",
"can_dm": false,
"can_media_tag": false,
"default_profile": false,
"default_profile_image": false,
"description": "",
"description_urls": [],
"urls": [
{
"url": "https://www.google.com",
"expanded_url": "https://www.google.com",
"display_url": "www.google.com"
}
],
"fast_followers_count": 0,
"favourites_count": 0,
"followers_count": 0,
"following_count": 0,
"has_custom_timelines": false,
"is_blue_verified": false,
"verified_type": "government",
"is_verified": false,
"profile_image_shape": "Circle",
"is_translator": false,
"listed_count": 0,
"location": "New York, USA",
"media_count": 0,
"normal_followers_count": 0,
"pinned_tweet_ids": [],
"possibly_sensitive": false,
"profile_banner_url": "string",
"profile_image_url": "string",
"protected": false,
"statuses_count": 0
},
"join_policy": "string",
"created_at": 0,
"invites_policy": "string",
"is_pinned": true
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}