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
]
}
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on November 16, 2023 at 9:14 PM
See my reply here: https://www.themoviedb.org/talk/6556ab3ab5400214d82be7c9#6556cc63d4fe0400e1b3d1a9
Reply by dfishbein
on November 16, 2023 at 11:22 PM
Oh good thank you for that!