Details

GET/tw-v2/community/details

Description

Get detailed information about a specific Twitter community including metadata, member count, and settings.

Parameters

ParameterTypeRequiredDescription
communityIdstringrequiredUnique Twitter 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": "1671978073690873856",
    "name": "food hub",
    "description": "a place for food memes, messed up foods, your good looking dinner, and anything else food-related",
    "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": "food-related stuff",
        "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://pbs.twimg.com/community_banner_img/1671980103352328227/7DWFtLQF?format=jpg&name=orig",
    "avatarUrl": null,
    "joinRequestsEnabled": false,
    "pinnedTweetId": null
  }
}

API Playground

GET/tw-v2/community/details

Press ⌘ + 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