> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/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 group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <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="list">
    Get details for a specific List
  </Card>

  <Card title="By owner" icon="user">
    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="rocket" href="/x-api/lists/list-lookup/quickstart">
    Make your first List lookup request
  </Card>

  <Card title="Integration guide" icon="book" href="/x-api/lists/list-lookup/integrate">
    Key concepts and best practices
  </Card>

  <Card title="API Reference" icon="code" href="/x-api/lists/list-lookup-by-list-id">
    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>
