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

# Polymarket Ranking



## OpenAPI

````yaml openapi.json GET /gateway/v1/prediction-market/polymarket/ranking
openapi: 3.1.0
info:
  title: Hermod
  version: 0.0.1
servers:
  - url: https://api.asksurf.ai
security: []
paths:
  /gateway/v1/prediction-market/polymarket/ranking:
    get:
      tags:
        - Prediction Market
      summary: Polymarket Market Ranking
      description: >-
        Returns top-ranked Polymarket markets.


        **Sort by:** `volume_24h`, `volume_7d`, `open_interest`, or
        `trade_count`.


        **Filters:** `status` and `end_before`.


        **Data refresh:** ~30 minutes
      operationId: polymarket-ranking
      parameters:
        - description: Sort by last day's `notional_volume_usd` or `open_interest`
          explode: false
          in: query
          name: sort_by
          schema:
            default: notional_volume_usd
            description: Sort by last day's `notional_volume_usd` or `open_interest`
            enum:
              - notional_volume_usd
              - open_interest
            examples:
              - notional_volume_usd
            type: string
        - description: Sort order
          explode: false
          in: query
          name: order
          schema:
            default: desc
            description: Sort order
            enum:
              - asc
              - desc
            examples:
              - desc
            type: string
        - description: >-
            Market status filter: `active`, `finalized`, `ended`, `initialized`,
            or `closed`
          explode: false
          in: query
          name: status
          schema:
            default: active
            description: >-
              Market status filter: `active`, `finalized`, `ended`,
              `initialized`, or `closed`
            enum:
              - active
              - finalized
              - ended
              - initialized
              - closed
            examples:
              - active
            type: string
        - description: Filter by Surf-curated category
          explode: false
          in: query
          name: category
          schema:
            description: Filter by Surf-curated category
            enum:
              - crypto
              - culture
              - early_polymarket_trades
              - economics
              - financials
              - politics
              - stem
              - sports
              - unknown
            examples:
              - politics
            type: string
        - description: >-
            Filter markets ending within this window from now: `24h`, `3d`,
            `7d`, `14d`, or `30d`
          explode: false
          in: query
          name: end_before
          schema:
            description: >-
              Filter markets ending within this window from now: `24h`, `3d`,
              `7d`, `14d`, or `30d`
            enum:
              - 24h
              - 3d
              - 7d
              - 14d
              - 30d
            examples:
              - 7d
            type: string
        - description: Results per page
          explode: false
          in: query
          name: limit
          schema:
            default: 20
            description: Results per page
            examples:
              - 20
            format: int64
            maximum: 50
            minimum: 1
            type: integer
        - description: Pagination offset
          explode: false
          in: query
          name: offset
          schema:
            default: 0
            description: Pagination offset
            examples:
              - 0
            format: int64
            minimum: 0
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponsePolymarketRankingItem'
          description: OK
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataAPIError'
          description: Error
      security:
        - AccessToken: []
components:
  schemas:
    DataResponsePolymarketRankingItem:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataResponsePolymarketRankingItem.json
          format: uri
          readOnly: true
          type: string
        data:
          items:
            $ref: '#/components/schemas/PolymarketRankingItem'
          type:
            - array
            - 'null'
        meta:
          $ref: '#/components/schemas/OffsetMeta'
      required:
        - data
        - meta
      type: object
    DataAPIError:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataAPIError.json
          format: uri
          readOnly: true
          type: string
        error:
          $ref: '#/components/schemas/DataAPIErrorDetail'
      required:
        - error
      type: object
    PolymarketRankingItem:
      additionalProperties: false
      properties:
        category:
          description: Surf curated market category
          type: string
        condition_id:
          description: Unique condition identifier
          type: string
        end_time:
          description: Market end time (Unix seconds)
          format: int64
          type: integer
        notional_volume_usd:
          description: Notional trading volume (USD)
          format: double
          type: number
        open_interest_usd:
          description: Current open interest (USD)
          format: double
          type: number
        polymarket_link:
          description: Link to Polymarket page
          type: string
        question:
          description: Market question text
          type: string
        status:
          description: Market status
          type: string
        subcategory:
          description: Surf curated market subcategory
          type: string
        tags:
          description: Market tags
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - condition_id
        - question
        - status
        - notional_volume_usd
        - open_interest_usd
      type: object
    OffsetMeta:
      additionalProperties: false
      properties:
        cached:
          description: Whether this response was served from cache
          type: boolean
        credits_used:
          description: Credits deducted for this request
          format: int64
          type: integer
        limit:
          description: Maximum number of items returned in this response
          format: int64
          type: integer
        offset:
          description: Number of items skipped (pagination offset)
          format: int64
          type: integer
        total:
          description: >-
            Total number of matching items (before pagination). Omitted when
            total is unknown.
          format: int64
          type: integer
      required:
        - limit
        - offset
        - credits_used
        - cached
      type: object
    DataAPIErrorDetail:
      additionalProperties: false
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object

````