The Movie Database atbalsts

When I set with_watch_monetization_types free|ads|flatrate I get movies that needs to rented. I tested on viaplay. The movie Juror #2. When searching for the movie on tmdb I can se that it is only available for rent in Sweden.

When I run https://api.themoviedb.org/3/movie/1106739/watch/providers with the movie id of Juror #2, I get that only max has the movie for flatrate.

Do you guys know what is the problem? It has to be bug right?

Happy day from Sebastian

2 replies (on page 1 of 1)

Jump to last post

@Juggernogger93 said:
Don't think discovery with with_watch_monetization_types works
When I set with_watch_monetization_types free|ads|flatrate I get movies that needs to rented.
I tested on viaplay. The movie Juror #2.
When searching for the movie on tmdb I can se that it is only available for rent in Sweden.
When I run https://api.themoviedb.org/3/movie/1106739/watch/providers with the movie id of Juror #2,
I get that only max has the movie for flatrate.
Do you guys know what is the problem? It has to be bug right?
Happy day from Sebastian

It makes things much easier if you post your API Request here.

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

Are you using it together with the watch_region filter?
If you are not using it, you should. It is a necessary condition.
See the explanation in the DOCs.
https://developer.themoviedb.org/reference/discover-movie

with_watch_monetization_types  -  string  
possible values are: [flatrate, free, ads, rent, buy]   
use in conjunction with watch_region,   
can be a comma (AND) or pipe (OR) separated query

This data here on TMDb is obtained daily from the JustWatch service.
I don't know if Viaplay is on JustWatch.
You can check it out yourself.
https://www.justwatch.com/
https://www.justwatch.com/dk/provider/viaplay

It was likely just not available in the cache when you made your request. There is always going to be a ~24 hour delay. Testing now, you can see Viaplay is being returned:

Request

curl -v "https://api.themoviedb.org/3/movie/1106739/watch/providers?api_key=###"

> GET /3/movie/1106739/watch/providers?api_key=### HTTP/2
> Host: api.themoviedb.org
> User-Agent: curl/8.11.1
> Accept: */*
>
* Request completely sent off
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/2 200
< content-type: application/json;charset=utf-8
< content-length: 51704
< date: Fri, 31 Jan 2025 18:47:32 GMT
< server: openresty
< cache-control: public, max-age=17609
< x-memc: HIT
< x-memc-key: f23b115a930b8a0a8d018054f5b9fe7c
< x-memc-age: 5154
< x-memc-expires: 17609
< etag: W/"49764c9ea2a701175da65de0d27c79d5"
< vary: Accept-Encoding,accept-encoding
< x-cache: Miss from cloudfront
< via: 1.1 e76eba87ee47517dc7f2053edfb921bc.cloudfront.net (CloudFront)
< x-amz-cf-pop: SEA900-P5
< alt-svc: h3=":443"; ma=86400
< x-amz-cf-id: jissE1S0daXVHW17s3kRiBje8_C4jRWSSa-_Fmoc3NRsDtqlxyxA2w==
< vary: Origin
<
* Connection #0 to host api.themoviedb.org left intact

Response (truncated)

{
  "id": 1106739,
  "results": {
    ...
    "SE": {
      "link": "https://www.themoviedb.org/movie/1106739-juror-2/watch?locale=SE",
      "buy": [
        {
          "logo_path": "/9ghgSC0MA082EL6HLCW3GalykFD.jpg",
          "provider_id": 2,
          "provider_name": "Apple TV",
          "display_priority": 4
        },
        {
          "logo_path": "/bnoTnLzz2MAhK3Yc6P9KXe5drIz.jpg",
          "provider_id": 76,
          "provider_name": "Viaplay",
          "display_priority": 6
        },
        {
          "logo_path": "/5vfrJQgNe9UnHVgVNAwZTy0Jo9o.jpg",
          "provider_id": 68,
          "provider_name": "Microsoft Store",
          "display_priority": 8
        },
        {
          "logo_path": "/8z7rC8uIDaTM91X0ZfkRf04ydj2.jpg",
          "provider_id": 3,
          "provider_name": "Google Play Movies",
          "display_priority": 9
        },
        {
          "logo_path": "/bZvc9dXrXNly7cA0V4D9pR8yJwm.jpg",
          "provider_id": 35,
          "provider_name": "Rakuten TV",
          "display_priority": 15
        },
        {
          "logo_path": "/sNmIwrniZZORvNJOmEuWGhwBJNf.jpg",
          "provider_id": 426,
          "provider_name": "SF Anytime",
          "display_priority": 17
        },
        {
          "logo_path": "/seGSXajazLMCKGB5hnRCidtjay1.jpg",
          "provider_id": 10,
          "provider_name": "Amazon Video",
          "display_priority": 41
        }
      ],
      "flatrate": [
        {
          "logo_path": "/fksCUZ9QDWZMUwL2LgMtLckROUN.jpg",
          "provider_id": 1899,
          "provider_name": "Max",
          "display_priority": 46
        }
      ],
      "rent": [
        {
          "logo_path": "/9ghgSC0MA082EL6HLCW3GalykFD.jpg",
          "provider_id": 2,
          "provider_name": "Apple TV",
          "display_priority": 4
        },
        {
          "logo_path": "/bnoTnLzz2MAhK3Yc6P9KXe5drIz.jpg",
          "provider_id": 76,
          "provider_name": "Viaplay",
          "display_priority": 6
        },
        {
          "logo_path": "/8z7rC8uIDaTM91X0ZfkRf04ydj2.jpg",
          "provider_id": 3,
          "provider_name": "Google Play Movies",
          "display_priority": 9
        },
        {
          "logo_path": "/bZvc9dXrXNly7cA0V4D9pR8yJwm.jpg",
          "provider_id": 35,
          "provider_name": "Rakuten TV",
          "display_priority": 15
        },
        {
          "logo_path": "/sNmIwrniZZORvNJOmEuWGhwBJNf.jpg",
          "provider_id": 426,
          "provider_name": "SF Anytime",
          "display_priority": 17
        },
        {
          "logo_path": "/seGSXajazLMCKGB5hnRCidtjay1.jpg",
          "provider_id": 10,
          "provider_name": "Amazon Video",
          "display_priority": 41
        }
      ]
    },
    ...
  }
}

Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.

Vispārējs

s fokusēties uz meklēšanas joslu
p atvērt profila izvēlni
esc aizvērt atvērtu logu
? atvērt īsinājumtaustiņu logu

Informācijas nesēju lapās

b atgriezties (vai pie vecākiem, ja nepieciešams)
e doties uz labošanas lapu

TV sezonas lapās

(labā bultiņa) pāriet uz nākamo sezonu
(kreisā bultiņa) pāriet uz iepriekšējo sezonu

TV sērijas lapās

(labā bultiņa) pāriet uz nākamo sēriju
(kreisā bultiņa) pāriet uz iepriekšējo sēriju

Visās attēlu lapās

a atvērt attēla pievienošanas logu

Visās labošanas lapās

t atvērt tulkošanas atlasītāju
ctrl+ s iesniegt veidlapu

Diskusiju lapās

n radīt jaunu diskusiju
w pārslēgt skatīšanās stāvokli
p pārslēgt publisko/privāto
c pārslēgt aizvērt/atvērt
a atklāta darbība
r atbilde uz diskusiju
l doties uz pēdējo atbildi
ctrl+ enter iesniegt savu ziņojumu
(labā bultiņa) nākamajā lapā
(kreisā bultiņa) iepriekšējā lapa

Iestatījumi

Vēlies novērtēt šo vienumu vai pievienot to sarakstam?

Pieteikties