Details
Details
GET
/tw-v2/community/detailsDescription
Get detailed information about a specific community including metadata, member count, and settings.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| communityId | string | required | Unique community ID |
Code Examples
const params = new URLSearchParams({
communityId: '1234567890'
});
const response = await fetch(`https://api.tweetapi.com/tw-v2/community/details?${params}`, {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
Response
Success Response (200 OK)
200
{
"data": {
"id": "9001746993033726229",
"name": "Sample User 80101",
"description": "Sample profile bio for Sample User 64708.",
"memberCount": 29961,
"moderatorCount": 0,
"adminCount": 1,
"createdAt": "2023-06-22T20:26:51.277Z",
"rules": [
{
"id": "Q29tbXVuaXR5UnVsZToxNjcxOTc4Mjk4MzE2ODI0NTg5",
"name": "be nice and respectful",
"description": "",
"order": 0,
"createdAt": ""
},
{
"id": "Q29tbXVuaXR5UnVsZToxNjcxOTc4NDAyNzcxODY5Njk2",
"name": "stay on topic",
"description": "Sample description for documentation 20706.",
"order": 1,
"createdAt": ""
},
{
"id": "Q29tbXVuaXR5UnVsZToxNjcxOTc4NDc0MjU5NDg4Nzgz",
"name": "no spamming",
"description": "",
"order": 2,
"createdAt": ""
},
{
"id": "Q29tbXVuaXR5UnVsZToxOTMwNjk1OTY1NzU0OTkxMDcx",
"name": "no links",
"description": "",
"order": 3,
"createdAt": ""
},
{
"id": "Q29tbXVuaXR5UnVsZToxNjcxOTc4NTY1NDg1NjAwNzkw",
"name": "lmao",
"description": "",
"order": 4,
"createdAt": ""
}
],
"isPrivate": false,
"isMember": false,
"isModerator": false,
"isAdmin": false,
"isBanned": false,
"canPost": true,
"bannerUrl": "https://example.com/images/sample-banner-64708.jpg",
"avatarUrl": null,
"joinRequestsEnabled": false,
"pinnedTweetId": null
}
}API Playground
GET
/tw-v2/community/detailsPress ⌘ + Enter to execute
curl -X GET "https://api.tweetapi.com/tw-v2/community/details" \
-H "X-API-Key: YOUR_API_KEY"Response
Click "Try It!" to see the response