> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Community Members

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">1 credit</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">per request</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">Stop writing code like it's 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.</p>
  </div>

  <div className="mt-4">
    <button
      type="button"
      className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50"
      onClick={() => navigator.clipboard.writeText(`I want to make an API call to https://api.keyapi.ai/v1/twitter/community_members.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/twitter/community_members

Description: Community Members

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- community_id (Required): . Example: 1506779564160258059
- cursor (Optional): 

Example Response:
{
"code": 0,
"message": "success",
"data": {
"members": [
  {
    "user_id": "1145749051696193537",
    "screen_name": "BiasedHouston",
    "profile_image": "https://pbs.twimg.com/profile_images/1733243874821255168/Czhn7oGr_normal.jpg",
    "blue_verified": true,
    "name": "ᵂᴵᴸᴸ"
  },
  {
    "user_id": "1462472354957778944",
    "screen_name": "wassupwkevinn",
    "profile_image": "https://pbs.twimg.com/profile_images/1771974505075707904/Sy8wPwWA_normal.jpg",
    "blue_verified": false,
    "name": "kev"
  },
  {
    "user_id": "4827630000",
    "screen_name": "hughyss",
    "profile_image": "https://pbs.twimg.com/profile_images/1607541658513702913/c-I4dHhO_normal.jpg",
    "blue_verified": false,
    "name": "hughy 🧌"
  },
  {
    "user_id": "408162507",
    "screen_name": "SVDBWOY",
    "profile_image": "https://pbs.twimg.com/profile_images/1693984851777695744/cVzZqIV3_normal.jpg",
    "blue_verified": false,
    "name": "SADBOY 9"
  },
  {
    "user_id": "303975517",
    "screen_name": "chrispates1",
    "profile_image": "https://pbs.twimg.com/profile_images/530107058264502273/WQW6gmj1_normal.jpeg",
    "blue_verified": false,
    "name": "chris pates"
  },
  {
    "user_id": "1478099088281378817",
    "screen_name": "clutchcity832",
    "profile_image": "https://pbs.twimg.com/profile_images/1978534965349380096/lnd9k6IS_normal.jpg",
    "blue_verified": false,
    "name": "."
  },
  {
    "user_id": "4790458157",
    "screen_name": "logan_b8",
    "profile_image": "https://pbs.twimg.com/profile_images/1666121814173528071/0lp00d2q_normal.jpg",
    "blue_verified": false,
    "name": "Logan B"
  },
  {
    "user_id": "1390034550785462274",
    "screen_name": "iamnotrc",
    "profile_image": "https://pbs.twimg.com/profile_images/2017648411432845
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/twitter.openapi.json GET /v1/twitter/community_members
openapi: 3.0.1
info:
  title: Twitter/X API english documentation
  description: >-
    The english reference documentation of the Twitter/X API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Twitter/X
security:
  - JWT Bearer: []
tags: []
paths:
  /v1/twitter/community_members:
    get:
      tags: []
      summary: Community Members
      parameters:
        - name: community_id
          in: query
          description: ''
          required: true
          example: '1506779564160258059'
          schema:
            type: string
            example: '1506779564160258059'
        - name: cursor
          in: query
          description: ''
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  members:
                    - user_id: '1145749051696193537'
                      screen_name: BiasedHouston
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1733243874821255168/Czhn7oGr_normal.jpg
                      blue_verified: true
                      name: ᵂᴵᴸᴸ
                    - user_id: '1462472354957778944'
                      screen_name: wassupwkevinn
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1771974505075707904/Sy8wPwWA_normal.jpg
                      blue_verified: false
                      name: kev
                    - user_id: '4827630000'
                      screen_name: hughyss
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1607541658513702913/c-I4dHhO_normal.jpg
                      blue_verified: false
                      name: hughy 🧌
                    - user_id: '408162507'
                      screen_name: SVDBWOY
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1693984851777695744/cVzZqIV3_normal.jpg
                      blue_verified: false
                      name: SADBOY 9
                    - user_id: '303975517'
                      screen_name: chrispates1
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/530107058264502273/WQW6gmj1_normal.jpeg
                      blue_verified: false
                      name: chris pates
                    - user_id: '1478099088281378817'
                      screen_name: clutchcity832
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1978534965349380096/lnd9k6IS_normal.jpg
                      blue_verified: false
                      name: .
                    - user_id: '4790458157'
                      screen_name: logan_b8
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1666121814173528071/0lp00d2q_normal.jpg
                      blue_verified: false
                      name: Logan B
                    - user_id: '1390034550785462274'
                      screen_name: iamnotrc
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/2017648411432845312/FvOyvFO9_normal.jpg
                      blue_verified: false
                      name: Not RC
                    - user_id: '159606927'
                      screen_name: _ClutchCity
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/2017378087575412736/gkWtxphz_normal.jpg
                      blue_verified: false
                      name: Fire Udoka Tomorrow
                    - user_id: '1050834183730458624'
                      screen_name: anatoletern
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1818760337384001536/-9iqtXVi_normal.jpg
                      blue_verified: false
                      name: gerald green stan account
                    - user_id: '1582181180'
                      screen_name: TheMicahMclovin
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1968705154212843520/xW4sL3K4_normal.jpg
                      blue_verified: false
                      name: Micah
                    - user_id: '1452854288'
                      screen_name: Mr_Didds
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1257337897071640578/6DW87sAN_normal.jpg
                      blue_verified: false
                      name: Didds
                    - user_id: '1097611049304510467'
                      screen_name: Zemog____
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1938396399701209088/CmNPAZeq_normal.jpg
                      blue_verified: false
                      name: Zemog
                    - user_id: '2734312537'
                      screen_name: Lee21Craig
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1227480484424437766/kdyQ_pI__normal.jpg
                      blue_verified: false
                      name: ♣️ Craig ♣️ Black
                    - user_id: '1194707552162009088'
                      screen_name: CohetsFan
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/2026407880400699392/sIJ6MNgE_normal.jpg
                      blue_verified: false
                      name: YVLifts
                    - user_id: '170451615'
                      screen_name: Jeff_Shull
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1913831452548190208/Oppi8JWL_normal.jpg
                      blue_verified: false
                      name: Jeff Shull
                    - user_id: '1505612715087183872'
                      screen_name: VengeanceAmen
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1917652114840621056/zGuhPXsS_normal.jpg
                      blue_verified: false
                      name: Vengeance Amen Thompson
                    - user_id: '968523601988243456'
                      screen_name: papitrashy
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/1812707096304971776/ss5XddCy_normal.jpg
                      blue_verified: false
                      name: isaac
                    - user_id: '1388577826824196099'
                      screen_name: BradeauxNBA
                      profile_image: >-
                        https://pbs.twimg.com/profile_images/2050425430159556608/GE-aOXWg_normal.jpg
                      blue_verified: true
                      name: Bradeaux
                  next_cursor: >-
                    CycRAAAAAAwABAwKmwzBVQo+vRNFOC0u1xAECm07AAABf7kxHT8ADJorCj69f/////////8KbTt//////////wAIP8AAAAACAAAA
                  status: ok
                requestId: 452f6171-f0d0-4a8e-94f8-ef20096c64c2
          headers: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: Missing required parameter
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/twitter/community_members?community_id=1506779564160258059' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/twitter/community_members',
                params={"community_id": "1506779564160258059"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"community_id":
            "1506779564160258059"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/twitter/community_members?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````