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

# Get episode metadata



## OpenAPI

````yaml /openapi.yaml get /api/platform/v1/title/show/{id}/season/{season}/episode/{episode}
openapi: 3.1.0
info:
  title: PunchPlay API
  version: 1.0.0-beta.3
  description: >-
    Complete beta contract for native and third-party clients, plus the stable
    read-only public profile API. OAuth access tokens use explicit per-operation
    scopes.
  summary: Platform and public API surface for PunchPlay developers.
servers:
  - url: https://punchplay.tv
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Authentication
  - name: Profile
  - name: Titles
  - name: History
  - name: Ratings
  - name: Lists
  - name: Collection
  - name: Playback
  - name: Calendar
  - name: Community
  - name: Notifications
  - name: Trophies
  - name: Public Catalog
  - name: Public Users
paths:
  /api/platform/v1/title/show/{id}/season/{season}/episode/{episode}:
    parameters:
      - $ref: '#/components/parameters/SourceId'
      - $ref: '#/components/parameters/Season'
      - $ref: '#/components/parameters/Episode'
    get:
      tags:
        - Titles
      summary: Get episode metadata
      operationId: getEpisode
      responses:
        '200':
          $ref: '#/components/responses/EpisodeDetailSuccess'
        '400':
          $ref: '#/components/responses/ApiError'
        '401':
          $ref: '#/components/responses/ApiError'
        '403':
          $ref: '#/components/responses/ApiError'
        '404':
          $ref: '#/components/responses/ApiError'
        '429':
          $ref: '#/components/responses/ApiError'
      security:
        - oauth2:
            - profile:read
components:
  parameters:
    SourceId:
      in: path
      name: id
      required: true
      schema:
        type: integer
        minimum: 1
    Season:
      in: path
      name: season
      required: true
      schema:
        type: integer
        minimum: 0
    Episode:
      in: path
      name: episode
      required: true
      schema:
        type: integer
        minimum: 1
  responses:
    EpisodeDetailSuccess:
      description: Episode detail
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/EpisodeDetail'
      headers:
        X-RateLimit-Limit:
          schema:
            type: integer
          description: Ceiling of the most constraining bucket for this request.
        X-RateLimit-Remaining:
          schema:
            type: integer
          description: Requests remaining in the current window.
        X-RateLimit-Reset:
          schema:
            type: integer
          description: Unix time in seconds when the current window resets.
    ApiError:
      description: API error
      headers:
        X-PunchPlay-Request-Id:
          schema:
            type: string
        X-RateLimit-Limit:
          schema:
            type: integer
          description: Ceiling of the most constraining bucket for this request.
        X-RateLimit-Remaining:
          schema:
            type: integer
          description: Requests remaining in the current window.
        X-RateLimit-Reset:
          schema:
            type: integer
          description: Unix time in seconds when the current window resets.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    EpisodeDetail:
      type: object
      required:
        - showTmdbId
        - showName
        - showPosterUrl
        - showBackdropUrl
        - season
        - episode
        - name
        - overview
        - airDate
        - stillUrl
        - communityRating
      properties:
        showTmdbId:
          type: integer
          minimum: 1
        showName:
          type: string
        showPosterUrl:
          type: string
        showBackdropUrl:
          type: string
        seasonPosterUrl:
          type: string
        showGenres:
          type: array
          items:
            type: string
        season:
          type: integer
          minimum: 0
        episode:
          type: integer
          minimum: 1
        name:
          type: string
        overview:
          type: string
        airDate:
          type: string
        stillUrl:
          type: string
        communityRating:
          type: number
        runtimeMinutes:
          type: integer
        directors:
          type: array
          items:
            $ref: '#/components/schemas/PersonCredit'
        writers:
          type: array
          items:
            $ref: '#/components/schemas/PersonCredit'
        cast:
          type: array
          items:
            type: object
            required:
              - id
              - name
              - profileUrl
            properties:
              id:
                type: integer
              name:
                type: string
              character:
                type: string
              profileUrl:
                type: string
            additionalProperties: false
        trailerUrl:
          type: string
      additionalProperties: true
    ApiError:
      type: object
      required:
        - error
        - message
        - request_id
      properties:
        error:
          type: string
        message:
          type: string
        request_id:
          type:
            - string
            - 'null'
        required_scope:
          type: string
      additionalProperties: true
    PersonCredit:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: integer
        name:
          type: string
      additionalProperties: false
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /api/platform/v1/oauth/authorize
          tokenUrl: /api/platform/v1/oauth/token
          scopes:
            profile:read: Read basic profile and title metadata
            history:read: Read watch history
            history:write: Log, edit, and delete watches
            lists:read: Read lists
            lists:write: Create and edit lists
            ratings:read: Read ratings, favourites, and statuses
            ratings:write: Rate, favourite, and change statuses
            collection:read: Read collection items
            collection:write: Add and remove collection items
            notifications:read: Read notifications and notification preferences
            notifications:write: Manage notification read state and preferences
            trophies:read: Read trophy progress
            profile:write: Update profile details and preferences
            playback:read: Read playback and continue-watching state
            playback:write: Update playback state
            events:read: Subscribe to playback events

````