The Movie Database Support

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 replies (on page 1 of 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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login