Skip to main content
POST
/
community-search-tweets
Search Community Tweets
curl --request POST \
  --url https://api.sorsa.io/v3/community-search-tweets \
  --header 'ApiKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "community_link": "https://x.com/i/communities/1966045657589813686",
  "next_cursor": "123",
  "order_by": "popular",
  "query": "elonmusk"
}
'
{
  "next_cursor": "<string>",
  "tweets": [
    {
      "bookmark_count": 15,
      "conversation_id_str": "1782368585664626774",
      "created_at": "2024-01-15T10:30:00Z",
      "entities": [
        {
          "link": "https://t.co/example",
          "preview": "https://pbs.twimg.com/preview",
          "type": "photo"
        }
      ],
      "full_text": "Hello world",
      "id": "1782368585664626774",
      "in_reply_to_tweet_id": "1782368585664626000",
      "in_reply_to_username": "username",
      "is_quote_status": false,
      "is_replies_limited": false,
      "is_reply": false,
      "lang": "en",
      "likes_count": 200,
      "quote_count": 5,
      "quoted_status": "<unknown>",
      "reply_count": 10,
      "retweet_count": 50,
      "retweeted_status": "<unknown>",
      "user": {
        "bio_urls": [
          "<string>"
        ],
        "can_dm": false,
        "created_at": "2009-06-02T20:12:29Z",
        "description": "Bio text",
        "display_name": "Elon Musk",
        "favourites_count": 1200,
        "followers_count": 100000,
        "followings_count": 500,
        "id": "44196397",
        "location": "Austin, TX",
        "media_count": 300,
        "pinned_tweet_ids": [
          "<string>"
        ],
        "possibly_sensitive": false,
        "profile_background_image_url": "https://pbs.twimg.com/profile_banners/44196397/123",
        "profile_image_url": "https://pbs.twimg.com/profile_images/123/photo.jpg",
        "protected": false,
        "tweets_count": 5000,
        "username": "elonmusk",
        "verified": true
      },
      "view_count": 10000
    }
  ]
}

Authorizations

ApiKey
string
header
required

Body

application/json

Search community tweets request

Full community URL or community ID.

Example:

"https://x.com/i/communities/1966045657589813686"

next_cursor
string

Pagination cursor from a previous response.

Example:

"123"

order_by
string

Sort order: popular or latest.

Example:

"popular"

query
string

Search query string.

Example:

"elonmusk"

Response

OK

next_cursor
string

Cursor for fetching the next page of results. Null or absent if no more pages.

tweets
object[]

Array of tweet objects.