The Movie Database Support Forum

from urllib.request import urlopen, Request
    headers = {"Accept": "application/json"}
    request = Request("http://themoviedb.apiary.io/3/search/movie?api_key=###&query=juno", headers=headers)
    response_body = urlopen(request).read()
    print(response_body)

I get a 403 error when I try to run this. Can someone help me figure out why? I am putting my api key in.

1 Antwort (Seite 1 von 1)

Jump to last post

Hi Squanto1357,

I would try switching over to the production end point:

https://api.themoviedb.org/3/search/movie?api_key=###&query=juno

If you want to use Apiary, you have to make sure to use the private URL they give you. It's unique per Apiary account. Apiary is just a testing tool though, if you don't need it, switch to the production end point.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden