The Movie Database Support Forum

Hello, how is it possible to send a request for a movie to the APi?

I found this, but where is the part where i can add the name i am looking for?

Example: SampleName -> Where have i to add this at the api?

var request = System.Net.WebRequest.Create("http://private-d576-themoviedb.apiary.io/3/movie/{id}") as System.Net.HttpWebRequest;
    request.Method = "GET";
                request.Accept = ""application/json"";
              request.ContentLength = 0;
string responseContent;
using (var response = request.GetResponse() as System.Net.HttpWebResponse) {
  using (var reader = new System.IO.StreamReader(response.GetResponseStream())) {
    responseContent = reader.ReadToEnd();
  }
}

3 Antworten (Seite 1 von 1)

Jump to last post

A few things…

For title based searching, you're going to want to use the search endpoints. You can use the ?query parameter to do that. You'll also probably want to switch your request to the real production server, so a URL like this:

http://api.themoviedb.org/3/search/movie?api_key=###&query=x-men
var request = System.Net.WebRequest.Create("http://api.themoviedb.org/3/search/movie?api_key=###&query=x-men") as System.Net.HttpWebRequest;
    request.Method = "GET";
                request.Accept = ""application/json"";
              request.ContentLength = 0;
string responseContent;
using (var response = request.GetResponse() as System.Net.HttpWebResponse) {
  using (var reader = new System.IO.StreamReader(response.GetResponseStream())) {
    responseContent = reader.ReadToEnd();
  }
}

Cheers.

Is there any way to get a XML file back at my request?

No, our API is JSON only.

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