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
]
}
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Atbilde no Travis Bell
on novembris 16, 2023 at 9:14 PM
See my reply here: https://www.themoviedb.org/talk/6556ab3ab5400214d82be7c9#6556cc63d4fe0400e1b3d1a9
Atbilde no dfishbein
on novembris 16, 2023 at 11:22 PM
Oh good thank you for that!