Recent posts in an X (Twitter) Community by URL, with author and engagement counts, newest first.
2 credits/ call
Never more than 5 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/twitter.community_tweets" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/i/communities/1493446837214187523"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"tweets": [
{
"favoriteCount": "<integer | null>",
"replyCount": "<integer | null>",
"retweetCount": "<integer | null>",
"authorVerified": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
2 fields
https://x.com/i/communities/14934468372….14 fields
cursor for the next page; null at the end or when unknownGood to know
One page per call. Send nextCursor back as cursor to read the next page.
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.