Soporte de The Movie Database

Case Filter with: release_date_gte: 2020-01-01 release_date_lte: 2024-12-31 with_watch_provider: 8|9|10 sort_by: vote_count.desc

Expected: Only film in the range of date sorted with vote_count_desc

Effective Output: FIlm sorted with vote_count_desc before release_date_gte

It's my fault?

4 respuestas (en la página 1 de 1)

Jump to last post

Hi @sourheart,

First off, the filters are release_date.gte and release_date.lte.

And if you're using these filters, you'll want to make sure to use a region filter as well, unless you're meaning to query all release dates worldwide. If that's not what you want, I would suggest switching to primary_release_date.gte and/or primary_release_date.lte.

But more importantly, I'll need to see the full HTTP request you're making before I can tell you anything for certain.

Hi @travisbell

This is the curl

curl --request GET \
     --url 'https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&release_date.gte=2021-01-01&release_date.lte=2023-12-31&sort_by=primary_release_date.asc&with_genres=27&with_watch_providers=8%7C9%7C10' \
     --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhMzg2MDE5ZTM0NDUwNGE5ZTAwMTg4Mzk3YWQ3OGNlMyIsInN1YiI6IjY1ZGM5YThhMDNiZjg0MDE4NGFmZTNmNCIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.XF71Pcl__4rX8xr5KMzug5gvhnDzuMq5HhxCX5YtbLU' \
     --header 'accept: application/json'

As you can see the first result is:

{
      "adult": false,
      "backdrop_path": "/tQRHrssevbysfmDG9FbA86qesCH.jpg",
      "genre_ids": [
        27,
        878,
        18
      ],
      "id": 3016,
      "original_language": "en",
      "original_title": "Dr. Jekyll and Mr. Hyde",
      "overview": "A doctor's research into the roots of evil turns him into a hideous depraved fiend.",
      "popularity": 7.498,
      "poster_path": "/u8OL0RbTNzqqB1WmkxroTBXohnv.jpg",
      "release_date": "1920-03-18",
      "title": "Dr. Jekyll and Mr. Hyde",
      "video": false,
      "vote_average": 6.769,
      "vote_count": 130
    }

Right, you have sort_by=primary_release_date.asc but are filtering by release_date.xxx. As I mentioned above, you should change that.

https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&primary_release_date.gte=2021-01-01&primary_release_date.lte=2023-12-31&sort_by=primary_release_date.asc&with_genres=27&with_watch_providers=8|9|10

Ok, perfect with this change it works, thanks!

A little feedback: I've seen a bit of the movie API for the "recommended" feature, it would be even more useful if you could also select the primary_release_date range there too

¿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