> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-508d47e7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Members Overview

> The List members endpoints let you look up members of a List and manage List membership. Reference for the X API v2 standard tier covering quickstart.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <span>{children}</span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

The List members endpoints let you look up members of a List and manage List membership.

<Note>
  **Prerequisites**

  Before you begin, you'll need:

  * A [developer account](https://developer.x.com/en/portal/petition/essential/basic-info) with an approved App
  * Your App's Bearer Token (for lookups)
  * User Access Token (for managing members)
</Note>

***

## Available endpoints

<CardGroup cols={2}>
  <Card title="List members lookup" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/HDrVUjgtXXVEkFXv/icons/xds/icon-people.svg?fit=max&auto=format&n=HDrVUjgtXXVEkFXv&q=85&s=164ad227a9590a450514669f6e218cd4" href="/x-api/lists/list-members/quickstart/list-members-lookup" width="24" height="24" data-path="icons/xds/icon-people.svg">
    Get members of a List
  </Card>

  <Card title="Manage List members" icon="user-plus" href="/x-api/lists/list-members/quickstart/manage-list-members">
    Add and remove members
  </Card>
</CardGroup>

***

## Authentication

| Operation | Authentication |
| :- | :- |
| Look up members | Bearer Token, OAuth 1.0a, or OAuth 2.0 PKCE |
| Add/remove members | OAuth 1.0a or OAuth 2.0 PKCE |

***

## Quick example

<CodeGroup dropdown>
  ```bash cURL theme={null}
  # Get List members
  curl "https://api.x.com/2/lists/84839422/members" \
    -H "Authorization: Bearer $BEARER_TOKEN"
  ```

  ```python Python SDK theme={null}
  from xdk import Client

  client = Client(bearer_token="YOUR_BEARER_TOKEN")

  # Get List members
  for page in client.lists.get_members("84839422"):
      for user in page.data:
          print(f"{user.username}")
  ```

  ```javascript title="JavaScript SDK" lines wrap icon="square-js" theme={null}
  import { Client } from "@xdevplatform/xdk";

  const client = new Client({ bearerToken: "YOUR_BEARER_TOKEN" });

  // Get List members
  const paginator = client.lists.getMembers("84839422");

  for await (const page of paginator) {
    page.data?.forEach((user) => {
      console.log(user.username);
    });
  }
  ```
</CodeGroup>

***

## Next steps

<CardGroup cols={2}>
  <Card title="List lookup" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/yrNbfyssZy5Znz8E/icons/xds/icon-bulleted-list.svg?fit=max&auto=format&n=yrNbfyssZy5Znz8E&q=85&s=7f9b8378df9c68798147229d34e3c132" href="/x-api/lists/list-lookup/quickstart" width="24" height="24" data-path="icons/xds/icon-bulleted-list.svg">
    Get List details
  </Card>

  <Card title="List Posts" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/yrNbfyssZy5Znz8E/icons/xds/icon-chat.svg?fit=max&auto=format&n=yrNbfyssZy5Znz8E&q=85&s=113c0d7b51cc7e67a9177dd7c7465001" href="/x-api/lists/list-tweets/quickstart" width="24" height="24" data-path="icons/xds/icon-chat.svg">
    Get Posts from a List
  </Card>
</CardGroup>
