Platforms/X (Twitter)/Community tweets

X (Twitter) Community Posts API

GET ยท 1 credit

Send a community's id or link, and get its top posts: the 20 its page shows logged out.

GET /v1/twitter/communities/tweets

Example request

const url = `${process.env.API_URL}/v1/twitter/communities/tweets?community_id=1733520006279815231`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
community_idNoA community's id: the digits after /communities/ in its link. Give community_id or url.
urlNoA community's link: x.com/i/communities/<id>. Give community_id or url.

Example response

{
  "data": [
    {
      "id": "1917000000000000002",
      "url": "https://x.com/nightsky_lab/status/1917000000000000002",
      "text": "Orion over the desert, 30-second exposure.",
      "created_at": "2026-11-27T22:15:00Z",
      "language": "en",
      "author_id": "1500000000000000002",
      "author_handle": "nightsky_lab",
      "author_name": "Night Sky Lab",
      "author_picture": "https://pbs.twimg.com/profile_images/lab_400x400.jpg",
      "author_verified": false,
      "likes": 2100,
      "reply_count": 64,
      "retweet_count": 180,
      "quote_count": 9,
      "bookmark_count": 240,
      "views": 52000,
      "media": [
        {
          "type": "photo",
          "url": "https://pbs.twimg.com/media/orion.jpg",
          "video_url": null,
          "width": 1600,
          "height": 1067,
          "duration_seconds": null
        }
      ],
      "links": [],
      "mentions": [],
      "hashtags": [],
      "quoted_id": null,
      "reply_to_id": null,
      "reply_to_handle": null,
      "sensitive": false,
      "pinned": null
    }
  ],
  "page": null,
  "meta": {
    "platform": "twitter",
    "endpoint": "community_tweets",
    "params": {
      "community_id": "1733520006279815231"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

How many posts can I get?

The 20 top posts the community's page shows a logged-out visitor. There is no next page.

Are these the newest posts?

No. They're the top posts the page shows.

How do I read a post's replies?

Send its id to Tweet replies.

Works with

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required