Tweets

GET/tw-v2/community/tweets

Description

Retrieve tweets from a specific Twitter community. Returns a paginated timeline of community tweets with configurable sorting.

Parameters

ParameterTypeRequiredDescription
communityIdstringrequiredUnique Twitter community ID
cursorstringoptionalPagination cursor for fetching next page of results. Obtained from previous response.
sortBystringrequiredSort order for results (Relevance, Recency)

Code Examples

const params = new URLSearchParams({
  communityId: '1234567890',
  sortBy: 'Relevance'
});

const response = await fetch(`https://api.tweetapi.com/tw-v2/community/tweets?${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": "1973080106177376585",
      "conversationId": "1973080106177376585",
      "text": "https://t.co/QIdAtAgDh8",
      "displayTextRange": [
        0,
        23
      ],
      "author": {
        "id": "1363374429376372740",
        "username": "MrFoodies",
        "name": "Foodies",
        "bio": "The Best Food Content From All Over The Internet",
        "location": "flavortown",
        "website": null,
        "pinnedTweetIds": [
          "1970430025351774524"
        ],
        "avatar": "https://pbs.twimg.com/profile_images/1718422690015678464/ajkaPqod_400x400.jpg",
        "banner": "https://pbs.twimg.com/profile_banners/1363374429376372740/1698538849/1500x500",
        "profileImageShape": "Circle",
        "verified": false,
        "isBlueVerified": true,
        "verifiedType": null,
        "verifiedSince": null,
        "isIdentityVerified": false,
        "isProtected": false,
        "possiblySensitive": false,
        "profileInterstitialType": null,
        "withheldInCountries": [],
        "professional": {
          "type": "Creator",
          "category": [],
          "restId": "1492027497105399817"
        },
        "businessAccount": null,
        "creatorSubscriptionsCount": 0,
        "hasHiddenSubscriptions": false,
        "highlightsInfo": null,
        "hasGraduatedAccess": true,
        "isProfileTranslatable": false,
        "hasCustomTimelines": false,
        "isTranslator": false,
        "affiliatesHighlightedLabel": {},
        "defaultProfile": true,
        "defaultProfileImage": false,
        "followerCount": 6365,
        "followingCount": 1393,
        "tweetCount": 791,
        "listedCount": 17,
        "mediaCount": 471,
        "favoritesCount": 1492,
        "createdAt": "2021-02-21T06:26:16.000Z"
      },
      "source": null,
      "type": "tweet",
      "replyTo": null,
      "quotedTweet": null,
      "retweetedTweet": null,
      "likeCount": 264,
      "retweetCount": 31,
      "replyCount": 10,
      "quoteCount": 12,
      "bookmarkCount": 42,
      "viewCount": 96574,
      "media": [
        {
          "id": "1973078313389477888",
          "key": "13_1973078313389477888",
          "type": "video",
          "url": "https://video.twimg.com/amplify_video/1973078313389477888/vid/avc1/718x1008/wnF517VyiqPXIIkG.mp4?tag=21",
          "displayUrl": "pic.x.com/QIdAtAgDh8",
          "expandedUrl": "https://x.com/messedupclips/status/1973078369085317529/video/1",
          "thumbnailUrl": "https://pbs.twimg.com/amplify_video_thumb/1973078313389477888/img/5WtmVRWuZ6CUaFXC.jpg",
          "width": 718,
          "height": 1008,
          "aspectRatio": [
            359,
            504
          ],
          "sizes": {
            "thumb": {
              "width": 150,
              "height": 150,
              "resize": "crop"
            },
            "small": {
              "width": 484,
              "height": 680,
              "resize": "fit"
            },
            "medium": {
              "width": 718,
              "height": 1008,
              "resize": "fit"
            },
            "large": {
              "width": 718,
              "height": 1008,
              "resize": "fit"
            },
            "original": {
              "width": 718,
              "height": 1008,
              "resize": "fit"
            }
          },
          "duration": 6,
          "bitrate": null,
          "videoInfo": {
            "variants": [
              {
                "bitrate": 0,
                "contentType": "application/x-mpegURL",
                "url": "https://video.twimg.com/amplify_video/1973078313389477888/pl/RdKjuu5MF9YF2CTZ.m3u8?tag=21"
              },
              {
                "bitrate": 632000,
                "contentType": "video/mp4",
                "url": "https://video.twimg.com/amplify_video/1973078313389477888/vid/avc1/320x448/4qXhkltqJ1Z38C-7.mp4?tag=21"
              },
              {
                "bitrate": 950000,
                "contentType": "video/mp4",
                "url": "https://video.twimg.com/amplify_video/1973078313389477888/vid/avc1/480x672/CSbm70FM5XDO8w2S.mp4?tag=21"
              },
              {
                "bitrate": 2176000,
                "contentType": "video/mp4",
                "url": "https://video.twimg.com/amplify_video/1973078313389477888/vid/avc1/718x1008/wnF517VyiqPXIIkG.mp4?tag=21"
              }
            ],
            "durationMillis": 6266
          },
          "altText": null,
          "sensitiveMedia": false,
          "features": {
            "all": [],
            "large": [],
            "medium": [],
            "small": [],
            "orig": [
              {
                "faces": []
              }
            ]
          },
          "mediaAvailability": {
            "status": "Available",
            "reason": null
          },
          "allowDownload": true,
          "mediaStats": null,
          "processingInfo": null,
          "sourceStatusId": "1973078369085317529",
          "sourceUserId": "1771328895989805056",
          "stickers": null
        }
      ],
      "poll": null,
      "card": null,
      "hashtags": [],
      "mentions": [],
      "urls": [],
      "symbols": [],
      "possiblySensitive": false,
      "limitedActions": null,
      "isEdited": false,
      "editControl": null,
      "isTranslatable": false,
      "lang": "zxx",
      "translatedText": null,
      "hasBirdwatchNotes": false,
      "birdwatchPivot": null,
      "conversationControl": null,
      "isPromoted": false,
      "promotedMetadata": null,
      "createdAt": "2025-09-30T17:38:50.000Z",
      "place": null,
      "communityId": null,
      "communityResults": null
    },
    {
      "id": "1973587564297855434",
      "conversationId": "1973587564297855434",
      "text": "GM time to take a lunch πŸ₯™ \n\nThe best food in this world @wallchain_xyz \n@genome_protocol πŸ˜‹ yummy https://t.co/z03r2zwKpw",
      "displayTextRange": [
        0,
        96
      ],
      "author": {
        "id": "1841508376821510144",
        "username": "Kryptonomanos",
        "name": "Kryptonite | 𝔽rAI πŸŽ’",
        "bio": "Trader and Investors since 2020 - Comedian",
        "location": null,
        "website": null,
        "pinnedTweetIds": [
          "1973220457538265439"
        ],
        "avatar": "https://pbs.twimg.com/profile_images/1930465594597617671/0MsXpAq2_400x400.jpg",
        "banner": "https://pbs.twimg.com/profile_banners/1841508376821510144/1751471885/1500x500",
        "profileImageShape": "Circle",
        "verified": false,
        "isBlueVerified": true,
        "verifiedType": null,
        "verifiedSince": null,
        "isIdentityVerified": false,
        "isProtected": false,
        "possiblySensitive": false,
        "profileInterstitialType": null,
        "withheldInCountries": [],
        "professional": null,
        "businessAccount": null,
        "creatorSubscriptionsCount": 0,
        "hasHiddenSubscriptions": false,
        "highlightsInfo": null,
        "hasGraduatedAccess": true,
        "isProfileTranslatable": false,
        "hasCustomTimelines": false,
        "isTranslator": false,
        "affiliatesHighlightedLabel": {},
        "defaultProfile": true,
        "defaultProfileImage": false,
        "followerCount": 4021,
        "followingCount": 4282,
        "tweetCount": 26814,
        "listedCount": 11,
        "mediaCount": 1229,
        "favoritesCount": 26174,
        "createdAt": "2024-10-02T15:59:52.000Z"
      },
      "source": null,
      "type": "tweet",
      "replyTo": null,
      "quotedTweet": null,
      "retweetedTweet": null,
      "likeCount": 8,
      "retweetCount": 0,
      "replyCount": 8,
      "quoteCount": 0,
      "bookmarkCount": 0,
      "viewCount": 57,
      "media": [
        {
          "id": "1973587556462895109",
          "key": "3_1973587556462895109",
          "type": "photo",
          "url": "https://pbs.twimg.com/media/G2OXbRQaIAUalld.jpg",
          "displayUrl": "pic.x.com/z03r2zwKpw",
          "expandedUrl": "https://x.com/Kryptonomanos/status/1973587564297855434/photo/1",
          "thumbnailUrl": "https://pbs.twimg.com/media/G2OXbRQaIAUalld.jpg",
          "width": 915,
          "height": 637,
          "aspectRatio": [
            915,
            637
          ],
          "sizes": {
            "thumb": {
              "width": 150,
              "height": 150,
              "resize": "crop"
            },
            "small": {
              "width": 680,
              "height": 473,
              "resize": "fit"
            },
            "medium": {
              "width": 915,
              "height": 637,
              "resize": "fit"
            },
            "large": {
              "width": 915,
              "height": 637,
              "resize": "fit"
            },
            "original": {
              "width": 915,
              "height": 637,
              "resize": "fit"
            }
          },
          "duration": null,
          "bitrate": null,
          "videoInfo": null,
          "altText": null,
          "sensitiveMedia": false,
          "features": {
            "all": [],
            "large": [],
            "medium": [],
            "small": [],
            "orig": [
              {
                "faces": [
                  {
                    "x": 0,
                    "y": 0,
                    "width": 915,
                    "height": 512
                  },
                  {
                    "x": 116,
                    "y": 0,
                    "width": 637,
                    "height": 637
                  },
                  {
                    "x": 155,
                    "y": 0,
                    "width": 559,
                    "height": 637
                  },
                  {
                    "x": 275,
                    "y": 0,
                    "width": 319,
                    "height": 637
                  },
                  {
                    "x": 0,
                    "y": 0,
                    "width": 915,
                    "height": 637
                  }
                ]
              }
            ]
          },
          "mediaAvailability": {
            "status": "Available",
            "reason": null
          },
          "allowDownload": true,
          "mediaStats": null,
          "processingInfo": null,
          "sourceStatusId": null,
          "sourceUserId": null,
          "stickers": null
        }
      ],
      "poll": null,
      "card": null,
      "hashtags": [],
      "mentions": [
        "wallchain_xyz",
        "genome_protocol"
      ],
      "urls": [],
      "symbols": [],
      "possiblySensitive": false,
      "limitedActions": null,
      "isEdited": false,
      "editControl": null,
      "isTranslatable": false,
      "lang": "en",
      "translatedText": null,
      "hasBirdwatchNotes": false,
      "birdwatchPivot": null,
      "conversationControl": null,
      "isPromoted": false,
      "promotedMetadata": null,
      "createdAt": "2025-10-02T03:15:17.000Z",
      "place": null,
      "communityId": null,
      "communityResults": null
    }
  ],
  "pagination": {
    "nextCursor": "DAABCgABG2O7RcJ__-kKAAIbYrso_1sA1ggAAwAAAAIAAA",
    "prevCursor": "DAABCgABG2O7RcKAJxEKAAIbY5du5xohyggAAwAAAAEAAA"
  }
}

API Playground

GET/tw-v2/community/tweets

Press ⌘ + Enter to execute

curl -X GET "https://api.tweetapi.com/tw-v2/community/tweets" \
  -H "X-API-Key: YOUR_API_KEY"
Response

Click "Try It!" to see the response