Supporto The Movie Database

I am creating a website to display movies and TV shows. I am using a fetch to https://api.themoviedb.org/3/search/multi.

This returns both movies and TV shows. I have created a detail page to view more information about the movie or TV show, which uses its ID. The problem is, I don't know whether it's a movie or a TV show to differentiate it.

Example: The TV show 'Gen V' has an ID: 205715.

But there is also a movie called 'To Die For'. Is there any information I can use within the fetch to distinguish whether it's a movie or a TV show?

Thank you, and please excuse my ignorance.

3 risposte (nella pagina 1 di 1)

Jump to last post

@BartHxC said:
Difference between Movie ID and TV Show ID
I am creating a website to display movies and TV shows. I am using a fetch to https://api.themoviedb.org/3/search/multi.
This returns both movies and TV shows.
I have created a detail page to view more information about the movie or TV show, which uses its ID.
The problem is, I don't know whether it's a movie or a TV show to differentiate it.
Example: The TV show 'Gen V' has an ID: 205715.
But there is also a movie called 'To Die For'.
Is there any information I can use within the fetch to distinguish whether it's a movie or a TV show?
Thank you, and please excuse my ignorance.

In the data for each item in the response you will find information about the type of each item.

"media_type": "movie",
"media_type": "tv",
"media_type": "person",

Thank you very much! It now works correctly! One question, are the movies and series that contain "adult" XXX movies? I would like to check that information so that no one can consume data from those types of applications on my website.

@BartHxC said:

Thank you very much! It now works correctly!
One question, are the movies and series that contain "adult" XXX movies?
I would like to check that information so that no one can consume data from those types of applications on my website.

Yes. Adults are porn films.

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