X

X Lists API

Endpoints related to retrieving, managing Lists — 9 operation(s) in the X-published contract.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /2/lists Create a List · Create Lists #
Ask an LLM
“Can I create a new List on X via the API?”
“Can I make a List private when I create it?”
Tell an agent
Create a List named {name}.
Make a new List {name} described as {description} with private set to {private}.
DELETE /2/lists/{id} Delete a List I own · Delete List #
Ask an LLM
“What's the call to delete one of my Lists?”
“Is deleting a List permanent?”
Tell an agent destructive · confirm first
Delete List {id}.
Remove my List {id} entirely.
GET /2/lists/{id} Get a List's details · Get Lists by ID #
Ask an LLM
“What are the name, owner and description of a given List?”
“Can I expand the owner's profile when looking up a List?”
Tell an agent
Get List {id}.
Show List {id} with fields {fields}.
PUT /2/lists/{id} Rename or edit a List I own · Update List #
Ask an LLM
“Can I rename an existing List or change its description?”
“How do I switch one of my Lists from public to private?”
Tell an agent
Rename List {id} to {name}.
Set List {id} private to {private}.
GET /2/lists/{id}/followers List a List's followers · Get Lists Followers #
Ask an LLM
“Who follows a particular List?”
“Can I page through all the followers of a List?”
Tell an agent
Show the followers of List {id}.
Get {max_results} users who follow List {id}.
GET /2/lists/{id}/members List the members of a List · Get Lists Members #
Ask an LLM
“Which accounts are members of a given List?”
“What's the call to see everyone added to a List?”
Tell an agent
Show the members of List {id}.
Get {max_results} accounts that belong to List {id}.
POST /2/lists/{id}/members Add a user to a List · Add Lists Member #
Ask an LLM
“Can I add an account to one of my Lists?”
“Can I put a user on a List by their user ID?”
Tell an agent
Add user {user_id} to List {id}.
Put {user_id} on my List {id}.
DELETE /2/lists/{id}/members/{user_id} Remove a user from a List · Remove a List member #
Ask an LLM
“What removes someone from one of my Lists?”
“Can I remove a member from a List using their user ID?”
Tell an agent destructive · confirm first
Remove user {user_id} from List {id}.
Take {user_id} off my List {id}.
GET /2/lists/{id}/tweets Get the posts timeline of a List · Get Lists Posts #
Ask an LLM
“What have members of a List been posting?”
“Can I read a List's timeline of posts through the API?”
Tell an agent
Show recent posts from List {id}.
Get the latest {max_results} posts in List {id}'s timeline.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x:x-lists-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

x-lists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: X API v2 core endpoints
  version: '2.168'
  title: X API v2 Lists API
  termsOfService: https://developer.x.com/en/developer-terms/agreement-and-policy.html
  contact:
    name: X Developers
    url: https://developer.x.com/
  license:
    name: X Developer Agreement and Policy
    url: https://developer.x.com/en/developer-terms/agreement-and-policy.html
servers:
- description: X API
  url: https://api.x.com
tags:


# --- truncated at 32 KB (76 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/x/refs/heads/main/openapi/x-lists-api-openapi.yml