Assistance de TMDB

Hi all,

I have been using the TMDB API (which is great by the way) for a few days/weeks. Everything has been going great : I managed to collect production year, director, cast, genre, duration... for most movies The thing is, when I try this same method on some TV shows I get an error 404. I've been trying to solve this for hours now and I am stuck. I am trying to get info from this : https://www.imdb.com/title/tt0337539/?ref_=ttrel_ov And here is my API request : https://api.themoviedb.org/3/tv/tt0337539?api_key=MYAPIKEY

Does anyone understand why I get this error 404 ?

On another note, I am trying to collect Awards and age rating. Is that something available in the API ? I couldn't find it.

Thanks !

Charlie

6 réponses (sur la page 1 sur 1)

Jump to last post

You need to use the TMDB Id of the series. not the IMDB Id.

We don't have awards data. Age ratings are available using this call for TV series and this one for movies.

Thanks for your reply ! You are saying that I can use the IMDB ID for movies but not for series ? That's a bit strange. But now, how do I get the TMDB ID of the series from the imdb URL ? Up until now all of my API calls are based off of the imdb URLs from which I extract the imdb ID. Shame for the awards data. For the age ratings, I am not sure I understand. I just tested it now and I get this :

{"id":40719,"results":[{"iso_3166_1":"DE","release_dates":[{"certification":"12","descriptors":[],"iso_639_1":"","note":"","release_date":"1950-08-24T00:00:00.000Z","type":3}]},{"iso_3166_1":"US","release_dates":[{"certification":"NR","descriptors":[],"iso_639_1":"","note":"","release_date":"1943-12-06T00:00:00.000Z","type":3}]}]}

Using this API request : https://api.themoviedb.org/3/movie/tt0036038/release_dates?api_key=MyAPI The "12" certification means CSA rating of 12+ ?

@nolispe said:

You are saying that I can use the IMDB ID for movies but not for series ? That's a bit strange. But now, how do I get the TMDB ID of the series from the imdb URL ? Up until now all of my API calls are based off of the imdb URLs from which I extract the imdb ID.

You should normally always use the TMDB Id. The fact the the IMDB Id is directly working for movies is only a remainder of an old API version and is not documented. Nothing guarantee that this will always work.

For the age ratings, I am not sure I understand. I just tested it now and I get this :

{"id":40719,"results":[{"iso_3166_1":"DE","release_dates":[{"certification":"12","descriptors":[],"iso_639_1":"","note":"","release_date":"1950-08-24T00:00:00.000Z","type":3}]},{"iso_3166_1":"US","release_dates":[{"certification":"NR","descriptors":[],"iso_639_1":"","note":"","release_date":"1943-12-06T00:00:00.000Z","type":3}]}]}

Using this API request : https://api.themoviedb.org/3/movie/tt0036038/release_dates?api_key=MyAPI The "12" certification means CSA rating of 12+ ?

This is a per country and release date value. For this movie, we only have release data for Germany and United States. The certification "12" is part of the German data. That mean that it was released for 12 and plus in Germany. We don't have data for France for this movie.

Ok I understand thanks ! One question remains though : how to get TMDB Id from an IMDB movie or TV show ?

@nolispe said:

Ok I understand thanks ! One question remains though : how to get TMDB Id from an IMDB movie or TV show ?

The simple method is to directly use the TMDB website instead of the IMDB website. I don't understant why you start from IMDB.

Because the imdb website is waaaaay more used and known than the TMDB website. My clients are used to inserting IMDB links of their movies in their database. It was very convenient for me to simply get that link, that ID and then use the TMDB API to get all of the information. Now I will have to ask my clients to search for the movie or TV show on another website they don't know. Plus some movies or TV show might exist in IMDB but not in TMDB. But I guess there is no way around it.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion