Axuda de The Movie Database

Hello,

I'm using "moviedb-promise": "^3.4.1", for integrating with TMDB API using Node.js. The popular movies as returned by the API seems to match what's shown on the TMDB website but the results are different for Popular TV Shows.

Following is the code for fetching the Popular Movies

export const getPopularMovies = async () => {
  const obj = await TMDB.moviePopular();
  return obj;
};

And below is the code for fetching the Popular TV Shows:

export const getPopularTvShows = async () => {
  const obj = await TMDB.tvPopular();
  return obj;
}

Not able to figure out why are the results different and what can I do to match the Popular TV shows as shows as shown on the TMDB Website.

Thanks in advance!

1 resposta (na páxina 1 de 1)

Jump to last post

@bingrteam said:
Popular TV Shows are different from API response as compared on the Popular TV Shows on TMDB Website.
Hello,
I'm using "moviedb-promise": "^3.4.1", for integrating with TMDB API using Node.js.
The popular movies as returned by the API seems to match what's shown on the TMDB website but the results are different for Popular TV Shows.
Following is the code for ...
Not able to figure out why are the results different and what can I do to match the Popular TV shows as shows as shown on the TMDB Website.
Thanks in advance!

Read this description about these API Requests.
https://developer.themoviedb.org/docs/popularity-and-trending

If I understand correctly it will not be the same answer, the same as the website.
I highlight this part:

There is no API to explore this data right now but it is something that would be a lot fun to dig into.
The daily file exports do however, contain the popularity data so there is a record of the values starting on April 28, 2017.

Daily ID Exports
https://developer.themoviedb.org/docs/daily-id-exports

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión