docs / twitter

Twitter / X Data API

Twitter / X Data API

base /twitter/v114 endpoints
post/twitter/v1/profile1 credit

User profile by @username — name, bio, followers, following, tweet/like counts, verified, created date, location, website, avatar/banner.

ParameterAllowed / rangeDescription
usernamerequiredThe @handle (with or without @).
Try in playground →
post/twitter/v1/user_by_id1 credit

User profile by numeric user_id (same fields as profile).

ParameterAllowed / rangeDescription
user_idrequiredNumeric user id.
Try in playground →
post/twitter/v1/user_tweets1 credit

A user's tweets — full text, engagement (likes/retweets/replies/quotes/views), media, quoted/retweeted, with cursor pagination.

ParameterAllowed / rangeDescription
usernameoptional@handle (resolved to id) — or pass user_id.
user_idoptionalNumeric user id (skips the handle lookup).
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/user_replies1 credit

A user's tweets AND replies (timeline incl. replies). Each reply also carries reply_to_text (the parent tweet's text, ≤280 chars) + reply_to_author so a reply is interpretable without a second call — resolved from the conversation already in the response.

ParameterAllowed / rangeDescription
usernameoptional@handle — or pass user_id.
user_idoptionalNumeric user id.
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/user_media1 credit

A user's media tweets — photos & videos (with video_url + duration), engagement, pagination.

ParameterAllowed / rangeDescription
usernameoptional@handle — or pass user_id.
user_idoptionalNumeric user id.
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/user_likes1 credit

Tweets a user has liked (if the account exposes likes).

ParameterAllowed / rangeDescription
usernameoptional@handle — or pass user_id.
user_idoptionalNumeric user id.
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/tweet1 credit

A single tweet by id — full text, engagement, media, quoted/retweeted, author.

ParameterAllowed / rangeDescription
tweet_idrequiredThe tweet (status) id.
Try in playground →
post/twitter/v1/tweet_replies1 credit

A tweet PLUS its replies/comments (threaded conversation) with DEEP cursor pagination.

ParameterAllowed / rangeDescription
tweet_idrequiredThe tweet id to load replies for.
limit = 40optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/followers1 credit

A user's followers (each a full user object), paginated.

ParameterAllowed / rangeDescription
usernameoptional@handle — or pass user_id.
user_idoptionalNumeric user id.
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/following1 credit

Accounts a user follows (each a full user object), paginated.

ParameterAllowed / rangeDescription
usernameoptional@handle — or pass user_id.
user_idoptionalNumeric user id.
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →
post/twitter/v1/list_tweets1 credit

Latest tweets from a Twitter List by id, paginated.

ParameterAllowed / rangeDescription
list_idrequiredThe List id.
limit = 20optional1–100Max items to return.
cursoroptionalPagination cursor from a previous response's next_cursor.
Try in playground →