Get community tweets
GET/twitter/community/tweets
Tweets posted in a community. Paginated: use cursor / next_cursor.
Price: $0.0006 per request.
Parameters
community_idstringrequiredNumeric community ID.
Example:
1789410733115236387cursorstringPagination cursor. Leave empty for the first page, then pass
next_cursorfrom the previous response.
Example request
curl "https://api.cheapxapi.com/twitter/community/tweets?community_id=1789410733115236387" \
-H "x-api-key: YOUR_KEY"Response
Charged. Check status: success means data was returned; error (e.g. user not found) is also HTTP 200.
| Field | Type |
|---|---|
tweets | array of Tweet |
type | "tweet" |
id | string |
url | string |
text | string |
source | string |
retweetCount | integer |
replyCount | integer |
likeCount | integer |
quoteCount | integer |
viewCount | integer |
createdAt | string |
lang | string |
bookmarkCount | integer |
isReply | boolean |
inReplyToId | string |
conversationId | string |
displayTextRange | array of integer |
inReplyToUserId | string |
inReplyToUsername | string |
author | UserInfo |
entities | TweetEntities |
quoted_tweet | Tweet |
retweeted_tweet | Tweet |
isLimitedReply | boolean |
has_next_page | boolean |
next_cursor | string |
status | "success" | "error" |
msg | string |
Status codes
- 200
- Charged. Check
status:successmeans data was returned;error(e.g. user not found) is also HTTP 200. - 400
- Invalid parameters (charged), or API key placed in the URL (not charged).
- 401
- Missing or invalid API key (not charged).
- 402
- Insufficient balance (not charged).
- 403
- Account disabled (not charged).
- 404
- Unknown endpoint (charged), or the requested item could not be found (not charged). Note: many endpoints report a missing user/tweet as HTTP 200 with
"status":"error"instead; those are charged. - 405
- Only GET is supported (not charged).
- 429
- Rate limit exceeded (not charged). Retry after the time in the
Retry-Afterheader. - 503
- Temporary service problem, or the endpoint is temporarily unavailable (not charged). Retry with exponential backoff.