cURL
curl --request POST \ --url 'https://api.themoviedb.org/3/account/{{account_id}}/favorite' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "favorite": true, "media_id": 2734, "media_type": "tv" } '
{ "status_code": 1, "status_message": "Success.", "success": true }
This endpoint allows you to add a movie or TV show as a favorite.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
This represents your account ID. Get it here
This represents your session Id. Get it here
This specifies if the movie or TV show should be added to your favorite.
true
This represents the media ID. Get it here
2734
This represents the media type. E.g., movie or Tv
"tv"
Add Favorite
1
"Success."