Movieguide API Documentation

JavaScript client library

<script type="text/javascript" src="http://api.movieguide.org/js/movieguide.js"></script>

API Documentation

Movieguide.toplists (Get lists)

JavaScript:     Movieguide.toplists(CALLBACK);
REST:           http://api.movieguide.org/api/movieguide/toplists/
Widget:         <div id="movieguide_toplists"><script>Movieguide.toplists(function(data){document.getElementById('movieguide_toplists').innerHTML=data;},{format:'widget'});</script></div>
Iframe:         <iframe width="300" src="http://api.movieguide.org/api/movieguide/toplists/?format=iframe" />

Movieguide.toplists (Get movies)

JavaScript:     Movieguide.toplists(CALLBACK,{list_id:LIST_ID});
REST:           http://api.movieguide.org/api/movieguide/toplists/?list_id=LIST_ID
Widget:         <div id="movieguide_toplist"><script>Movieguide.toplists(function(data){document.getElementById('movieguide_toplists').innerHTML=data;},{format:'widget',list_id:32});</script></div>
Iframe:         <iframe width="600" height="380" src="http://api.movieguide.org/api/movieguide/toplists/?format=iframe&list_id=LIST_ID" />

Params:

Movieguide.boxoffice

JavaScript:     Movieguide.boxoffice(CALLBACK);
REST:           http://api.movieguide.org/api/movieguide/boxoffice/
Widget:         <div id="movieguide_boxoffice"><script>Movieguide.boxoffice(function(data){document.getElementById('movieguide_boxoffice').innerHTML=data;},{format:'widget'});</script></div>
Iframe:         <iframe width="300" src="http://api.movieguide.org/api/movieguide/boxoffice/?format=iframe" />

Movieguide.videos

JavaScript:     Movieguide.videos(CALLBACK);
REST:           http://api.movieguide.org/api/movieguide/videos/
Widget:         <div id="movieguide_videos"><script>Movieguide.videos(function(data){document.getElementById('movieguide_videos').innerHTML=data;},{format:'widget'});</script></div>
Iframe:         <iframe width="300" src="http://api.movieguide.org/api/movieguide/videos/?format=iframe" />

Movieguide.reviews

JavaScript:     Movieguide.reviews(CALLBACK);
REST:           http://api.movieguide.org/api/movieguide/reviews/
Widget:         <div id="movieguide_reviews"><script>Movieguide.reviews(function(data){document.getElementById('movieguide_reviews').innerHTML=data;},{format:'widget'});</script></div>
Iframe:         <iframe width="300" src="http://api.movieguide.org/api/movieguide/reviews/?format=iframe" />

Movieguide.showtimes (Avaliable Dates)

JavaScript:     Movieguide.showtimes(CALLBACK,{list='dates'});
REST:           http://api.movieguide.org/api/movieguide/showtimes/?list=dates

Movieguide.showtimes (Avaliable Movies)

JavaScript:     Movieguide.showtimes(CALLBACK,{list='movies'});
REST:           http://api.movieguide.org/api/movieguide/showtimes/?list=movies

Movieguide.showtimes (By Date and Movie)

JavaScript:     Movieguide.showtimes(CALLBACK,{s=LOCATION,movies=MOVIE,day=YYYY-MM-DD});
REST:           http://api.movieguide.org/api/movieguide/showtimes/?s=LOCATION&movies=MOVIE&day=YYYY-MM-DD

Movieguide.showtimes (Nearby Widget)

Widget:         <div id="movieguide_showtimes"><script>Movieguide.showtimes(function(data){document.getElementById('movieguide_showtimes').innerHTML=data;},{format:'widget'});</script></div>
Iframe:         <iframe width="300" src="http://api.movieguide.org/api/movieguide/showtimes/?format=iframe" />