I already have an API key, but the application was set to Nextcloud with the URL, but I also need to use the API key in a BASH script I am using to build a PDF document of all my favourite movies. (Easier to page through a file than scroll through pages and pages of thumbnails - I am willing to share the git URL for anyone who may want to have such a script).
I kept getting a success of false. So I tried resetting the API key and removing the app name and URL.
I type:
$ curl --request GET --url 'https://api.themoviedb.org/3/movie/11?apikey=supersecretapikey'
But I still get the same JSON output...
{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}
What am I doing wrong?
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 June 27, 2023 at 9:08 AM
Hi @thisiszeev,
The name of API key param is
api_key
, notapikey
.See the docs for more info: https://developer.themoviedb.org/docs/authentication-application
Reply by thisiszeev
on June 27, 2023 at 9:52 AM
I could kick myself in the teeth... let me try that
Reply by thisiszeev
on June 27, 2023 at 9:53 AM
Yep, that fix it
T