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

# Account States

> This endpoint get the rating, watchlist and favourite status.



## OpenAPI

````yaml api-reference/openapi3.json get /3/tv/{series_id}/season/{season_number}/episode/{episode_number}/account_states
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/{series_id}/season/{season_number}/episode/{episode_number}/account_states:
    get:
      tags:
        - TV EPISODES
      summary: Account States
      description: This endpoint get the rating, watchlist and favourite status.
      operationId: accountStates3
      parameters:
        - name: guest_session_id
          in: query
          description: >-
            It represents a unique identifier for a session that is created for
            a guest user.
          schema:
            type: string
        - $ref: '#/components/parameters/session_id'
        - $ref: '#/components/parameters/season_number'
        - $ref: '#/components/parameters/series_id'
        - $ref: '#/components/parameters/episode_number'
      responses:
        '200':
          description: account states
          headers:
            Alt-Svc:
              schema:
                type: string
                example: h3=":443"; ma=86400
            Cache-Control:
              schema:
                type: string
                example: public, max-age=0
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Encoding:
              schema:
                type: string
                example: gzip
            Date:
              schema:
                type: string
                example: Sun, 05 Jan 2025 23:25:37 GMT
            ETag:
              schema:
                type: string
                example: W/"6324d339f5a7dea36147c05eb5977fb5"
            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 4db130e87be66fce9731567ae0669c56.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: sSPx6bzUiztoIzQXGrx2W6uPnqFiC50mbvLDNGpPvRXP3--0TgZmpQ==
            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: MISS
            x-memc-age:
              schema:
                type: string
                example: '0'
            x-memc-expires:
              schema:
                type: string
                example: '0'
            x-memc-key:
              schema:
                type: string
                example: fd0f17d7c14d2b98317313ce861885f7
          content:
            application/json:
              schema:
                type: object
                properties:
                  favorite:
                    type: boolean
                    example: true
                  id:
                    type: number
                    example: 62085
                  rated:
                    type: object
                    properties:
                      value:
                        type: number
                        example: 9
                  watchlist:
                    type: boolean
                    example: false
              examples:
                account states:
                  value:
                    favorite: true
                    id: 62085
                    rated:
                      value: 9
                    watchlist: false
components:
  parameters:
    session_id:
      name: session_id
      in: query
      description: >-
        A token that represents a logged-in user's session after they have
        authenticated with their TMDB account.
      schema:
        type: string
        example: ''
    season_number:
      name: season_number
      in: path
      required: true
      description: >-
        This refers to the numerical identifier assigned to a specific season of
        a TV series.
      schema:
        type: integer
        example: ''
    series_id:
      name: series_id
      in: path
      required: true
      description: >-
        This refers to a unique identifier assigned to a television series
        within the database.
      schema:
        type: integer
        example: ''
    episode_number:
      name: episode_number
      in: path
      required: true
      description: >-
        This refers to the unique number assigned to a specific episode within a
        season of a television series.
      schema:
        type: integer
        example: ''
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````