Hello!
So here is what I am working with:
https://api.themoviedb.org/3/discover/movie?api_key=xxxxxxx=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&primary_release_year=2020&with_release_type=3%2C4
The goal is to get all movies in 2020, that have both been released in theaters and is already on digital.
Putting with_release_type=3,4 though doesn’t seem to do the trick, as it is still pulling movies that have only been released to theaters.
Am I doing this wrong, or can someone give me some more insight on this?
Edit: After talking with a friend who is much more experienced with this API then I am, it appears the comma is being treated as a pipe.
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por ticao2 🇧🇷 pt-BR
el 13 de febrero de 2020 a las 04:06
In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [THE_KEY].
EDIT: The way you entered your request, it was invisible.
I fixed your post and maybe someone will be able to help you.
Contestado por Demonseeed
el 13 de febrero de 2020 a las 09:34
Sorry about that! It was my first time using the code block in this website. 😅
Either way, I appreciate that!
Contestado por Travis Bell
el 13 de febrero de 2020 a las 13:17
There's two important things to mention:
First, you can't use
primary_release_year
withwith_release_type
. In order to usewith_release_type
you need to use eitherrelease_date
orregion
.So something like this:
Second, the
with_release_type
doesn't actually support anAND
query right now, it's hardcoded in the backend as anOR
. I just created a ticket for this here, and will try to take a look at it today since it's a very simple thing to add.Contestado por Demonseeed
el 13 de febrero de 2020 a las 14:43
Thank you for the response Travis! I will keep that in mind about primary release year 👌
Also thank you for adding that in!