Soporte de 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 respuestas (en la página 1 de 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!

¿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 discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
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