Υποστήριξη για το The Movie Database

Hey all,

I’ve been trying to use the /discover/movies API to find the highest-rated movies on different platforms. I’ve noticed that the with_watch_providers argument doesn’t seem to be working. I get the same results whether I include it or not.

Also, when I specify a provider like Netflix (ID 8), I still see movies that aren’t available on Netflix. Has anyone else run into this issue?

I've also tried mimicing the parameters send by www.themoviedb.org/movie to their backend. I would expect that I get the same results, but that doesn't seem to be the case, I get the same results, without a provider applied though.

Can anyone verify if this also happens to them?

6 απαντήσεις(στη σελίδα 1 από 1)

Jump to last post

Yeah, it's not working for me either.

I'm quite new to this community, is there anywhere that I can report this bug?

@liquidixen said:
with_watch_providers not working for /discover/movie
I'm quite new to this community, is there anywhere that I can report this bug?

It's right here.

I’ve been trying to use the /discover/movies API to find the highest-rated movies on different platforms.
I’ve noticed that the with_watch_providers argument doesn’t seem to be working.
I get the same results whether I include it or not.

Also, when I specify a provider like Netflix (ID 8), I still see movies that aren’t available on Netflix.
Has anyone else run into this issue?

I've also tried mimicing the parameters send by www.themoviedb.org/movie to their backend.
I would expect that I get the same results, but that doesn't seem to be the case, I get the same results, without a provider applied though.
Can anyone verify if this also happens to them?

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?
With only 1 country or with several?
See the explanation in the DOCs.
https://developer.themoviedb.org/reference/discover-movie

with_watch_providers  -  string  
use in conjunction with watch_region, can be a comma (AND) or pipe (OR) separated query

Thanks for the info, I did try it in conjunction with watch_region, just to try it out, but it did not result in a different response.

Below the API request in it's most basic form, copied (and tested) from the curl request in the docs.

curl --request GET \
     --url 'https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=vote_average.desc&with_watch_providers=8' \
     --header 'Authorization: Bearer MY_KEY' \
     --header 'accept: application/json'

As you can see, this request just queries for the highest voted movies from Netflix (provider ID 8).

Here my first and second result as returned from the API request:

  1. "The History of Allanson Street Primary School"
  2. "SHE/HER"

Whilst according to the website, for Netflix, it should be:

  1. "NAFSI (Monachopsis)"
  2. "Kampon"

With no provider ID it would, according to the website, indeed be:

  1. "The History of Allanson Street Primary School"
  2. "SHE/HER"

I've tried multiple providers, but it always returns the same result. Thus it appears to me that the with_watch_providers query parameter is not correctly handled by the endpoint.

If you'd like me to do more testing, let me know what you expect and I'd gladly do that for you.

As @ticao2 pointed out, watch_region is required to use with_watch_providers, as the documentation states.

Here's two different calls, with two different sets of results:

US Netflix (4275 results):

https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=vote_average.desc&with_watch_providers=8&watch_region=US
{
  "page": 1,
  "results": [
    ...
  ],
  "total_pages": 214,
  "total_results": 4275
}

Canadian Netflix (4677 results):

https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=vote_average.desc&with_watch_providers=8&watch_region=CA
{
  "page": 1,
  "results": [
    ...
  ],
  "total_pages": 234,
  "total_results": 4677
}

@travisbell said:

As @ticao2 pointed out, watch_region is required to use with_watch_providers, as the documentation states.

Here's two different calls, with two different sets of results:

US Netflix (4275 results):

https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=vote_average.desc&with_watch_providers=8&watch_region=US
{
  "page": 1,
  "results": [
    ...
  ],
  "total_pages": 214,
  "total_results": 4275
}

Canadian Netflix (4677 results):

https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=vote_average.desc&with_watch_providers=8&watch_region=CA
{
  "page": 1,
  "results": [
    ...
  ],
  "total_pages": 234,
  "total_results": 4677
}

Hi, you are correct, I interpreted the documentation as "can be used in conjunction with "watch_region". In my tests I seem to have mistakenly used "certification_country" instead of "watch_region". It does seem te be functioning correctly when using "watch_region". Thank you for your help and my deepest appologies for wasting your time.

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση