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

# Search

> Full-text search across events and markets by title



## OpenAPI

````yaml GET /api/v1/search
openapi: 3.0.3
info:
  title: EventGraph API
  description: >-
    Unified prediction market data across Polymarket, Kalshi, Limitless, and
    OpinionTrade.
  version: 1.0.0
  contact:
    name: EventGraph
    url: https://eventgraph.ai
    email: info@eventgraph.ai
servers:
  - url: https://app.eventgraph.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/search:
    get:
      tags:
        - Search
      summary: Search
      description: Full-text search across events and markets by title.
      operationId: search
      parameters:
        - name: q
          in: query
          required: true
          description: Search query (2-200 characters)
          schema:
            type: string
            minLength: 2
            maxLength: 200
        - name: platform
          in: query
          required: false
          schema:
            type: string
            enum:
              - polymarket
              - kalshi
              - limitless
              - opiniontrade
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
components:
  schemas:
    SearchResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            events:
              type: array
              items:
                $ref: '#/components/schemas/Event'
            markets:
              type: array
              items:
                $ref: '#/components/schemas/Market'
        timestamp:
          type: string
          format: date-time
        meta:
          type: object
          properties:
            query:
              type: string
            events_found:
              type: integer
            markets_found:
              type: integer
            response_ms:
              type: number
    Event:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        platform:
          type: string
        category:
          type: string
        status:
          type: string
        image_url:
          type: string
          format: uri
          nullable: true
        market_count:
          type: integer
        total_volume:
          type: number
        volume_24h:
          type: number
        liquidity:
          type: number
        start_time:
          type: string
          format: date-time
          nullable: true
        end_time:
          type: string
          format: date-time
          nullable: true
        tags:
          type: array
          items:
            type: string
    Market:
      type: object
      properties:
        id:
          type: string
          description: Platform-specific market ID
        title:
          type: string
        platform:
          type: string
          enum:
            - polymarket
            - kalshi
            - limitless
            - opiniontrade
        yes_price:
          type: number
          description: Implied YES probability (0.0–1.0)
        no_price:
          type: number
          description: Implied NO probability (1 - yes_price)
        volume:
          type: number
          description: Lifetime trading volume (USD)
        volume_24h:
          type: number
          description: 24-hour rolling volume
        status:
          type: string
          enum:
            - open
            - closed
        url:
          type: string
          format: uri
          description: Direct link to market on source platform
        last_updated:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your EventGraph API key (eg_live_...)

````