Supporto The Movie Database

the discover movie API returns with different response body every day, some values are optionals and sometimes comes without being optionals so the response fails to be parsed in my data model

3 risposte (nella pagina 1 di 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 [THE_KEY] , or something like that.

For example, if you are using the parameter & sort_by = popularity.desc,
the answer may be different because the popularity changes every day.
For this and other reasons it is necessary to see your API Request.

So, this is the reason.
Popularity changes all the time.
If I'm not mistaken, it is calculated based on:

  • Amount of access to the website page
  • Number of accesses by API
  • Quantity of inclusion in Lists
  • Number of votes
  • Average votes
  • Etc... Etc... Etc...

Alias, see the first row of Posters on the TMDb homepage.
It is the Most Popular row.
Every time I update, the order changes.

some values are optionals and sometimes comes without being optionals

What I didn't understand is what you mean by Optional Values.
What Values are you talking about?
In the answer, all the films have the same items.
An item may be blank because no user has added the data.

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi