Communities

Search members of a community by name

Changed on

Finds a community's members by name or username, as the search box on X's members page does. X checks up to 10 accounts that match, & the answer holds the members among them, each with its role. Each member costs 1 credit. An answer without members is free.

get/api/v1/x/communities/{id}/members/search

Request

  • Base URL: https://xquik.com
  • URL: https://xquik.com/api/v1/x/communities/{id}/members/search
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer
    • none

Path parameters

idstring required

X Community ID.

Query parameters

qstring required

Name or username to find members by, such as marckohlbrugge. A leading @ is dropped. Alias query.

minFollowersinteger

Whole number from 0.

Minimum follower count. Filtering happens before billing.

maxFollowersinteger

Whole number from 0.

Maximum follower count. Missing counts pass this maximum.

minFollowinginteger

Whole number from 0.

Profiles must follow at least this many accounts.

maxFollowinginteger

Whole number from 0.

Profiles may follow at most this many accounts.

minStatusesinteger

Whole number from 0.

Minimum post count. minPosts is also accepted.

maxStatusesinteger

Whole number from 0.

Maximum post count. maxPosts is also accepted.

minAccountAgeDaysinteger

Whole number from 0.

Minimum account age in whole days.

verifiedOnlyboolean

Only return verified profiles.

verifiedTypestring

Match the verification type exactly, ignoring case.

hasWebsiteboolean

Only return profiles with a website.

hasLocationboolean

Only return profiles with a location.

bioContainsstring

Match any comma-separated or line-separated bio term, ignoring case.

locationContainsstring

Match a location substring, ignoring case.

usernameContainsstring

Match a username substring, ignoring case.

Response

Community members X found for the name

filtered_countinteger

Whole number from 0.

has_next_pageboolean required
next_cursorstring required

Example response

{
  "users": [
    {
      "id": "34743251",
      "username": "SpaceX",
      "name": "SpaceX",
      "followers": 41936873,
      "following": 127,
      "verified": true,
      "isBlueVerified": true,
      "isVerified": true,
      "profilePicture": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
      "coverPicture": "https://pbs.twimg.com/profile_banners/34743251/1681251194",
      "profileBannerUrl": "https://pbs.twimg.com/profile_banners/34743251/1681251194",
      "description": "SpaceX designs, manufactures and launches the world’s most advanced rockets and spacecraft",
      "location": "Earth",
      "createdAt": "Thu Apr 23 21:53:30 +0000 2009",
      "statusesCount": 11834,
      "mediaCount": 4713,
      "protected": false,
      "url": "http://spacex.com",
      "favouritesCount": 529,
      "possiblySensitive": false,
      "pinnedTweetIds": [
        "2104354931595423762"
      ],
      "verifiedType": "Business",
      "profile_bio": {
        "description": "SpaceX designs, manufactures and launches the world’s most advanced rockets and spacecraft",
        "entities": {
          "description": {},
          "url": {
            "urls": [
              {
                "display_url": "spacex.com",
                "expanded_url": "http://spacex.com",
                "indices": [
                  0,
                  23
                ],
                "url": "https://t.co/VOJ6qEctND"
              }
            ]
          }
        }
      },
      "hasGraduatedAccess": true,
      "parodyCommentaryFanLabel": "None",
      "professional": {
        "category": [],
        "professional_type": "Business",
        "rest_id": "1681839322029502464"
      },
      "profileDescriptionLanguage": "en",
      "profileImageShape": "Square",
      "profileTranslatorType": "none",
      "superFollowEligible": false
    },
    {
      "id": "20536157",
      "username": "Google",
      "name": "Google",
      "followers": 31909314,
      "following": 298,
      "verified": true,
      "isBlueVerified": true,
      "isVerified": true,
      "profilePicture": "https://pbs.twimg.com/profile_images/2042749771337564160/AgOFPEL3_normal.jpg",
      "coverPicture": "https://pbs.twimg.com/profile_banners/20536157/1780004508",
      "profileBannerUrl": "https://pbs.twimg.com/profile_banners/20536157/1780004508",
      "description": "Here to help.",
      "location": "Mountain View, CA",
      "createdAt": "Tue Feb 10 19:14:39 +0000 2009",
      "statusesCount": 251787,
      "mediaCount": 38271,
      "protected": false,
      "url": "https://blog.google/newsletter-subscribe/",
      "favouritesCount": 5327,
      "possiblySensitive": false,
      "pinnedTweetIds": [
        "2105388143902175529"
      ],
      "verifiedType": "Business",
      "profile_bio": {
        "description": "Here to help.",
        "entities": {
          "description": {},
          "url": {
            "urls": [
              {
                "display_url": "blog.google/newsletter-sub…",
                "expanded_url": "https://blog.google/newsletter-subscribe/",
                "indices": [
                  0,
                  23
                ],
                "url": "https://t.co/RS3iU87BGe"
              }
            ]
          }
        }
      },
      "hasGraduatedAccess": true,
      "parodyCommentaryFanLabel": "None",
      "professional": {
        "category": [
          {
            "icon_name": "IconBriefcaseStroke",
            "id": 713,
            "name": "Science & Technology"
          }
        ],
        "professional_type": "Business",
        "rest_id": "1504886752259059716"
      },
      "profileDescriptionLanguage": "en",
      "profileImageShape": "Square",
      "profileTranslatorType": "regular",
      "superFollowEligible": false
    }
  ],
  "has_next_page": false,
  "next_cursor": ""
}

Changes

Of the 51 revisions, 1 has no diff computed.