The Movie Database-ondersteuning

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?

2 antwoorden (op pagina 1 van 1)

Jump to last post

I believe this is just a cURL syntax issue. Try this (with quotes):

curl --include --header "Accept: application/json" 'http://api.themoviedb.org/3/search/movie?api_key=XXX&query=Gladiator'

Cheers.

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!

Film of tv-serie niet gevonden? Log dan in om deze te creëren.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op TV seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met TV-programma's

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c gesloten of open
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen