X
X Community
Get an X Community by id - name, description, creation date, member count, primary topic, NSFW flag, banner and its rules - as JSON. Costs 1 credit per request.
POST/api/v1/x/community
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsoncommunity_idstringrequiredA numeric community id, from Community Search.
Example: 1508567430188126209
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.x.community(community_id="1508567430188126209")
print(results)Response
"community_id": "1508567430188126209",
"name": "Investing | Stocks | Crypto",
"description": "TheFinanceNewsletter.com by @FluentInFinance— The largest community on Investing, Personal Finance, Stocks, Crypto, Real Estate, Bitcoin, Options & Stock Market",
"created_at": "2022-03-28T22:11:17.844Z",
"member_count": 143446,
"primary_topic": "Finance",
"is_nsfw": false,
"banner": "https://pbs.twimg.com/media/FECRNk0VIAckNa6.jpg",
},
"response_time": 3739
}