This project has moved and is read-only. For the latest updates, please go here.

Can not get Movie Id


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


watway wrote Jun 20, 2014 at 6:28 AM

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

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).