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

> The List lookup endpoints let you retrieve information about Lists. Reference for the X API v2 standard tier covering list lookup.

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 lookup endpoints let you retrieve information about Lists. Look up a specific List by ID or get all Lists owned by a user.

## Overview

<CardGroup cols={2}>
  <Card title="By ID" 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" width="24" height="24" data-path="icons/xds/icon-bulleted-list.svg">
    Get details for a specific List
  </Card>

  <Card title="By owner" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/HDrVUjgtXXVEkFXv/icons/xds/icon-person.svg?fit=max&auto=format&n=HDrVUjgtXXVEkFXv&q=85&s=67c45a4720ebd067938344fe3fb657cb" width="24" height="24" data-path="icons/xds/icon-person.svg">
    Get all Lists owned by a user
  </Card>
</CardGroup>

***

## Endpoints

| Method | Endpoint | Description |
| :- | :- | :- |
| GET | [`/2/lists/:id`](/x-api/lists/get-list-by-id) | Get List by ID |
| GET | [`/2/users/:id/owned_lists`](/x-api/users/get-owned-lists) | Get Lists owned by a user |

***

## Response fields

By default, the response includes `id` and `name`. Request additional fields:

| Field | Description |
| :- | :- |
| `description` | List description |
| `owner_id` | Owner's user ID |
| `private` | Whether List is private |
| `follower_count` | Number of followers |
| `member_count` | Number of members |
| `created_at` | List creation date |

### Example request

```bash theme={null}
curl "https://api.x.com/2/lists/1234567890?\
list.fields=description,owner_id,member_count,follower_count" \
  -H "Authorization: Bearer $BEARER_TOKEN"
```

***

## Getting started

<Note>
  **Prerequisites**

  * An approved [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * A [Project and App](/resources/fundamentals/developer-apps) in the Developer Console
  * Your App's [keys and tokens](/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="Quickstart" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/ZoQkjcRw6TIbGlxg/icons/xds/icon-rocket.svg?fit=max&auto=format&n=ZoQkjcRw6TIbGlxg&q=85&s=daeea53680cb63e65f5afdaa0a61ff99" href="/x-api/lists/list-lookup/quickstart" width="24" height="24" data-path="icons/xds/icon-rocket.svg">
    Make your first List lookup request
  </Card>

  <Card title="Integration guide" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/K_EDPi0sX8nSJWO1/icons/xds/icon-book.svg?fit=max&auto=format&n=K_EDPi0sX8nSJWO1&q=85&s=a5244b67dcc5a0e6afbf76a61fca996e" href="/x-api/lists/list-lookup/integrate" width="24" height="24" data-path="icons/xds/icon-book.svg">
    Key concepts and best practices
  </Card>

  <Card title="API Reference" icon="https://mintcdn.com/x-preview-mintlify-508d47e7/yrNbfyssZy5Znz8E/icons/xds/icon-code.svg?fit=max&auto=format&n=yrNbfyssZy5Znz8E&q=85&s=22045e00591dc6e3e540a973ccd4f74b" href="/x-api/lists/list-lookup-by-list-id" width="24" height="24" data-path="icons/xds/icon-code.svg">
    Full endpoint documentation
  </Card>

  <Card title="Sample code" icon="github" href="https://github.com/xdevplatform/Twitter-API-v2-sample-code">
    Working code examples
  </Card>
</CardGroup>
