I'm trying to create a search functionality using Search Movie API using this URL:
https://api.themoviedb.org/3/search/movie?api_key=***?query=superman
However, this is returned:
{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}
But I've been using other TMDB APIs with this exact same API key and they work without problems
Am I doing anything wrong?
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة superboy97
بتاريخ سبتمبر 28, 2023 في 1:10 مساءا
Yes, the separator between the api_key and the query is wrong. It should be an ampersand, not a question mark.
This is a web stanfard. The question mark introduce the parameters list and the ampersand separate each parameter.
رد بواسطة iceyisaak
بتاريخ سبتمبر 28, 2023 في 1:53 مساءا
Thank you so much!