Soporte de The Movie Database

hi

I want to get all the TV shows info.

Then if i do http://api.themoviedb.org/3/discover/tv?api_key=mykey. I can see "total_pages": 3093, "total_results": 61856

But there is a max page limit 1000, which means i can not get page further than 1000.

But if i do filter by air_date:

http://api.themoviedb.org/3/discover/tv?api_key=mykey&first_air_date.lte=2000-01-01

I get: "total_pages": 375, "total_results": 7487

and

http://api.themoviedb.org/3/discover/tv?api_key=mykey&first_air_date.gte=2000-01-01 i get: "total_pages": 802, "total_results": 16021

7487+16021 = 23508

The total numbers are not even close.

So how can i get all of these IDs?

Thanks.

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

Jump to last post

Hi bennyae,

If you would like to bring down all of the data, you would be best to iterate though the ids instead. Start ad id 1 and run all the way up to the latest id found in /tv/latest. Discover isn't designed for this task.

Hi Travis, this link is not deprecated. We would like to bring down all the TV data but would like to know how many records there are an the /tv/latest is deprecated. Can you tell me how else we can do this. Thank you.

@swagle The new link to /tv/latest is here.

A lot of has changed since 2015, if you are wanting to get all of the valid TV ids, you're better off using the newer daily ID exports. You can read about this here.

I there a way where we can limit the list size per page?

Hi @Purshotham, no, all of our page sizes are locked at 20 items.

¿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