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

# Add Favorite

> This endpoint allows you to add a movie or TV show as a favorite.
    



## OpenAPI

````yaml api-reference/openapi.yaml post /3/account/{{account_id}}/favorite
openapi: 3.0.3
info:
  title: The Movie Database API
  description: >-
    Welcome to the third version of The Movie Database (TMDB) API. Our API
    provides you with vast access to a range of movies, TV shows, actor
    information, and images.


    With the TMDB API, you can easily integrate any of these functionalities in
    your application.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
  - url: Collection
security:
  - bearerAuth: []
tags:
  - name: Validate Key
  - name: Authentication
  - name: Guest Sessions
  - name: Configuration
  - name: Account
  - name: Search
  - name: Discover
  - name: Find
  - name: Keyword
  - name: Lists
  - name: V3 vs V4
    description: >-
      There is version 4 (v4) for our list API. It contains several advanced
      improvements that differentiate it from the version 3 (v3) list. Although
      v3 lists will continue to work, you can only access these features if you
      switch to v4 lists.


      Some of the new improvements you can access on v4 lists include:


      - You can Import "unlimited" items in a single request
          
      - You can use mixed-type (movie and TV) lists
          
      - You can use private lists
          
      - You can add and use comments per item
          
      - There are more sort options
          
      - They are faster
          

      Check the v4 [documentation
      ](https://developer.themoviedb.org/v4/docs/getting-started) for more
      information.  
  - name: Collections
  - name: Companies
  - name: Networks
  - name: Trending
  - name: Movies
  - name: Movie Lists
  - name: TV Series
  - name: TV Series Lists
  - name: TV Seasons
  - name: TV Providers
  - name: TV Episode Groups
  - name: Watch Providers
  - name: People
  - name: People List
  - name: Genre
  - name: Changes
  - name: Credits
  - name: Certifications
paths:
  /3/account/{{account_id}}/favorite:
    parameters:
      - name: account_id
        in: path
        description: >-
          This represents your account ID. Get it
          [here](https://starlight.mintlify.app/api-reference/accountid)
        required: true
        schema:
          type: string
    post:
      tags:
        - Account
      summary: Add Favorite
      description: |-
        This endpoint allows you to add a movie or TV show as a favorite.
            
      operationId: addFavorite
      parameters:
        - name: session_id
          in: query
          schema:
            type: string
          description: >
            This represents your session Id. Get it
            [here](https://starlight.mintlify.app/api-reference/sessionid)
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                favorite:
                  type: boolean
                  example: true
                  description: >-
                    This specifies if the movie or TV show should be added to
                    your favorite.
                media_id:
                  type: number
                  example: 2734
                  description: >-
                    This represents the media ID. Get it
                    [here](https://starlight.mintlify.app/api-reference/mediaid)
                media_type:
                  type: string
                  example: tv
                  description: This represents the media type. E.g., movie or Tv
            examples:
              Add Favorite:
                value:
                  favorite: true
                  media_id: 2734
                  media_type: tv
      responses:
        '201':
          description: Add Favorite
          headers:
            Alt-Svc:
              schema:
                type: string
                example: h3=":443"; ma=86400
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Length:
              schema:
                type: string
                example: '60'
            Date:
              schema:
                type: string
                example: Thu, 12 Dec 2024 08:14:41 GMT
            Server:
              schema:
                type: string
                example: openresty
            Vary:
              schema:
                type: string
                example: Origin
            Via:
              schema:
                type: string
                example: >-
                  1.1 98e30e5953336545df428a8f5923a288.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: PeBdx07UId4_731IQPZEowWN-7yc6xlnWufu1cSmTqVJrmR_GCU0AQ==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: IAD89-C3
            X-Cache:
              schema:
                type: string
                example: Miss from cloudfront
            cache-control:
              schema:
                type: string
                example: public, max-age=0
            etag:
              schema:
                type: string
                example: W/"4543905c5703940a323f39bb4fdcba82"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  status_code:
                    type: number
                    example: 1
                  status_message:
                    type: string
                    example: Success.
                  success:
                    type: boolean
                    example: true
              examples:
                Add Favorite:
                  value:
                    status_code: 1
                    status_message: Success.
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````