> ## 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 tag by slug

> Retrieve a single tag by its ID or slug. Pass `include_metrics=true` to attach analytics metrics (volume_usd, shares_volume, txn_count, unique_traders, unique_makers, unique_takers, fees_usd, and builder metrics). Use `timeframe` to select the window; defaults to `1d`.



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/tags/{identifier}
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/{identifier}:
    get:
      tags:
        - Tags
      summary: Get tag by slug
      description: >-
        Retrieve a single tag by its ID or slug. Pass `include_metrics=true` to
        attach analytics metrics (volume_usd, shares_volume, txn_count,
        unique_traders, unique_makers, unique_takers, fees_usd, and builder
        metrics). Use `timeframe` to select the window; defaults to `1d`.
      operationId: get_tag_by_id
      parameters:
        - name: identifier
          in: path
          description: Tag ID or slug
          required: true
          schema:
            type: string
        - name: include_metrics
          in: query
          description: Attach analytics metrics.
          required: false
          schema:
            type: boolean
        - name: timeframe
          in: query
          description: >-
            Metrics window. Default `1d` (= `24h`). Ignored unless
            `include_metrics=true`.
          required: false
          schema:
            $ref: '#/components/schemas/TagSortTimeframe'
      responses:
        '200':
          description: Tag details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolymarketTag'
        '404':
          description: Tag not found
components:
  schemas:
    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

````