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
]
}
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ نوفمبر 16, 2023 في 9:14 مساءا
See my reply here: https://www.themoviedb.org/talk/6556ab3ab5400214d82be7c9#6556cc63d4fe0400e1b3d1a9
رد بواسطة dfishbein
بتاريخ نوفمبر 16, 2023 في 11:22 مساءا
Oh good thank you for that!