> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xshot.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user tweets

> Get a user's recent tweets.



## OpenAPI

````yaml /openapi-spec/xshot.yaml get /twitter/user/last_tweets
openapi: 3.0.3
info:
  title: Xshot REST API
  version: 1.0.0
  description: >
    Twitter/X data API. Access user profiles, tweets, communities, lists,
    spaces, and trends.


    All endpoints require authentication via `api_key` query parameter,
    `x-api-key` header, or `Authorization: Bearer` header.
  contact:
    name: Xshot
    url: https://api.xshot.fun
servers:
  - url: https://api.xshot.fun
    description: Production
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /twitter/user/last_tweets:
    get:
      tags:
        - Users
      summary: Get user tweets
      description: Get a user's recent tweets.
      operationId: getUserTweets
      parameters:
        - name: username
          in: query
          required: true
          schema:
            type: string
          example: elonmusk
        - name: cursor
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Paginated tweets
          content:
            application/json:
              schema:
                type: object
                properties:
                  tweets:
                    type: array
                    items:
                      $ref: '#/components/schemas/Tweet'
                  next_cursor:
                    type: string
                    nullable: true
                  has_next_page:
                    type: boolean
components:
  schemas:
    Tweet:
      type: object
      properties:
        id:
          type: string
          example: '2035548674483273831'
        text:
          type: string
        created_at:
          type: string
        author:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            username:
              type: string
            profile_image:
              type: string
            verified:
              type: boolean
            followers_count:
              type: integer
        retweet_count:
          type: integer
        reply_count:
          type: integer
        like_count:
          type: integer
        quote_count:
          type: integer
        bookmark_count:
          type: integer
        view_count:
          type: integer
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer

````