> ## 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.

# Collection_id

> This endpoint is used to get the collection_id.



## OpenAPI

````yaml api-reference/openapi3.json get /3/search/collection
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/search/collection:
    get:
      tags:
        - COLLECTIONS
      summary: Collection_id
      description: This endpoint is used to get the collection_id.
      operationId: collectionId
      parameters:
        - name: query
          in: query
          description: This is the name of the movie collection.
          schema:
            type: string
            example: The avengers collection
        - $ref: '#/components/parameters/include_adult'
        - $ref: '#/components/parameters/language'
        - $ref: '#/components/parameters/page'
        - name: region
          in: query
          description: >-
            This refers to the geographical area or market that is relevant for
            the query being made.
          schema:
            type: string
      responses:
        '200':
          description: collection_id
          headers:
            Alt-Svc:
              schema:
                type: string
                example: h3=":443"; ma=86400
            Cache-Control:
              schema:
                type: string
                example: public, max-age=21525
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Encoding:
              schema:
                type: string
                example: gzip
            Date:
              schema:
                type: string
                example: Mon, 30 Dec 2024 16:10:28 GMT
            ETag:
              schema:
                type: string
                example: W/"b4adbe374cb74c72470965d5a9a6994c"
            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 199fd61d7551d8868317c5b53cc7d24c.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: rwYAZ8ymJRfruF78qCvPVrxLqPmo7D-iv_zzWCWoBPOn4k7Gf3ofXQ==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: IAD89-C3
            X-Cache:
              schema:
                type: string
                example: Miss from cloudfront
            x-memc:
              schema:
                type: string
                example: HIT
            x-memc-age:
              schema:
                type: string
                example: '7071'
            x-memc-expires:
              schema:
                type: string
                example: '21525'
            x-memc-key:
              schema:
                type: string
                example: 831ee33cc6a644d3ea0262fae61d7770
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    example: 1
                    description: >-
                      This indicates the current page number of the results
                      being displayed.
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        adult:
                          type: boolean
                          example: false
                          description: >-
                            this indicates whether a movie is classified as
                            adult content.
                        backdrop_path:
                          type: string
                          example: /zuW6fOiusv4X9nnW3paHGfXcSll.jpg
                          description: >-
                            The URL path to the backdrop image associated with
                            the collection.
                        id:
                          type: number
                          example: 86311
                          description: A unique identifier for a movie collection.
                        name:
                          type: string
                          example: The Avengers Collection
                          description: The title of the collection.
                        original_language:
                          type: string
                          example: en
                          description: >-
                            The language in which the film collection was
                            originally produced.
                        original_name:
                          type: string
                          example: The Avengers Collection
                          description: >-
                            refers to the title of a film or television show as
                            it was originally published or released in its
                            native language or country.
                        overview:
                          type: string
                          example: >-
                            A superhero film series produced by Marvel Studios
                            based on the Marvel Comics superhero team of the
                            same name, and part of the Marvel Cinematic Universe
                            (MCU).  The series features an ensemble cast from
                            the Marvel Cinematic Universe series films, as they
                            join forces for the peacekeeping organization
                            S.H.I.E.L.D. led by Nick Fury.
                          description: A brief summary of the film's plot.
                        poster_path:
                          type: string
                          example: /yFSIUVTCvgYrpalUktulvk3Gi5Y.jpg
                          description: >-
                            The URL path to the poster image associated with the
                            collection.
                    example:
                      - adult: false
                        backdrop_path: /zuW6fOiusv4X9nnW3paHGfXcSll.jpg
                        id: 86311
                        name: The Avengers Collection
                        original_language: en
                        original_name: The Avengers Collection
                        overview: >-
                          A superhero film series produced by Marvel Studios
                          based on the Marvel Comics superhero team of the same
                          name, and part of the Marvel Cinematic Universe
                          (MCU).  The series features an ensemble cast from the
                          Marvel Cinematic Universe series films, as they join
                          forces for the peacekeeping organization S.H.I.E.L.D.
                          led by Nick Fury.
                        poster_path: /yFSIUVTCvgYrpalUktulvk3Gi5Y.jpg
                    description: >-
                      An array which provides detailed information about the
                      movie collection.
                  total_pages:
                    type: number
                    example: 1
                    description: >-
                      This indicates the total number of pages available based
                      on the current query.
                  total_results:
                    type: number
                    example: 1
                    description: >-
                      This indicate the total number of results that match the
                      query.
              examples:
                collection_id:
                  value:
                    page: 1
                    results:
                      - adult: false
                        backdrop_path: /zuW6fOiusv4X9nnW3paHGfXcSll.jpg
                        id: 86311
                        name: The Avengers Collection
                        original_language: en
                        original_name: The Avengers Collection
                        overview: >-
                          A superhero film series produced by Marvel Studios
                          based on the Marvel Comics superhero team of the same
                          name, and part of the Marvel Cinematic Universe
                          (MCU).  The series features an ensemble cast from the
                          Marvel Cinematic Universe series films, as they join
                          forces for the peacekeeping organization S.H.I.E.L.D.
                          led by Nick Fury.
                        poster_path: /yFSIUVTCvgYrpalUktulvk3Gi5Y.jpg
                    total_pages: 1
                    total_results: 1
components:
  parameters:
    include_adult:
      name: include_adult
      in: query
      description: This indicate whether the movie is an adult content.
      schema:
        type: string
        enum:
          - true
          - false
        example: false
    language:
      name: language
      in: query
      description: Specifies the language in which the response should be returned.
      schema:
        type: string
        example: en-US
    page:
      name: page
      in: query
      description: >-
        Indicates which page of results to return. Default is the first page
        (1).
      schema:
        type: integer
        example: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````