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

# Get tags

> Retrieve all available event tags/categories. Default listing is alphabetical (cursor-paginated). If either `sort` or `timeframe` is provided, the listing is ranked by the chosen metric+window (offset-paginated): sort defaults to `volume` when only `timeframe` is set, timeframe defaults to `24h` when only `sort` is set.



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/tags
openapi: 3.1.0
info:
  title: Polymarket API
  description: >-
    RESTful API for querying Polymarket prediction markets data including
    events, markets, traders, holders, and real-time metrics
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.struct.to/v1
security: []
paths:
  /polymarket/tags:
    get:
      tags:
        - Tags
      summary: Get tags
      description: >-
        Retrieve all available event tags/categories. Default listing is
        alphabetical (cursor-paginated). If either `sort` or `timeframe` is
        provided, the listing is ranked by the chosen metric+window
        (offset-paginated): sort defaults to `volume` when only `timeframe` is
        set, timeframe defaults to `24h` when only `sort` is set.
      operationId: get_tags
      parameters:
        - name: limit
          in: query
          description: 'Results limit (default: 10, max: 250)'
          required: false
          schema:
            type: integer
            format: int32
        - name: offset
          in: query
          description: >-
            Offset-based pagination (number of results to skip). Takes
            precedence over pagination_key.
          required: false
          schema:
            type: integer
            format: int64
        - name: pagination_key
          in: query
          description: Cursor-based pagination key (alphabetical mode only).
          required: false
          schema:
            type: string
        - name: sort
          in: query
          description: Sort metric. Defaults to `volume` when only `timeframe` is set.
          required: false
          schema:
            $ref: '#/components/schemas/TagSortBy'
        - name: timeframe
          in: query
          description: >-
            Window for the sort metric. Defaults to `24h` when only `sort` is
            set.
          required: false
          schema:
            $ref: '#/components/schemas/TagSortTimeframe'
        - name: sort_desc
          in: query
          description: >-
            Sort direction (default: true = highest first). Only applies to
            sort/timeframe mode.
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: List of all tags
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PolymarketTag'
components:
  schemas:
    TagSortBy:
      type: string
      description: |-
        Metric to order by when `sort=<value>` is provided.

        `unique_*` variants rank by the number of distinct wallet addresses
        active in the selected timeframe.
      enum:
        - volume
        - builder_volume
        - shares_volume
        - builder_shares_volume
        - txns
        - builder_txns
        - unique_traders
        - unique_builder_traders
        - unique_makers
        - unique_takers
        - fees
        - builder_fees
    TagSortTimeframe:
      type: string
      description: |-
        Timeframe for `?sort=...` — defines the window the metric is summed over
        (or `lifetime` for all-time cumulative).
      enum:
        - lifetime
        - 1h
        - 24h
        - 7d
        - 30d
        - 1mo
    PolymarketTag:
      type: object
      description: A Polymarket tag from the Gamma API
      properties:
        id:
          type: string
          default: ''
        label:
          type: string
          default: ''
        slug:
          type:
            - string
            - 'null'
          default: null
        volume_usd:
          type: number
          format: double
        shares_volume:
          type: number
          format: double
        builder_usd_volume:
          type: number
          format: double
        builder_shares_volume:
          type: number
          format: double
        txn_count:
          type: integer
          format: int64
        builder_txn_count:
          type: integer
          format: int64
        unique_traders:
          type: integer
          format: int64
          description: Distinct active traders in the window.
        unique_makers:
          type: integer
          format: int64
        unique_takers:
          type: integer
          format: int64
        unique_builder_traders:
          type: integer
          format: int64
        fees_usd:
          type: number
          format: double
        builder_fees_usd:
          type: number
          format: double

````