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

# Episode Id

> This endpoint get the episode group id



## OpenAPI

````yaml api-reference/openapi3.json get /3/tv/{tv_id}/episode_groups
openapi: 3.0.3
info:
  title: The Movie Database
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
security:
  - bearerAuth: []
tags:
  - name: AUTHENTICATION
  - name: ACCOUNT
  - name: CERTIFICATIONS
  - name: CHANGES
  - name: COLLECTIONS
  - name: COMPANY
  - name: CONFIGURATION
  - name: CREDIT
  - name: DISCOVER
  - name: FIND
  - name: GENRES
  - name: GUEST SESSIONS
  - name: KEYWORDS
  - name: LISTS
  - name: MOVIE LISTS
  - name: MOVIES
  - name: NETWORKS
  - name: PEOPLE LIST
  - name: PEOPLE
  - name: REVIEWS
  - name: SEARCH
  - name: TRENDING
  - name: TV SERIES LIST
  - name: TV SERIES
  - name: TV SEASONS
  - name: TV EPISODES
  - name: TV EPISODE GROUP
  - name: WATCH PROVIDERS
paths:
  /3/tv/{tv_id}/episode_groups:
    get:
      tags:
        - TV EPISODE GROUP
      summary: Episode Id
      description: This endpoint get the episode group id
      operationId: episodeId
      parameters:
        - name: tv_id
          in: path
          required: true
          description: >-
            This refers to a unique identifier for a specific TV show or series
            in the database.
          schema:
            type: string
            example: ''
      responses:
        '200':
          description: episode id
          headers:
            Age:
              schema:
                type: string
                example: '554'
            Alt-Svc:
              schema:
                type: string
                example: h3=":443"; ma=86400
            Cache-Control:
              schema:
                type: string
                example: public, max-age=2011
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Encoding:
              schema:
                type: string
                example: gzip
            Date:
              schema:
                type: string
                example: Mon, 06 Jan 2025 07:54:35 GMT
            ETag:
              schema:
                type: string
                example: W/"ef29d031be33a9600c17d15e278d58cf"
            Server:
              schema:
                type: string
                example: openresty
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
            Vary:
              schema:
                type: string
                example: Origin
            Via:
              schema:
                type: string
                example: >-
                  1.1 368146333bf1a1071e8432a7d4e41e1a.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: '-jldN5OXMWevOgn29KCWe1jrnIhOWC4LOjlMY4-IYIk6jya36JVXSw=='
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: IAD89-C3
            X-Cache:
              schema:
                type: string
                example: Hit from cloudfront
            x-memc:
              schema:
                type: string
                example: HIT
            x-memc-age:
              schema:
                type: string
                example: '21628'
            x-memc-expires:
              schema:
                type: string
                example: '2011'
            x-memc-key:
              schema:
                type: string
                example: 5d1d987ee541aee828ec34c86e629438
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                    example: 1399
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        description:
                          type: string
                          example: ''
                        episode_count:
                          type: number
                          example: 102
                        group_count:
                          type: number
                          example: 9
                        id:
                          type: string
                          example: 5e9077d2e640d600151f32bd
                        name:
                          type: string
                          example: Aired Order
                        network:
                          type: object
                          properties:
                            id:
                              type: number
                              example: 49
                            logo_path:
                              type: string
                              example: /tuomPhY2UtuPTqqFnKMVHvSb724.png
                            name:
                              type: string
                              example: HBO
                            origin_country:
                              type: string
                              example: US
                        type:
                          type: number
                          example: 1
                    example:
                      - description: ''
                        episode_count: 102
                        group_count: 9
                        id: 5e9077d2e640d600151f32bd
                        name: Aired Order
                        network:
                          id: 49
                          logo_path: /tuomPhY2UtuPTqqFnKMVHvSb724.png
                          name: HBO
                          origin_country: US
                        type: 1
              examples:
                episode id:
                  value:
                    id: 1399
                    results:
                      - description: ''
                        episode_count: 102
                        group_count: 9
                        id: 5e9077d2e640d600151f32bd
                        name: Aired Order
                        network:
                          id: 49
                          logo_path: /tuomPhY2UtuPTqqFnKMVHvSb724.png
                          name: HBO
                          origin_country: US
                        type: 1
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````