Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate if trakt.tv or Rotten Tomatoes API is better than themoviedb [experiment] #23

Closed
5 of 6 tasks
ovidiuch opened this issue Apr 11, 2014 · 7 comments
Closed
5 of 6 tasks

Comments

@ovidiuch
Copy link
Member

  • Must have JSONP support
  • See if you can fetch all Movie/Person data in one request
  • See how good "also see.." movies are
  • See how good "know for" movies for person are
  • Check out and acknowledge rate limits
  • Compare response times (do N requests every rate limit + small rand for a minute or two and compare averages)
@ovidiuch
Copy link
Member Author

See if you can fetch all Movie/Person data in one request

TheMovieDB has something called append_to_response, which can be used to merge to API requests together, like movie summary + related movies. track.tv doesn't seem to, but the API responses seem pretty cool (cooler.) For example you can use imdb ids directly to target movies.

Rotten Tomatoes still can't aggregate more API calls in one, but they have a pretty cool movie summary and links to related API methods (which encourages hyper media and goes well with the principles of Cosmos)

@ovidiuch
Copy link
Member Author

See how good "also see.." movies are

First 10 related movies for "The Dark Knight (2008)":

Themoviedb:

  • Batman: Under the Red Hood (2010)
  • The Dark Knight Rises (2012)
  • Batman Begins (2005)
  • Justice League: The New Frontier (2008)
  • Batman (1989)
  • Reasonable Doubt (2014)
  • Batman Returns (1992)
  • Batman Forever (1995)
  • Batman & Robin (1997)
  • This Woman Is Dangerous (1952)

trackt:

  • Scarface (1983)
  • The Dark Knight Rises (2012)
  • Heat (1995)
  • Sherlock Holmes (2009)
  • Ronin (1998)
  • Hackers (1995)
  • Training Day (2001)
  • Drive (2011)
  • In Brudges (2008)
  • The Town (2010)

There are many things to consider here, and it's nice that themoviedb (I've seen examples with way more old movies show up in the related list for a contemporary movie), but the ones from trakt seem more varied and feel less like they were matched by a soulless computer algorythm..

RT: http://api.rottentomatoes.com/api/public/v1.0/movies/769959054/similar.json?apikey=q48uhfxwd8a75n4xcykmym6k

Weirdly, RT seems to only return 5 max similar movies.

  • Batman Begins (2005)
  • Batman (1989)
  • The Dark Knight Rises (2012)
  • Iron Man (2008)
  • Batman Returns (1992)

@ovidiuch
Copy link
Member Author

See how good "know for" movies for person are

OK, it turns out trakt.tv doesn't really have a rich Person API. You can barely request info about a person, searching them by name http://api.trakt.tv/search/people.json/368b0395732268808fa8d151d2484e8c?query=Wes+Anderson&limit=1, but there's no way to list their associated movies. Nor do most of people have an associated photo.

So far trakt would only be an option if we gave up browsing people altogether.

@ovidiuch
Copy link
Member Author

Let's throw Rotten Tomatoes API in the mix as well: http://developer.rottentomatoes.com/, will update comments

@ovidiuch ovidiuch changed the title Investigate if trakt api is better than moviedb api [experiment] Investigate if trakt.tv or Rotten Tomatoes API is better than TheMovieDB api [experiment] Apr 12, 2014
@ovidiuch ovidiuch changed the title Investigate if trakt.tv or Rotten Tomatoes API is better than TheMovieDB api [experiment] Investigate if trakt.tv or Rotten Tomatoes API is better than themoviedb [experiment] Apr 12, 2014
@ovidiuch
Copy link
Member Author

Turns out themoviedb is the only API providing extensive info on People as well, not just Movies. trakt.tv, RT and http://www.omdbapi.com/ as well, don't. Even though trakt.tv and RT seems to have nicer APIs, we'll stick to themoviedb because they make more data available and through the use of a single API call.

@ovidiuch
Copy link
Member Author

Since themoviedb is the winner, only going to mention their rate limit policy:

We do enforce a small amount of rate limiting. Please be aware that should you exceed these limits, you will receive a 503 error.

  • 30 requests every 10 seconds per IP
  • Maximum 20 simultaneous connections per IP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant