دعم الموقع

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 ردود (على هذه الصفحة 1 من 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
        }
      ]
    },
    ...
  }
}

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول