> ## Documentation Index
> Fetch the complete documentation index at: https://ileolami.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 of a TV episode.



## OpenAPI

````yaml get /3/tv/{series_id}/season/{season_number}/episode/{episode_number}/account_states
openapi: 3.0.3
info:
  title: The Movie Database
  description: Reference
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
security:
  - bearerAuth: []
tags:
  - name: ACCOUNT
  - name: AUTHENTICATION
  - name: CERTIFICATION
  - name: CHANGES
  - name: COLLECTION
  - name: COMPANIES
  - name: CONFIGURATION
  - name: CREDITS
  - name: DISCOVER
  - name: FIND
  - name: GENRES
  - name: GUEST SESSION
  - name: KEYWORDS
  - name: LISTS
  - name: MOVIE LISTS
  - name: MOVIES
  - name: NETWORK
  - name: PEOPLE
  - name: PEOPLE LISTS
  - name: REVIEWS
  - name: SEARCH
  - name: TRENDING
  - name: TV SERIES LIST
  - name: TV SERIES
  - name: TV SEASONS
  - name: TV EPISODES
  - name: TV EPISODES GROUPS
  - name: WATCH PROVIDERS
paths:
  /3/tv/{series_id}/season/{season_number}/episode/{episode_number}/account_states:
    parameters:
      - $ref: '#/components/parameters/SeriesID'
      - name: season_number
        in: path
        required: true
        schema:
          type: integer
          example: 1
      - name: episode_number
        in: path
        required: true
        schema:
          type: integer
          example: 2
    get:
      tags:
        - TV EPISODES
      summary: Account States
      description: >-
        This endpoint get the rating, watchlist and favourite status of a TV
        episode.
      operationId: accountStates2
      parameters:
        - name: session_id
          in: query
          schema:
            type: string
        - name: guest_session_id
          in: query
          schema:
            type: string
      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: Thu, 02 Jan 2025 08:10:31 GMT
            ETag:
              schema:
                type: string
                example: W/"729d4dc9ac2e40dd823f1b038b3151e7"
            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 db0227634f5a6631ffed23eb54e5313e.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: taO2AEDKeBrnjikmMusYQL4IRX0OL69CTB4UY3Hl9qL0qEoUMsiJpg==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: LOS50-P2
            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: aff12d30a5f6e36288b53c6a49a15ac8
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                    example: 65906
                  rated:
                    type: boolean
                    example: false
              examples:
                Account States:
                  value:
                    id: 65906
                    rated: false
components:
  parameters:
    SeriesID:
      name: series_id
      description: a uniques identifier for a tv serie
      in: path
      required: true
      schema:
        type: integer
      examples:
        example1:
          value: 122
        example2:
          value: 123
        example3:
          value: 110381
        example4:
          value: 1433
        example5:
          value: 93405
        example6:
          value: 1399
        example7:
          value: 84007
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````