Write Actions

Add List Member

Add an account to a List owned by your registered X session. Returns the List's member_count as proof the membership change landed. Cost: $0.0008 per call.

post/list/add_member

Request

  • Base URL: https://api.twitterapis.com/twitter
  • URL: https://api.twitterapis.com/twitter/list/add_member
  • Auth: HTTP bearer

Request body

list_idstring required

Numeric ID of the List you own.

user_idstring required

Numeric ID of the account to add.

Example request

{
  "list_id": "1234567890123456789",
  "user_id": "745273"
}

Response

Add one account to a Twitter/X List you own.

okboolean

True when the membership change applied.

actionstring

The membership action performed.

list_idstring

The List the write targeted.

user_idstring

The account the write targeted.

member_countinteger nullable

The List's member count after the write, read back from X as proof. Null when X returned no list object, which is the not-applied signal.

listobject

The List object X returned after the write.

Changes

No recorded changes to this operation across all 1 revision of this API.