Hi folks,
I've been trying to troubleshoot an issue where any movie search will return a 404 / "Invalid id: The pre-requisite id is invalid or not found." message.
The request I have been trying is this:
curl --include --header "Accept: application/json" http://api.themoviedb.org/3/search/movie?api_key=XXX&query=Gladiator
My API key seems to be valid as I can retrieve info about a movie if I have its ID through
curl --include --header "Accept: application/json" http://api.themoviedb.org/3/movie/98?api_key=XXX
and as far as I can tell my syntax is correct as well, so I really have no clue to what the issue could be.
Any ideas?
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 24 août 2014 à 10h32
I believe this is just a cURL syntax issue. Try this (with quotes):
Cheers.
Réponse de jplrssn
le 24 août 2014 à 15h19
That solved it.
Putting quotes around it should probably have been my first reaction, but I guess I didn't see the forest for the trees.
Thanks a lot!