A lightweight Sinatra app that utilizes spotlite gem to fetch movie information and return it in JSON format
Clone this repository
git clone [email protected]:defeed/spotlite-proxy.git
Install the bundle
bundle install
Run the server on localhost's port 3000
bundle exec thin start -p 3000
List of movies ordered by current popularity is available at http://localhost:3000/movies
This endpoint accepts page
parameter, which can be in range of 1..40 (10000 titles available, 250 titles at once per page)
http://localhost:3000/movies?page=7
You can access several endpoints to get various movie details. All you need is IMDb ID of movie (i.e. 0076759, Star Wars, 1977)
http://localhost:3000/movies/0076759
http://localhost:3000/movies/0076759/release_info
http://localhost:3000/movies/0076759/plot_summaries
http://localhost:3000/movies/0076759/keywords
http://localhost:3000/movies/0076759/trivia
http://localhost:3000/movies/0076759/taglines
http://localhost:3000/movies/0076759/critic_reviews
http://localhost:3000/movies/0076759/images
http://localhost:3000/movies/0076759/cast
http://localhost:3000/movies/0076759/crew
http://localhost:3000/movies/0076759/credits
You can also access people details endpoint. All you need is IMDb ID of the person (i.e. 0000216, Arnold Schwarzenegger)