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

# Get Category Counts

> Returns the number of active markets for each category and the total market count



## OpenAPI

````yaml GET /markets/categories/count
openapi: 3.0.0
info:
  title: Limitless Exchange API
  description: >-
    Production-ready REST API for prediction market trading, portfolio
    management, and market data on Limitless Exchange (Base L2).
  version: '1.0'
  contact:
    name: API Support
    url: https://limitless.exchange
    email: help@limitless.network
servers:
  - url: https://api.limitless.exchange
    description: Production API
security: []
tags:
  - name: Authentication
    description: User authentication and session management
  - name: Markets
    description: Browse, search, and analyze prediction markets
  - name: Market Navigation
    description: Navigation tree, market pages, and property filters
  - name: Trading
    description: Create, manage, and cancel orders
  - name: Portfolio
    description: Position tracking, trade history, and performance
  - name: API Tokens
    description: Scoped API token management for partner integrations
  - name: Partner Accounts
    description: Sub-account creation and allowance recovery for partner integrations
  - name: System
    description: Public API state and availability information
paths:
  /markets/categories/count:
    get:
      tags:
        - Markets
      summary: Get active market count per category
      description: >-
        Returns the number of active markets for each category and the total
        market count
      operationId: MarketController_getActiveMarketCountPerCategory
      parameters: []
      responses:
        '200':
          description: Object containing category counts and total count
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CategoryCountResponseDto'
        '500':
          description: Server error when retrieving category count data
components:
  schemas:
    CategoryCountResponseDto:
      type: object
      properties:
        category:
          type: object
          description: Number of active markets per category
          example:
            '1': 10
            '2': 5
            '3': 8
          additionalProperties:
            type: number
        totalCount:
          type: number
          description: Total number of active markets
          example: 23
      required:
        - category
        - totalCount

````