Get community tweets
GET
/twitter/community/tweets
const url = 'https://api.relayxapi.com/twitter/community/tweets?community_id=example';const options = { method: 'GET', headers: { 'X-API-Key': '<api-key>' },};
try { const res = await fetch(url, options); const data = await res.json(); console.log(data);} catch (err) { console.error(err);}curl --request GET \ --url 'https://api.relayxapi.com/twitter/community/tweets?community_id=example' \ --header 'X-API-Key: <api-key>'import requests
res = requests.get( "https://api.relayxapi.com/twitter/community/tweets", params={"community_id": "example"}, headers={"X-API-Key": "<api-key>"},)print(res.json())Return the timeline of posts from a single Community.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”community_id
required
Community Id
string
cursor
Cursor
string
Header Parameters
Section titled “Header Parameters”x-api-key
X-Api-Key
string
Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
Example
{ "tweets": [ { "type": "tweet", "id": "1900000000000000010", "url": "https://x.com/i/status/1900000000000000010", "text": "Example post text.", "retweetCount": 0, "replyCount": 0, "likeCount": 0, "quoteCount": 0, "viewCount": "87", "bookmarkCount": 0, "createdAt": "Fri Sep 25 09:59:06 +0000 2026", "lang": "zh", "isReply": false, "inReplyToId": null, "conversationId": "1900000000000000010", "displayTextRange": null, "entities": null, "quoted_tweet": null, "author": { "type": "user", "userName": "example_user19", "url": "https://x.com/example_user19", "id": "1000000000000000019", "name": "Example User 19", "isBlueVerified": false, "description": "Example bio.", "location": "", "followers": 1020, "following": 1215, "statusesCount": null, "createdAt": "Sun Jun 19 15:29:56 +0000 2011", "profilePicture": "https://pbs.twimg.com/profile_images/example/avatar_normal.jpg", "coverPicture": null, "canDm": false, "pinnedTweetIds": [], "profile_bio": null } } ], "status": "success", "msg": "", "has_next_page": true, "next_cursor": "DAAFCgABHTER6ms___0LAAIAAAAoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUFFZE1OMEZ3TnBBNXc9PQgAAwAAAAIAAA"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}