> ## 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.

# 社群成员

> 获取指定 Twitter / X 社群成员列表，返回成员资料、分页游标和状态信息。适用于社群成员采集、社区关系分析和受众研究。

<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">每次请求</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">🤖 让 AI 帮你写调用代码</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">点击按钮复制一段结构化提示词，可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。</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("我想调用 KeyAPI 接口：GET https://api.keyapi.ai/v1/twitter/community_members\n\n请帮我编写调用代码，并包含必要的错误处理、参数校验和响应处理逻辑。\n\n接口信息：\n\nEndpoint: GET https://api.keyapi.ai/v1/twitter/community_members\n\nDescription: Twitter / X 的「社区 成员」接口用于批量查询列表数据，返回基础信息、关键指标和分页信息，适合采集后继续分析。常用必填参数包括 community_id。\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- community_id (Required): community_id 标识符. Example: 1506779564160258059\n- cursor (Optional): 分页游标，用于获取下一页数据\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"members\": [\n      {\n        \"user_id\": \"1145749051696193537\",\n        \"screen_name\": \"BiasedHouston\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1733243874821255168/Czhn7oGr_normal.jpg\",\n        \"blue_verified\": true,\n        \"name\": \"ᵂᴵᴸᴸ\"\n      },\n      {\n        \"user_id\": \"1462472354957778944\",\n        \"screen_name\": \"wassupwkevinn\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1771974505075707904/Sy8wPwWA_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"kev\"\n      },\n      {\n        \"user_id\": \"4827630000\",\n        \"screen_name\": \"hughyss\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1607541658513702913/c-I4dHhO_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"hughy 🧌\"\n      },\n      {\n        \"user_id\": \"408162507\",\n        \"screen_name\": \"SVDBWOY\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1693984851777695744/cVzZqIV3_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"SADBOY 9\"\n      },\n      {\n        \"user_id\": \"303975517\",\n        \"screen_name\": \"chrispates1\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/530107058264502273/WQW6gmj1_normal.jpeg\",\n        \"blue_verified\": false,\n        \"name\": \"chris pates\"\n      },\n      {\n        \"user_id\": \"1478099088281378817\",\n        \"screen_name\": \"clutchcity832\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1978534965349380096/lnd9k6IS_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \".\"\n      },\n      {\n        \"user_id\": \"4790458157\",\n        \"screen_name\": \"logan_b8\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1666121814173528071/0lp00d2q_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Logan B\"\n      },\n      {\n        \"user_id\": \"1390034550785462274\",\n        \"screen_name\": \"iamnotrc\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/2017648411432845312/FvOyvFO9_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Not RC\"\n      },\n      {\n        \"user_id\": \"159606927\",\n        \"screen_name\": \"_ClutchCity\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/2017378087575412736/gkWtxphz_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Fire Udoka Tomorrow\"\n      },\n      {\n        \"user_id\": \"1050834183730458624\",\n        \"screen_name\": \"anatoletern\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1818760337384001536/-9iqtXVi_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"gerald green stan account\"\n      },\n      {\n        \"user_id\": \"1582181180\",\n        \"screen_name\": \"TheMicahMclovin\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1968705154212843520/xW4sL3K4_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Micah\"\n      },\n      {\n        \"user_id\": \"1452854288\",\n        \"screen_name\": \"Mr_Didds\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1257337897071640578/6DW87sAN_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Didds\"\n      },\n      {\n        \"user_id\": \"1097611049304510467\",\n        \"screen_name\": \"Zemog____\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1938396399701209088/CmNPAZeq_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Zemog\"\n      },\n      {\n        \"user_id\": \"2734312537\",\n        \"screen_name\": \"Lee21Craig\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1227480484424437766/kdyQ_pI__normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"♣️ Craig ♣️ Black\"\n      },\n      {\n        \"user_id\": \"1194707552162009088\",\n        \"screen_name\": \"CohetsFan\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/2026407880400699392/sIJ6MNgE_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"YVLifts\"\n      },\n      {\n        \"user_id\": \"170451615\",\n        \"screen_name\": \"Jeff_Shull\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1913831452548190208/Oppi8JWL_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Jeff Shull\"\n      },\n      {\n        \"user_id\": \"1505612715087183872\",\n        \"screen_name\": \"VengeanceAmen\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1917652114840621056/zGuhPXsS_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"Vengeance Amen Thompson\"\n      },\n      {\n        \"user_id\": \"968523601988243456\",\n        \"screen_name\": \"papitrashy\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/1812707096304971776/ss5XddCy_normal.jpg\",\n        \"blue_verified\": false,\n        \"name\": \"isaac\"\n      },\n      {\n        \"user_id\": \"1388577826824196099\",\n        \"screen_name\": \"BradeauxNBA\",\n        \"profile_image\": \"https://pbs.twimg.com/profile_images/2050425430159556608/GE-aOXWg_normal.jpg\",\n        \"blue_verified\": true,\n        \"name\": \"Bradeaux\"\n      }\n    ],\n    \"next_cursor\": \"CycRAAAAAAwABAwKmwzBVQo+vRNFOC0u1xAECm07AAABf7kxHT8ADJorCj69f/////////8KbTt//////////wAIP8AAAAACAAAA\",\n    \"status\": \"ok\"\n  },\n  \"requestId\": \"452f6171-f0d0-4a8e-94f8-ef20096c64c2\"\n}\n\n请根据以上信息给出可直接运行的示例代码。")}>
      ✨ 复制给 AI
    </button>
  </div>
</div>


## OpenAPI

````yaml zh/twitter.zh.openapi.json GET /v1/twitter/community_members
openapi: 3.0.1
info:
  title: Twitter API 中文文档
  description: Twitter API 的中文参考文档，包含接口用途、参数说明、响应状态和示例结构。
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security:
  - JWT Bearer: []
tags: []
paths:
  /v1/twitter/community_members:
    get:
      tags: []
      summary: 社群成员
      description: 获取指定 Twitter / X 社群成员列表，返回成员资料、分页游标和状态信息。适用于社群成员采集、社区关系分析和受众研究。
      parameters:
        - name: community_id
          in: query
          description: Twitter / X Community ID。
          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: 请求参数错误，请检查必填字段和参数格式
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: Missing required parameter
        '401':
          description: 鉴权失败，请检查 Authorization Header 中的 Bearer Token 或 API Key 是否有效
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: 账户余额或额度不足
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: 请求过于频繁，已触发限流
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: 服务器内部错误，请稍后重试
          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: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````