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

# Content Library Platform Count Options

> Per-platform post counts for the Explore Posts pill bar.



## OpenAPI

````yaml /openapi.json get /api/v1/content-library/platform-counts
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/content-library/platform-counts:
    get:
      tags:
        - Content Library
      summary: Content Library Platform Count Options
      description: Per-platform post counts for the Explore Posts pill bar.
      operationId: >-
        content_library_platform_count_options_api_v1_content_library_platform_counts_get
      parameters:
        - name: kind
          in: query
          required: false
          schema:
            enum:
              - social_post
              - content
            type: string
            default: social_post
            title: Kind
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentLibraryPlatformCountsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContentLibraryPlatformCountsResponse:
      properties:
        generated_at:
          type: string
          format: date-time
          title: Generated At
        total_ads:
          type: integer
          title: Total Ads
          default: 0
        platforms:
          items:
            $ref: '#/components/schemas/ContentLibraryPlatformCount'
          type: array
          title: Platforms
      type: object
      required:
        - generated_at
      title: ContentLibraryPlatformCountsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ContentLibraryPlatformCount:
      properties:
        platform:
          type: string
          title: Platform
        total_ads:
          type: integer
          title: Total Ads
          default: 0
      type: object
      required:
        - platform
      title: ContentLibraryPlatformCount
      description: Posts stored per platform — the Explore Posts pill counts.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````