KonbiniAPI

Get community — X API

Returns public metadata for an X community, including description, member count, topic, creator, and banner image.

GET/v1/x/communities/{communityId}1 credit per request
Example response200OK
{
  "data": {
    "@context": [
      "https://www.w3.org/ns/activitystreams#",
      "https://konbiniapi.com/ns/social#"
    ],
    "type": "Group",
    "id": "https://x.com/i/communities/1669501013441806336",
    "url": "https://x.com/i/communities/1669501013441806336",
    "entityId": "1669501013441806336",
    "name": "Memes",
    "summary": "Post the funniest memes you can find!",
    "published": "2023-06-16T00:23:54.093Z",
    "memberCount": 515319,
    "category": "Entertainment",
    "tag": [
      {
        "type": "Tag",
        "name": "learnfromkhaby",
        "href": "https://x.com/hashtag/learnfromkhaby"
      }
    ],
    "rule": [
      {
        "type": "Document",
        "entityId": "1848458992051159411",
        "name": "Post memes only",
        "content": "Posts should be memes. No unrelated content or spam."
      }
    ],
    "attributedTo": {
      "type": "Person",
      "id": "https://x.com/KhabyLame",
      "url": "https://x.com/KhabyLame",
      "entityId": "221838349",
      "preferredUsername": "KhabyLame",
      "name": "Khabane Lame",
      "icon": {
        "type": "Image",
        "url": "https://pbs.twimg.com/amplify_video_thumb/2024515147692195840/img/t8ePmit3Wst1hxAM.jpg",
        "width": 1536,
        "height": 2048
      },
      "isPrivate": false,
      "isVerified": false,
      "isPaidVerified": true,
      "summary": "Let's Go",
      "attachment": [
        {
          "type": "Link",
          "href": "https://t.co/examplelink",
          "rel": "preferred"
        }
      ],
      "followerCount": 372131,
      "followingCount": 8,
      "likeCount": 60,
      "postCount": 267,
      "mediaCount": 242,
      "listedCount": 215,
      "location": "Milan, Italy"
    },
    "image": [
      {
        "type": "Image",
        "url": "https://pbs.twimg.com/amplify_video_thumb/2024515147692195840/img/t8ePmit3Wst1hxAM.jpg",
        "width": 1536,
        "height": 2048
      }
    ]
  }
}

Make the request.

One authenticated GET to /v1/x/communities/{communityId}. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.

Built for

  • Data Analytics
  • Market Research
  • Platform Integration
const response = await fetch("https://api.konbiniapi.com/v1/x/communities/{communityId}", {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});

const data = await response.json();
Parameters1
  • communityIdrequiredIn · PathType · stringX community ID

What you will probably call next.

The X endpoints around this one — the same object at a different depth, or the same kind of read.

Try it on your own data.

Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.