X (Twitter) API guide

x.com

Search X (Twitter) posts by topic, resolve a post link to its record, and organize accounts into lists you own.

Actions and inputs

twitter search

Search X for top or recent posts that match a query.

Inputs Search query, optional live filter

post resolve

Look up a post from its X link.

Inputs Post URL

twitter list-create

Create a public or private list in your account.

Inputs List name, optional description and visibility

twitter list-members

View the accounts in a list.

Inputs List ID, optional limit

Owned X list

Create

Create an X list in your account.

Inputs List name, description, visibility

Read

Read the member roster of your X list.

Inputs List ID, optional limit

Update

Add or remove an account from your X list.

Inputs List ID, username, add or remove

Delete

Delete an X list you own after confirming.

Inputs List ID, confirmation