Community tweets
curl --request GET \
--url https://api.scraperize.com/v1/twitter/community/tweets \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/twitter/community/tweets"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraperize.com/v1/twitter/community/tweets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraperize.com/v1/twitter/community/tweets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraperize.com/v1/twitter/community/tweets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraperize.com/v1/twitter/community/tweets")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/twitter/community/tweets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"communityId": "1433869915434278912",
"tweets": [
{
"id": "2096516206916431943",
"url": "https://x.com/Xbdguangfang/status/2096516206916431943",
"text": "有人能告诉我现在还能修改社群信息或者创建社群吗,感谢🙏",
"isLongForm": false,
"lang": "zh",
"createdAtMs": 1788683389000,
"createdAt": "2026-09-06T08:29:49.000Z",
"counts": {
"likes": 25,
"retweets": 3,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "14005",
"author": {
"id": "1965139342780993536",
"name": "Xbd官方",
"screenName": "Xbdguangfang",
"url": "https://x.com/Xbdguangfang",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/2101661962543443968/i0NzjJ5i_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/2101661962543443968/i0NzjJ5i_400x400.jpg",
"followers": 32,
"following": 68,
"tweetCount": 4,
"verified": false,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2096516206916431943"
],
"place": null
},
{
"id": "2100306796397342942",
"url": "https://x.com/MarketWavz/status/2100306796397342942",
"text": "Feature request: give communities their own reputation system.\n\nCommunities become much more valuable when the people consistently adding value become easier to recognize.\n\nI’d love Community-specific reputation:\n• Helpful votes on replies and posts\n• “Top Contributor” badges per Community\n• Reputation based on value, not follower count\n• Weekly/monthly contributor leaderboards\n• Community expertise shown on profiles\n• Higher visibility for consistently useful contributors\n\nSomeone could have 500 followers on X but be one of the most knowledgeable people inside a 200,000-member investing Community.\n\nThat should mean something.\n\nIt would give people a reason to contribute more, help niche experts stand out, and make reputation inside a Community actually valuable.",
"isLongForm": true,
"lang": "en",
"createdAtMs": 1789587136000,
"createdAt": "2026-09-16T19:32:16.000Z",
"counts": {
"likes": 24,
"retweets": 2,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "11157",
"author": {
"id": "2099446415734808580",
"name": "MarketWavz",
"screenName": "MarketWavz",
"url": "https://x.com/MarketWavz",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/2099447612571058176/ukP47PDW_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/2099447612571058176/ukP47PDW_400x400.jpg",
"followers": 31,
"following": 42,
"tweetCount": 478,
"verified": true,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2100306796397342942"
],
"place": null
},
{
"id": "2099108651608780898",
"url": "https://x.com/anthsadvocacy/status/2099108651608780898",
"text": "Hi @HiCommunities and @Support - ALL the X SPACES that are hosted within all X Communities have disappeared, and also, one is unable to host a space in an X Community. This bug seems to have appeared in the first half of September 2026 . Are you @HiCommunities and @Support currently deleting or updating communities in the background? I hope those spaces can be restored, or at least please allow us to make archive backups (before you delete all spaces), because that feature (archive) is not working either.",
"isLongForm": true,
"lang": "en",
"createdAtMs": 1789301476000,
"createdAt": "2026-09-13T12:11:16.000Z",
"counts": {
"likes": 17,
"retweets": 1,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "10130",
"author": {
"id": "1995536935562215425",
"name": "Advocate",
"screenName": "anthsadvocacy",
"url": "https://x.com/anthsadvocacy",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/1995547326530686976/_-8hFDMv_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/1995547326530686976/_-8hFDMv_400x400.jpg",
"followers": 29,
"following": 33,
"tweetCount": 47,
"verified": false,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [
{
"screenName": "HiCommunities",
"id": "1433894099178774532",
"indices": [
3,
17
]
},
{
"screenName": "Support",
"id": "17874544",
"indices": [
22,
30
]
},
{
"screenName": "HiCommunities",
"id": "1433894099178774532",
"indices": [
246,
260
]
}
],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2099108651608780898"
],
"place": null
}
],
"tweetCount": 12,
"fetchedAt": "2026-10-05T14:42:34.905Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"details": [
{
"path": "url",
"message": "Required"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}Twitter
Community tweets
Fetches the tweet timeline of a public X Community (x.com/i/communities/<id>). Each tweet is fully shaped WITH its author (community tweets come from many members). Returns the most recent tweets (one page, no pagination).
GET
/
v1
/
twitter
/
community
/
tweets
Community tweets
curl --request GET \
--url https://api.scraperize.com/v1/twitter/community/tweets \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraperize.com/v1/twitter/community/tweets"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraperize.com/v1/twitter/community/tweets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraperize.com/v1/twitter/community/tweets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraperize.com/v1/twitter/community/tweets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraperize.com/v1/twitter/community/tweets")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraperize.com/v1/twitter/community/tweets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"communityId": "1433869915434278912",
"tweets": [
{
"id": "2096516206916431943",
"url": "https://x.com/Xbdguangfang/status/2096516206916431943",
"text": "有人能告诉我现在还能修改社群信息或者创建社群吗,感谢🙏",
"isLongForm": false,
"lang": "zh",
"createdAtMs": 1788683389000,
"createdAt": "2026-09-06T08:29:49.000Z",
"counts": {
"likes": 25,
"retweets": 3,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "14005",
"author": {
"id": "1965139342780993536",
"name": "Xbd官方",
"screenName": "Xbdguangfang",
"url": "https://x.com/Xbdguangfang",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/2101661962543443968/i0NzjJ5i_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/2101661962543443968/i0NzjJ5i_400x400.jpg",
"followers": 32,
"following": 68,
"tweetCount": 4,
"verified": false,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2096516206916431943"
],
"place": null
},
{
"id": "2100306796397342942",
"url": "https://x.com/MarketWavz/status/2100306796397342942",
"text": "Feature request: give communities their own reputation system.\n\nCommunities become much more valuable when the people consistently adding value become easier to recognize.\n\nI’d love Community-specific reputation:\n• Helpful votes on replies and posts\n• “Top Contributor” badges per Community\n• Reputation based on value, not follower count\n• Weekly/monthly contributor leaderboards\n• Community expertise shown on profiles\n• Higher visibility for consistently useful contributors\n\nSomeone could have 500 followers on X but be one of the most knowledgeable people inside a 200,000-member investing Community.\n\nThat should mean something.\n\nIt would give people a reason to contribute more, help niche experts stand out, and make reputation inside a Community actually valuable.",
"isLongForm": true,
"lang": "en",
"createdAtMs": 1789587136000,
"createdAt": "2026-09-16T19:32:16.000Z",
"counts": {
"likes": 24,
"retweets": 2,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "11157",
"author": {
"id": "2099446415734808580",
"name": "MarketWavz",
"screenName": "MarketWavz",
"url": "https://x.com/MarketWavz",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/2099447612571058176/ukP47PDW_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/2099447612571058176/ukP47PDW_400x400.jpg",
"followers": 31,
"following": 42,
"tweetCount": 478,
"verified": true,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2100306796397342942"
],
"place": null
},
{
"id": "2099108651608780898",
"url": "https://x.com/anthsadvocacy/status/2099108651608780898",
"text": "Hi @HiCommunities and @Support - ALL the X SPACES that are hosted within all X Communities have disappeared, and also, one is unable to host a space in an X Community. This bug seems to have appeared in the first half of September 2026 . Are you @HiCommunities and @Support currently deleting or updating communities in the background? I hope those spaces can be restored, or at least please allow us to make archive backups (before you delete all spaces), because that feature (archive) is not working either.",
"isLongForm": true,
"lang": "en",
"createdAtMs": 1789301476000,
"createdAt": "2026-09-13T12:11:16.000Z",
"counts": {
"likes": 17,
"retweets": 1,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "10130",
"author": {
"id": "1995536935562215425",
"name": "Advocate",
"screenName": "anthsadvocacy",
"url": "https://x.com/anthsadvocacy",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/1995547326530686976/_-8hFDMv_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/1995547326530686976/_-8hFDMv_400x400.jpg",
"followers": 29,
"following": 33,
"tweetCount": 47,
"verified": false,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [
{
"screenName": "HiCommunities",
"id": "1433894099178774532",
"indices": [
3,
17
]
},
{
"screenName": "Support",
"id": "17874544",
"indices": [
22,
30
]
},
{
"screenName": "HiCommunities",
"id": "1433894099178774532",
"indices": [
246,
260
]
}
],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2099108651608780898"
],
"place": null
}
],
"tweetCount": 12,
"fetchedAt": "2026-10-05T14:42:34.905Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"details": [
{
"path": "url",
"message": "Required"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}Cost: 1 credit per successful request. Errors and cache hits (
cache_max_age) are free.Copy for AI assistant
Copy for AI assistant
Paste this into ChatGPT, Claude or your coding assistant to generate working code for this endpoint (use the copy button).
Prompt
I want to make an API call to /v1/twitter/community/tweets. Here are the details:
Endpoint: GET https://api.scraperize.com/v1/twitter/community/tweets
Description: Fetches the tweet timeline of a public X Community (`x.com/i/communities/<id>`). Each tweet is fully shaped WITH its author (community tweets come from many members). Returns the most recent tweets (one page, no pagination).
Required Headers:
- x-api-key: Your API key
Parameters:
- url (string) [required]: Community URL, e.g. https://x.com/i/communities/1433869915434278912
- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.
Example Response:
{
"data": {
"communityId": "1433869915434278912",
"tweets": [
{
"id": "2096516206916431943",
"url": "https://x.com/Xbdguangfang/status/2096516206916431943",
"text": "有人能告诉我现在还能修改社群信息或者创建社群吗,感谢🙏",
"isLongForm": false,
"lang": "zh",
"createdAtMs": 1788683389000,
"createdAt": "2026-09-06T08:29:49.000Z",
"counts": {
"likes": 25,
"retweets": 3,
"replies": 2,
"quotes": 0,
"bookmarks": 1
},
"views": "14005",
"author": {
"id": "1965139342780993536",
"name": "Xbd官方",
"screenName": "Xbdguangfang",
"url": "https://x.com/Xbdguangfang",
"bio": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/2101661962543443968/i0NzjJ5i_normal.jpg",
"avatarUrlHd": "https://pbs.twimg.com/profile_images/2101661962543443968/i0NzjJ5i_400x400.jpg",
"followers": 32,
"following": 68,
"tweetCount": 4,
"verified": false,
"protected": false,
"profileImageShape": "Circle",
"professionalCategory": null
},
"media": [],
"mentions": [],
"urls": [],
"hashtags": [],
"cashtags": [],
"card": null,
"communityNote": null,
"article": null,
"isReply": false,
"replyToTweetId": null,
"replyToUserId": null,
"isQuote": false,
"quotedTweetId": null,
"quotedTweet": null,
"conversationControl": null,
"editTweetIds": [
"2096516206916431943"
],
"place": null
}
],
"tweetCount": 12,
"fetchedAt": "2026-10-05T14:42:34.905Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}
Please help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.
Authorizations
Your API key. Send it in the x-api-key header (or Authorization: Bearer <key>). Create and manage keys from your dashboard.
Query Parameters
Community URL, e.g. https://x.com/i/communities/1433869915434278912
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.
Available options:
1d, 3d, 7d, 14d, 30d