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

# Get Tags

> Retrieve all available tags for filtering markets.



## OpenAPI

````yaml /prediction-market-data-reference/openapi.json get /api/workflows/polymarket/getTags
openapi: 3.1.0
info:
  title: Prediction Market Data API
  description: >-
    Comprehensive API endpoints for querying data from prediction markets
    supported via workflows.
  version: 1.0.0
  contact:
    name: Swaps.xyz
    url: https://swaps.xyz
servers:
  - url: https://api-v2.swaps.xyz
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /api/workflows/polymarket/getTags:
    get:
      summary: Get Tags
      description: Retrieve all available tags for filtering markets.
      operationId: getTags
      parameters:
        - name: limit
          in: query
          description: Number of tags to return
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - name: offset
          in: query
          description: Zero-based index of first tag to return
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: slug
          in: query
          description: Filter by tag slug
          schema:
            type: string
          example: nfl
      responses:
        '200':
          description: Array of tags
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Tag'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    Tag:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          description: Unique tag identifier
        label:
          type: string
          nullable: true
          description: Human-readable tag label
        slug:
          type: string
          nullable: true
          description: URL-friendly tag identifier
        forceShow:
          type: boolean
          nullable: true
          description: Whether to force show this tag
        publishedAt:
          type: string
          nullable: true
          description: 'Tag publication timestamp (format: YYYY-MM-DD HH:mm:ss.SSS+00)'
        createdBy:
          type: integer
          nullable: true
          description: ID of user who created the tag
        updatedBy:
          type: integer
          nullable: true
          description: ID of user who last updated the tag
        createdAt:
          type: string
          format: date-time
          nullable: true
          description: Tag creation timestamp
        updatedAt:
          type: string
          format: date-time
          nullable: true
          description: Tag last update timestamp
        forceHide:
          type: boolean
          nullable: true
          description: Whether to force hide this tag
        isCarousel:
          type: boolean
          nullable: true
          description: Whether this tag is a carousel tag
        requiresTranslation:
          type: boolean
          nullable: true
          description: Whether this tag requires translation
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
        code:
          type: integer
          description: Error code
        details:
          type: object
          description: Additional error details
  responses:
    BadRequest:
      description: Bad request due to missing or invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Contact Swaps.xyz to obtain an API key.

````