Docs menu: Lists

Lists

Read the timeline and members of a public X List.

Endpoints

EndpointReturns and price
GET /v1/lists/{listId}/posts
List posts
Page of posts
· $0.10 per 1,000 records
GET /v1/lists/{listId}/members
List members
Page of accounts
· $0.01 per 1,000 accounts

All routes take Authorization: Bearer $TWITTERXAPI_KEY and level. Collections return one page; continue with the cursor.

Find the List ID

  • Use the number in the List URL, for example x.com/i/lists/123456789.

Read every page

GET/v1/lists/{listId}/postsPage of posts

List posts

One page from the List timeline.

ParameterInDescription
listId required
numeric string
pathNumeric ID from a List URL such as x.com/i/lists/123456789.
cursor
string
queryValue of pagination.next_cursor from the previous page. Omit for the first page.
level
raw | moderate | contentful
queryResponse level. Defaults to moderate.

Returns: Page of posts · Price: $0.10 per 1,000 records

cURL
curl "https://twitterxapi.com/api/v1/lists/123456789/posts" \
  -H "Authorization: Bearer $TWITTERXAPI_KEY"
GET/v1/lists/{listId}/membersPage of accounts

List members

One page of accounts in the List.

ParameterInDescription
listId required
numeric string
pathNumeric ID from a List URL such as x.com/i/lists/123456789.
cursor
string
queryValue of pagination.next_cursor from the previous page. Omit for the first page.
level
raw | moderate | contentful
queryResponse level. Defaults to moderate.

Returns: Page of accounts · Price: $0.01 per 1,000 accounts

cURL
curl "https://twitterxapi.com/api/v1/lists/123456789/members" \
  -H "Authorization: Bearer $TWITTERXAPI_KEY"