Community members
Members of a community.
/communities/{communityId}/membersParameters
communityIdpath · string · requiredNumeric community ID, the number in the community URL.
countquery · integer · optional · default 20Number of members to ask X for. Sent to X as is; X treats it as a hint and decides how many it returns (follower and following pages often hold 50 to 70 users for count=20). A value that is not a number falls back to 20.
cursorquery · string · optionalBottom cursor from the previous page. Leave it out for the first page. See Pagination.
Paginated: pass the bottom cursor of one page as cursor to get the next. Each page is one billed call. See Pagination.
Example request
curl 'https://api.twittrapi.com/communities/1500000000000000000/members' \
--header 'X-API-KEY: YOUR_API_KEY'import httpx
# No SDK method for this endpoint yet, so this is a plain HTTP call.
resp = httpx.get(
"https://api.twittrapi.com/communities/1500000000000000000/members",
headers={"X-API-KEY": "YOUR_API_KEY"},
timeout=60,
)
data = resp.json()import { TwittrAPI } from "twittrapi";
const client = new TwittrAPI({ apiKey: process.env.TWITTRAPI_API_KEY });
// No wrapper method for this endpoint yet; client.get() sends the same authenticated GET.
const data = await client.get({
path: "/communities/1500000000000000000/members",
});curl 'https://twitter-aio.p.rapidapi.com/communities/1500000000000000000/members' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'x-rapidapi-host: twitter-aio.p.rapidapi.com'Base URL https://api.twittrapi.com, key in the X-API-KEY header. Python and Node.js use the official SDKs.
Response
Raw JSON of X's membersSliceTimeline_Query. Members are in data.communityResults.result.members_slice.items_results; the next-page cursor is members_slice.slice_info.next_cursor.
Simple format (?format=simple or X-Response-Format: simple): Collection of User objects: {data: [User], nextCursor, previousCursor, hasNextPage}. Schema.
{
"data": {
"communityResults": {
"id": "Q29tbXVuaXR5UmVzdWx0czoxNzYyNDk0Mjc2NTY1NDI2NTky",
"result": {
"__typename": "Community",
"id": "Q29tbXVuaXR5OjE3NjI0OTQyNzY1NjU0MjY1OTI=",
"members_slice": {
"items_results": [
{
"id": "VXNlclJlc3VsdHM6MTAwMDAwMDAwMDAwMDAwMDAwMQ==",
"result": {
"__typename": "User",
"affiliates_highlighted_label": {},
"community_role": "Admin",
"id": "VXNlcjoxMDAwMDAwMDAwMDAwMDAwMDAx",
"identity_profile_labels_highlighted_label": {},
"is_blue_verified": true,
"legacy": {
"blocking": false,
"follow_request_sent": false,
"followed_by": false,
"following": false,
"id_str": "1000000000000000001",
"name": "Example User 1",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1000000000000000000/example_normal.jpg",
"protected": false,
"screen_name": "example_user_1",
"verified": false
},
"rest_id": "1000000000000000001",
"super_follow_eligible": false,
"super_followed_by": false,
"super_following": false
}
},
{
"id": "VXNlclJlc3VsdHM6MTAwMDAwMDAwMDAwMDAwMDAwMg==",
"result": {
"__typename": "User",
"affiliates_highlighted_label": {},
"community_role": "Member",
"id": "VXNlcjoxMDAwMDAwMDAwMDAwMDAwMDAy",
"identity_profile_labels_highlighted_label": {},
"is_blue_verified": false,
"legacy": {
"blocking": false,
"follow_request_sent": false,
"followed_by": false,
"following": false,
"id_str": "1000000000000000002",
"name": "Example User 2",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1000000000000000000/example_normal.jpg",
"protected": false,
"screen_name": "example_user_2",
"verified": false
},
"rest_id": "1000000000000000002",
"super_follow_eligible": false,
"super_followed_by": false,
"super_following": false
}
}
],
"slice_info": {
"next_cursor": "CycRAAAAAAwABAwKmwzBVQo+vRYlx8zZ15ACCm07AAABjezzdesADJorCj69f/////////8KbTt//////////wAIP8AAAAACAAAA"
}
}
}
}
}
}{
"data": [
{
"id": "1000000000000000001",
"username": "example_user_1",
"name": "Example User 1",
"description": "",
"location": "",
"url": null,
"createdAt": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/1000000000000000000/example.jpg",
"bannerUrl": null,
"verified": true,
"verifiedType": null,
"protected": false,
"counts": {
"followers": 0,
"following": 0,
"tweets": 0,
"likes": 0,
"media": 0,
"listed": 0
},
"pinnedTweetIds": [],
"isAutomated": false
},
{
"id": "1000000000000000002",
"username": "example_user_2",
"name": "Example User 2",
"description": "",
"location": "",
"url": null,
"createdAt": null,
"avatarUrl": "https://pbs.twimg.com/profile_images/1000000000000000000/example.jpg",
"bannerUrl": null,
"verified": false,
"verifiedType": null,
"protected": false,
"counts": {
"followers": 0,
"following": 0,
"tweets": 0,
"likes": 0,
"media": 0,
"listed": 0
},
"pinnedTweetIds": [],
"isAutomated": false
}
],
"nextCursor": "CycRAAAAAAwABAwKmwzBVQo+vRYlx8zZ15ACCm07AAABjezzdesADJorCj69f/////////8KbTt//////////wAIP8AAAAACAAAA",
"previousCursor": null,
"hasNextPage": true
}In the raw format, field names and nesting come from X and can change without notice. See Response format; the simple format keeps a fixed schema.
Errors
- 422communityId is not numeric.
Errors every endpoint can return (401, 402, 403, 404, 408, 409, 429, 5xx), and which of them are charged, are on the Errors page. Calls that fail with 400, 408, 409 or a 5xx error are refunded.