Soporte de The Movie Database

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 respuestas (en la página 1 de 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
        }
      ]
    },
    ...
  }
}

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión