v1

latestOpenAPI 3.0.1MIT2026-07-26589101.4 KB

Retrieve tweets by user name.Sort by created_at. Results are paginated, with each page returning up to 20 tweets.If you only need to fetch the latest tweets from a single user very frequently, do not use this API—it will cost you a lot. Instead, please refer to https://twitterapi.io/blog/how-to-monitor-twitter-accounts-for-new-tweets-in-real-time. If you have more than 20 Twitter accounts requiring real-time tweet updates, use https://twitterapi.io/twitter-stream which is the most cost-effective solution.

get/twitter/user/last_tweets

Query parameters

userIdstring string

user id of the user.userId is recommended, could be more stable and faster than userName.userId and userName are mutually exclusive. If both are provided, userId will be used.

userNamestring string

screen name of the user.userId and userName are mutually exclusive. If both are provided, userId will be used.

cursorstring string

The cursor to paginate through the results. First page is "".

includeRepliesboolean

Whether to include replies in the results. Default is False.

Response

Tweets response

has_next_pageboolean required

Indicates if there are more results available

next_cursorstring required

Cursor for fetching the next page of results

status'success' | 'error' required

Status of the request.success or error

messagestring required

Message of the request.error message