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

# Get listing availability

> Returns unavailable dates for a published listing for a given month (YYYY-MM). Public endpoint.



## OpenAPI

````yaml GET /public/venues/{listingId}/availability
openapi: 3.0.0
info:
  title: PLEC API
  description: PLEC backend API reference
  version: '1.0'
  contact: {}
servers:
  - url: https://api.plec-it.com
    description: Production
  - url: https://api-staging.plec-it.com
    description: Staging
  - url: http://localhost:3000
    description: Local Development
security: []
tags: []
paths:
  /public/venues/{listingId}/availability:
    get:
      tags:
        - Listings
      summary: Get listing availability
      description: >-
        Returns unavailable dates for a published listing for a given month
        (YYYY-MM). Public endpoint.
      operationId: PublicListingsController_getAvailability
      parameters:
        - name: listingId
          required: true
          in: path
          description: Listing ID
          schema:
            example: '10000001'
            type: string
        - name: month
          required: true
          in: query
          description: Month in YYYY-MM format
          schema:
            example: 2025-12
            type: string
      responses:
        '400':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponseDto'
components:
  schemas:
    ApiErrorResponseDto:
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message
          example: Validation failed
        code:
          type: string
          description: Machine-readable error code
          example: BAD_REQUEST
        details:
          type: object
          description: Additional validation or context details
          example:
            - date must be a valid ISO 8601 date
      required:
        - message

````