Docs
Community moderators

Community moderators

Moderators and admins of a community.

GET/communities/{communityId}/moderators

Parameters

  • communityIdpath · string · required

    Numeric community ID, the number in the community URL.

  • countquery · integer · optional · default 20

    Number of moderators 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 · optional

    Bottom 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/moderators' \
  --header 'X-API-KEY: YOUR_API_KEY'

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 moderatorsSliceTimeline_Query. Moderators are in data.communityResults.result.moderators_slice.items_results; slice_info has a next_cursor only when there is another page.

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=",
        "moderators_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": "Moderator",
                "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": {}
        }
      }
    }
  }
}

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.