The Movie Database Support

hey, i'm facing a weird issue with the account_states endpoint

sending a request with the api key returns 401, Authentication failed: You do not have permissions to access the service. the api key and session id are both correct. sending a request with the access token returns a success code, but when using "guest_session_id" in params, it doesn't return the states of the guest session. instead, it returns the states of my user account (the account whose access token is being used).

example:

curl --request GET --url "https://api.themoviedb.org/3/movie/533535/account_states?guest_session_id=xxx&api_key=xxx" --header "accept: application/json"

returns:

{
    "success": false,
    "status_code": 3,
    "status_message": "Authentication failed: You do not have permissions to access the service."
}

and

curl --request GET --url "https://api.themoviedb.org/3/movie/533535/account_states?guest_session_id=xxx" --header "Authorization: Bearer xxx" --header "accept: application/json"

returns:

{
  "id": 533535,
  "favorite": false,
  "rated": false,
  "watchlist": true
}

which are the states for my own account, not the guest session.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

లాగిన్