> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-45d14540.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-45d14540/WNWqvdBVX__4nOfl/icons/xds/icon-bulleted-list.svg?fit=max&auto=format&n=WNWqvdBVX__4nOfl&q=85&s=ccc2f801c2cbc4c21f8d8d2b89bab503" 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-45d14540/6Ed2Kz_SpX2fabXS/icons/xds/icon-person.svg?fit=max&auto=format&n=6Ed2Kz_SpX2fabXS&q=85&s=07a78174ca538a4d171895ebe8e34f56" 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-45d14540/6AvwmOuPuDkW6BSa/icons/xds/icon-rocket.svg?fit=max&auto=format&n=6AvwmOuPuDkW6BSa&q=85&s=415bbe23095cfc7374501253d2426502" 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-45d14540/qfatA9qOT_LuHwzq/icons/xds/icon-book.svg?fit=max&auto=format&n=qfatA9qOT_LuHwzq&q=85&s=02ca2696d12d0996945ef1f1a1280dda" 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-45d14540/WNWqvdBVX__4nOfl/icons/xds/icon-code.svg?fit=max&auto=format&n=WNWqvdBVX__4nOfl&q=85&s=a8c5247166bb98554f0f3ef7974e5ff2" 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>
