> ## 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.

# Advanced Search

> Full tweet search with X advanced operators (`from:`, `since:`, `until:`, `filter:`, exact phrases). Returns a page of tweets and a cursor for the next page.



## OpenAPI

````yaml /api-reference/openapi.json get /tweet/advanced_search
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:
  /tweet/advanced_search:
    get:
      tags:
        - Tweets
      summary: Advanced Search
      description: >-
        Full tweet search with X advanced operators (`from:`, `since:`,
        `until:`, `filter:`, exact phrases). Returns a page of tweets and a
        cursor for the next page.
      operationId: advancedSearch
      parameters:
        - $ref: '#/components/parameters/AuthToken'
        - name: q
          in: query
          required: true
          schema:
            type: string
          description: >-
            Search query. Supports X operators, e.g. `from:elonmusk
            filter:media`.
          example: from:elonmusk
        - name: product
          in: query
          required: false
          schema:
            type: string
            enum:
              - Latest
              - Top
            default: Latest
          description: Result ordering.
        - $ref: '#/components/parameters/Count'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Proxy'
      responses:
        '200':
          description: A page of matching tweets.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          query:
                            type: string
                          tweet_count:
                            type: integer
                          has_more:
                            type: boolean
                          next_cursor:
                            type: string
                            nullable: true
                          tweets:
                            type: array
                            items:
                              $ref: '#/components/schemas/Tweet'
        '400':
          $ref: '#/components/responses/BadRequest'
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
    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
  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
    Error:
      type: object
      properties:
        status:
          type: boolean
          example: false
        data:
          type: object
          nullable: true
          example: null
        error:
          type: string
  responses:
    BadRequest:
      description: A required field is missing or malformed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: false
            data: null
            error: 'Missing required field: text'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your OmniX API key, e.g. `omnix_live_...`. Billed per call.

````