Sprijin Bază de date filme (The Movie Database)

https://api.themoviedb.org/3/discover/movie?region=US&primary_release_date.gte=2020-05-28&primary_release_date.lte=2020-05-28&include_adult=false&include_video=false&with_release_type=2|3&sort_by=popularity.desc&api_key=xxx

3 movies returned, 2 of them have a release date of 2020-05-28, as specified in the "primary_release_date.gte" and "primary_release_date.lte" params, but there is a 3rd movie included which has a release date in the future:

The SpongeBob Movie: Sponge on the Run ID: 400160 Release date: 2020-08-07

Any ideas why? ps, thanks for providing this awesome API :)

7 răspunsuri (pe pagină 1 din 1)

Jump to last post

One of the release dates of the film is this:

Ucrânia - 28/05/2020 Cinema

See here
https://www.themoviedb.org/movie/400160-the-spongebob-movie-sponge-on-the-run/edit?active_nav_item=release_information

In other words, Ukraine in 2020-05-28.
And it is this date that is being considered the World Release Date or Primary Release Date.

Interesting... I thought that by providing the "region" parameter, I would only get movies released in the US on the specified date?

Is there any way to achieve that? (only get movies released in the US on the specified date)

Thanks again

I think so.
If you don't use Primary Release Date.
If you use only Release Date I believe that you will only receive the date of the Region that you specified in the API Request.

@sammydigits said:

Interesting... I thought that by providing the "region" parameter, I would only get movies released in the US on the specified date?

You can't really mix primary and non primary requests. Using primary will negate any region query you're doing because there's no such thing as a "primary release per country". It's a single, per media date. Regular release date queries on the other hand, you're good to go. See below.

Is there any way to achieve that? (only get movies released in the US on the specified date)

Yes, something like this should do:

https://api.themoviedb.org/3/discover/movie?region=US&release_date.gte=2020-05-28&release_date.lte=2020-05-28&include_adult=false&include_video=false&with_release_type=2%7C3&sort_by=popularity.desc&api_key=xxx

Thank you both, switching to "release_date" certainly seemed to solve the issue.

Can you also please confirm the difference between the "limited theatrical release date" vs "theatrical date" as mentioned here in the docs:

"Specifying "2|3" would return the limited theatrical release date as opposed to "3|2" which would return the theatrical date."

Ideally I want a list of movies which are available on general nationwide release in theaters for today's date, so presumably "3|2" would be my best option?

Specifying 2 will always include the limited releases, so if you only want to include wide (nationwide) releases, you should only specify 3. If you specify both, the difference is which release it will show if both exist. 3|2 would default to wide release, while 2|3 would default to limited.

Perfect, nationwide is what I need. Thank you very much for providing this awesome API Travis!

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Global

s focalizați bara de căutare
p deschideți meniul profilului
esc închide o fereastră deschisă
? deschideți fereastra de scurtături de la tastatură

Pe paginile media

b înapoi (sau la pornire atunci când este cazul)
e accesați pagina de editare

Pe paginile sezonului TV

(săgeată dreapta) mergeți la sezonul următor
(săgeată stânga) mergeți la sezonul precedent

Pe paginile episoadelor TV

(săgeată dreapta) mergeți la următorul episod
(săgeată stânga) mergeți la episodul anterior

Pe toate paginile de imagini

a deschideți fereastra pentru adăugarea imaginii

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimiteți formularul

Pe paginile de discuții

n creați o nouă discuție
w comutați stare de vizionare
p comutați public/privat
c comutați închidere/deschidere
a deschide activitatea
r răspuns la discuție
l mergeți la ultimul răspuns
ctrl+ enter trimiteți mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina anterioară

Setări

Doriți să evaluați sau să adăugați acest element într-o listă?

Autentificare