Endpoints
| Endpoint | Returns and price |
|---|---|
GET /v1/lists/{listId}/postsList posts | Page of posts · $0.10 per 1,000 records |
GET /v1/lists/{listId}/membersList 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.
GET/v1/lists/{listId}/postsPage of posts
List posts
One page from the List timeline.
| Parameter | In | Description |
|---|---|---|
listId requirednumeric string | path | Numeric ID from a List URL such as x.com/i/lists/123456789. |
cursorstring | query | Value of pagination.next_cursor from the previous page. Omit for the first page. |
levelraw | moderate | contentful | query | Response 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.
| Parameter | In | Description |
|---|---|---|
listId requirednumeric string | path | Numeric ID from a List URL such as x.com/i/lists/123456789. |
cursorstring | query | Value of pagination.next_cursor from the previous page. Omit for the first page. |
levelraw | moderate | contentful | query | Response 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"