Hello there! I am trying to get the details for all the different genres and their associated id's for my application but the couple of requests that I have done have returned null for all the fields. I tried it on the API Reference as well and am getting the same results. Is there something I am missing? (kept my api_key out of this code segment)
import requests
url = "https://api.themoviedb.org/3/genre/movie/list?language=en"
headers = {
"accept": "application/json",
"Authorization": "Bearer MY_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.text)
{
"genres": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
}
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 16 novembre 2023 à 21h14
See my reply here: https://www.themoviedb.org/talk/6556ab3ab5400214d82be7c9#6556cc63d4fe0400e1b3d1a9
Réponse de dfishbein
le 16 novembre 2023 à 23h22
Oh good thank you for that!