Public details of an X (Twitter) Community by URL: name, description, member count, join policy, creator and rules.
1 credit/ call
Never more than 3 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/twitter.community" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/i/communities/1493446837214187523"}'{
"output": {
"found": true,
"data": {
"name": "<string | null>",
"memberCount": "<integer | null>",
"nsfw": "<boolean | null>",
"description": "<string | null>", …
}
},
"credits": 1
}Input and output
1 field
https://x.com/i/communities/14934468372….10 fields
Good to know
Unknown communities return found: false. A miss is an answer, not an error.
The same key and credits work for every API.