Soporte de The Movie Database

running query to get popular and top rated tv shows, but episode runtime, # episodes, and # seasons are all null on both these lists. Am I pulling wrong or is the correct? I am using laravel and this package to query the api https://github.com/php-tmdb/api

here is a screen shot of my result https://snag.gy/wpHfMe.jpg

Thanks,

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

Jump to last post

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 [MY_KEY].

I did a test.
https://api.themoviedb.org/3/tv/100?api_key=[MY_KEY]&language=en-US
The two fields are there.
number_of_episodes 6 and number_of_seasons 1
See the result.

backdrop_path   "/o8Site0BMZ8xhknKJ0m52iLfqHg.jpg"
created_by  []
episode_run_time    […]
first_air_date  "2004-05-10"
genres  […]
homepage    ""
id  100
in_production   false
languages   […]
last_air_date   "2004-06-14"
last_episode_to_air {…}
name    "I Am Not an Animal"
next_episode_to_air null
networks    […]
number_of_episodes  6
number_of_seasons   1
origin_country  […]
original_language   "en"
original_name   "I Am Not an Animal"
overview    "I Am Not An Animal is an…nimal rights activists."
popularity  8.185
poster_path "/nMhv6jG5dtLdW7rgguYWvpbk0YN.jpg"
production_companies    […]

Ah I think I see. With the popular method you don't get those details back in the response but the laravel object has those properties so it was confusing me. When I run a test with just the details for a particular TV show I can see all the details I need. Thanks

¿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