This project has moved. For the latest updates, please go here.
1
Vote

Can not get Movie Id

description

I get the movie title but now I want to get the movie ID, is there was a way with this API to extract the movie Id from the string movie title. I have not found a way and there is no documentation on this problem. SO i thought it best to post here.

file attachments

comments

watway wrote Jun 20, 2014 at 5:28 AM

The movie ID is included in the "results" array alongside the title, returned in the response to SearchMovie.

eg
movies = API.SearchMovie(MovieTitle, 1).results;
title = movies [0].title;
id = movies [0].id;

This id can then be used to call into the API.GetMovieInfo (id).