v1

latestOpenAPI 3.1.02026-07-26180242448.0 KB
Communities

Get community tweets

Get tweets from a specific community. Returns tweets posted within the community, filterable by type (Top, Latest, or Media). Supports pagination for communities with extensive content.

get/v1/twitter/communities/{community_id}/tweets

Path parameters

community_idstring required
Example:1234567890

The unique numeric ID of the community.

Query parameters

tweet_type'Top' | 'Latest' | 'Media'

Type of tweets to return from the community.

cursorstring

Pagination cursor for fetching the next page of results.

Response

Successfully retrieved community tweets.

next_cursorstring nullable

Cursor for fetching the next page. Null if no more results.

Example response

{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "Hello, world! This is a tweet.",
      "created_at": "Wed Oct 10 20:19:24 +0000 2018",
      "lang": "en",
      "user_id": "44196397",
      "username": "elonmusk",
      "user_name": "Elon Musk",
      "hashtags": [
        {
          "text": "AI"
        }
      ],
      "place": {
        "full_name": "San Francisco, CA",
        "name": "San Francisco",
        "country": "United States",
        "country_code": "US"
      },
      "source": "Twitter Web App"
    }
  ]
}