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

# Get User Tweets & Replies

> A user's tweets including their replies, newest first.



## OpenAPI

````yaml /api-reference/openapi.json get /user/tweets_and_replies
openapi: 3.1.0
info:
  title: OmniX API
  version: 1.0.0
  description: >-
    The fastest X (Twitter) API. Read and write tweets, users, lists, media and
    articles with a single API key. Every request runs as a real X account you
    supply via `auth_token`. Flat $0.001 per successful call.
servers:
  - url: https://api.omnixapi.com/api/v1/twitter
security:
  - bearerAuth: []
tags:
  - name: Tweets
    description: Search, read and write tweets.
  - name: Users
    description: Profiles, timelines, networks and profile actions.
  - name: Lists
    description: X List data.
  - name: Media
    description: Upload images, GIFs and video.
  - name: Articles
    description: Long-form X Articles.
  - name: Direct Messages
    description: >-
      Read and send X (XChat) direct messages. Encrypted operations require your
      `encryption_code` (XChat PIN).
  - name: Webhooks
    description: >-
      Real-time event delivery. Register an https URL and OmniX POSTs typed,
      signed events for DMs, mentions, replies, likes and follows.
  - name: Account
    description: >-
      Your OmniX account details, credit balance, usage and payment history.
      Free — no credits deducted, and no X account token required.
paths:
  /user/tweets_and_replies:
    get:
      tags:
        - Users
      summary: Get User Tweets & Replies
      description: A user's tweets including their replies, newest first.
      operationId: userTweetsAndReplies
      parameters:
        - $ref: '#/components/parameters/AuthToken'
        - $ref: '#/components/parameters/UserName'
        - $ref: '#/components/parameters/UserId'
        - $ref: '#/components/parameters/Count'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Proxy'
      responses:
        '200':
          $ref: '#/components/responses/UserTweetsPage'
components:
  parameters:
    AuthToken:
      name: auth_token
      in: query
      required: true
      schema:
        type: string
      description: The X account `auth_token` cookie the action runs as.
      example: YOUR_X_AUTH_TOKEN
    UserName:
      name: userName
      in: query
      required: false
      schema:
        type: string
      description: Screen name (use this or `userId`).
      example: elonmusk
    UserId:
      name: userId
      in: query
      required: false
      schema:
        type: string
      description: Numeric user ID (recommended; overrides `userName`).
    Count:
      name: count
      in: query
      required: false
      schema:
        type: integer
        default: 20
      description: Page size (1–100).
    Cursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
      description: Pagination cursor from a previous response's `next_cursor`.
    Proxy:
      name: proxy
      in: query
      required: false
      schema:
        type: string
      description: >-
        Optional outbound proxy for this call (`http://` or `https://`,
        optionally `user:pass@host:port`). The X request runs through it —
        useful for geo-routing or spreading calls across IPs. SOCKS proxies are
        not supported.
      example: http://user:pass@host:8080
  responses:
    UserTweetsPage:
      description: A page of tweets.
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Envelope'
              - type: object
                properties:
                  data:
                    type: object
                    properties:
                      userName:
                        type: string
                        nullable: true
                      userId:
                        type: string
                      tweet_count:
                        type: integer
                      has_more:
                        type: boolean
                      next_cursor:
                        type: string
                        nullable: true
                      tweets:
                        type: array
                        items:
                          $ref: '#/components/schemas/Tweet'
  schemas:
    Envelope:
      type: object
      properties:
        status:
          type: boolean
          example: true
        data:
          type: object
        error:
          type: string
          nullable: true
          example: null
    Tweet:
      type: object
      properties:
        type:
          type: string
          example: tweet
        id:
          type: string
          example: '1899999999999999999'
        url:
          type: string
          nullable: true
        twitterUrl:
          type: string
          nullable: true
        text:
          type: string
          example: Exciting times ahead
        source:
          type: string
          nullable: true
          example: Twitter for iPhone
        retweetCount:
          type: integer
          example: 1200
        replyCount:
          type: integer
          example: 3400
        likeCount:
          type: integer
          example: 56000
        quoteCount:
          type: integer
          example: 210
        viewCount:
          type: integer
          nullable: true
          example: 4500000
        bookmarkCount:
          type: integer
          example: 800
        createdAt:
          type: string
          example: Wed Jun 11 18:30:00 +0000 2025
        lang:
          type: string
          example: en
        isReply:
          type: boolean
        inReplyToId:
          type: string
          nullable: true
        inReplyToUserId:
          type: string
          nullable: true
        conversationId:
          type: string
          nullable: true
        media:
          type: array
          items:
            $ref: '#/components/schemas/Media'
        entities:
          $ref: '#/components/schemas/Entities'
        author:
          $ref: '#/components/schemas/Author'
        quoted_tweet:
          type: object
          nullable: true
    Media:
      type: object
      properties:
        type:
          type: string
          example: photo
        url:
          type: string
        expanded_url:
          type: string
          nullable: true
        video_url:
          type: string
          nullable: true
        width:
          type: integer
          nullable: true
        height:
          type: integer
          nullable: true
        duration_ms:
          type: integer
          nullable: true
    Entities:
      type: object
      properties:
        hashtags:
          type: array
          items:
            type: object
        symbols:
          type: array
          items:
            type: object
        timestamps:
          type: array
          items:
            type: object
        urls:
          type: array
          items:
            type: object
        user_mentions:
          type: array
          items:
            type: object
    Author:
      type: object
      properties:
        type:
          type: string
          example: user
        id:
          type: string
          example: '44196397'
        userName:
          type: string
          example: elonmusk
        name:
          type: string
          example: Elon Musk
        url:
          type: string
          nullable: true
        twitterUrl:
          type: string
          nullable: true
        isVerified:
          type: boolean
        isBlueVerified:
          type: boolean
        verifiedType:
          type: string
          nullable: true
        profilePicture:
          type: string
          nullable: true
        coverPicture:
          type: string
          nullable: true
        description:
          type: string
        location:
          type: string
          nullable: true
        followers:
          type: integer
        following:
          type: integer
        favouritesCount:
          type: integer
        statusesCount:
          type: integer
        mediaCount:
          type: integer
        canDm:
          type: boolean
        createdAt:
          type: string
          nullable: true
        pinnedTweetIds:
          type: array
          items:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your OmniX API key, e.g. `omnix_live_...`. Billed per call.

````