I have created my own API key but when i try to use it it gives the error code 7 : "{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}" I have tried to regenerate the key and it didnt work also. Note that the access token is working so I need help even if there is a way to use the token instead of the key so I can access the data
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 robbie3999
on September 13, 2023 at 5:07 PM
Hi @Tonsy, to get any help you need to give us the api URL you are trying to use that generates the error. Hide your private api key with a string like "API_KEY" or "xxxxxx".
Reply by Tonsy
on September 13, 2023 at 5:10 PM
https://api.themoviedb.org/3/movie/top_rated?language=en-US&page=1?api_key=XXXXXXX
Reply by robbie3999
on September 13, 2023 at 5:18 PM
After the first "?" all parameters must be separated by "&". So the query should be:
https://api.themoviedb.org/3/movie/top_rated?language=en-US&page=1&api_key=XXXXXXX