> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-24fef6d1.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-24fef6d1/Rr7J7_M_U1YKwpT1/icons/xds/icon-bulleted-list.svg?fit=max&auto=format&n=Rr7J7_M_U1YKwpT1&q=85&s=7c6e5301e13233832594c41bf9a95927" 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-24fef6d1/40mVJzgnWfhmY7ZZ/icons/xds/icon-person.svg?fit=max&auto=format&n=40mVJzgnWfhmY7ZZ&q=85&s=780081f0acc89c08408eff02894d7067" 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-24fef6d1/HazjhzcnQyryvfGR/icons/xds/icon-rocket.svg?fit=max&auto=format&n=HazjhzcnQyryvfGR&q=85&s=d0f5cef99b2c696bbfb49fa10afdd62f" 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-24fef6d1/r5kq0chEtxapqq3m/icons/xds/icon-book.svg?fit=max&auto=format&n=r5kq0chEtxapqq3m&q=85&s=9159c974d1dbc9f6988e28466c342ea4" 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-24fef6d1/Rr7J7_M_U1YKwpT1/icons/xds/icon-code.svg?fit=max&auto=format&n=Rr7J7_M_U1YKwpT1&q=85&s=91f901377ed7f56087005ca8f2202ae3" 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>
