---
title: "GET /twitter/user/last_tweets"
method: GET
path: "/twitter/user/last_tweets"
---

# GET /twitter/user/last_tweets

`GET /twitter/user/last_tweets`

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.

## Query parameters

- `userId` string, string
- `userName` string, string
- `cursor` string, string
- `includeReplies` boolean

## Response `200`

Tweets response

- object
  - `tweets` Tweet[], required — Array of tweets
    - `type` 'tweet'
    - `id` string — The ID of the tweet
    - `url` string — The URL of the tweet
    - `text` string — The text of the tweet
    - `source` string — The source of the tweet.eg. "Twitter for iPhone"
    - `retweetCount` integer — The number of times the tweet has been retweeted
    - `replyCount` integer — The number of times the tweet has been replied to
    - `likeCount` integer — The number of times the tweet has been liked
    - `quoteCount` integer — The number of times the tweet has been quoted
    - `viewCount` integer — The number of times the tweet has been viewed
    - `createdAt` string — The date and time the tweet was created.eg. Tue Dec 10 07:00:30 +0000 2024
    - `lang` string — The language of the tweet.eg. "en".may be empty
    - `bookmarkCount` integer — The number of times the tweet has been bookmarked
    - `isReply` boolean — Indicates if the tweet is a reply
    - `inReplyToId` string — The ID of the tweet being replied to.may be empty
    - `conversationId` string — The ID of the conversation the tweet is part of.may be empty
    - `displayTextRange` integer[] — specifies the UTF-16 code unit indices in full_text that define the visible portion of a Tweet.eg"@jack Thanks for the update!",display_text_range is [6, 28]
    - `inReplyToUserId` string — The ID of the user being replied to.may be empty
    - `inReplyToUsername` string — The username of the user being replied to.may be empty
    - `author` UserInfo
      - `type` 'user'
      - `userName` string — The username of the Twitter user
      - `url` string — The x.com URL of the user's profile
      - `id` string — The unique identifier of the user
      - `name` string — The display name of the user
      - `isBlueVerified` boolean — Whether the user has Twitter Blue verification
      - `verifiedType` string — The type of verification. eg. "government" ,can be empty
      - `profilePicture` string — URL of the user's profile picture
      - `coverPicture` string — URL of the user's cover picture
      - `description` string — The user's profile description
      - `location` string — The user's location.for example: 東京の端っこ . may be empty
      - `followers` integer — Number of followers
      - `following` integer — Number of accounts following
      - `canDm` boolean — Whether the user can receive DMs
      - `createdAt` string — When the account was created.for example: Thu Dec 13 08:41:26 +0000 2007
      - `favouritesCount` integer — Number of favorites
      - `hasCustomTimelines` boolean — Whether the user has custom timelines
      - `isTranslator` boolean — Whether the user is a translator
      - `mediaCount` integer — Number of media posts
      - `statusesCount` integer — Number of status updates
      - `withheldInCountries` string[] — Countries where the account is withheld
      - `affiliatesHighlightedLabel` object
      - `possiblySensitive` boolean — Whether the account may contain sensitive content
      - `pinnedTweetIds` string[] — IDs of pinned tweets
      - `isAutomated` boolean — Whether the account is automated
      - `automatedBy` string — The account that automated the account
      - `unavailable` boolean — Whether the account is unavailable
      - `message` string — The message of the account.eg. "This account is unavailable" or "This account is suspended"
      - `unavailableReason` string — The reason the account is unavailable.eg. "suspended"
      - `profile_bio` object
        - `description` string
        - `entities` object
          - `description` object
            - `urls` object[]
              - …
          - `url` object
            - `urls` object[]
              - …
    - `entities` TweetEntities
      - `hashtags` object[]
        - `indices` integer[]
        - `text` string
      - `urls` object[]
        - `display_url` string
        - `expanded_url` string
        - `indices` integer[]
        - `url` string
      - `user_mentions` object[]
        - `id_str` string — The ID of the user being mentioned
        - `name` string — The name of the user being mentioned
        - `screen_name` string — The screen name of the user being mentioned
    - `quoted_tweet` Tweet — recursive
    - `retweeted_tweet` Tweet — recursive
    - `isLimitedReply` boolean — Whether the tweet is a limited reply. Possible restrictions: only mentioned users, verified users, or followed accounts can reply
  - `has_next_page` boolean, required — Indicates if there are more results available
  - `next_cursor` string, required — Cursor for fetching the next page of results
  - `status` 'success' | 'error', required — Status of the request.success or error
  - `message` string, required — Message of the request.error message

## Other responses

- `400` — Unexpected error

---

[API](https://skmtc.net/twitterapi/apis/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api.md) · [All operations](https://skmtc.net/twitterapi/apis/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twitterapi/twitterapi-io-the-most-stable-fastest-cheapest-twitter-api/versions/1b1afaf3df76/schema)
