Comments (7)
Must have JSONP support
- trakt.tv does: http://api.trakt.tv/movie/related.json/368b0395732268808fa8d151d2484e8c/tt0468569/related?callback=paulinho
- so does RT: http://api.rottentomatoes.com/api/public/v1.0/movies/770672122.json?apikey=q48uhfxwd8a75n4xcykmym6k&callback=ciprian
from react-cosmos.
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.
- Main movie entry point http://trakt.tv/api-docs/movie-summary - Contains needed meta fields, images, ratings and cast/crew (just not related)
- Related movies - http://trakt.tv/api-docs/movie-related - So we'd need two requests per movie... let's see if the content is better still
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)
- Main movie entry point http://developer.rottentomatoes.com/docs/json/v10/Movie_Info - Contains needed meta fields, images, ratings and abridged cast and directors (no writers tho, but we can go without, sorry writters...)
- Related movies http://developer.rottentomatoes.com/docs/json/v10/Movie_Similar- Still, two requests per movie... let's see if the content is better still
from react-cosmos.
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..
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)
from react-cosmos.
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.
from react-cosmos.
Let's throw Rotten Tomatoes API in the mix as well: http://developer.rottentomatoes.com/, will update comments
from react-cosmos.
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.
from react-cosmos.
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
from react-cosmos.
Related Issues (20)
- Increase awareness of the ability to override Webpack config HOT 1
- Webpack emits DefinePlugin warning on a fresh install with create-react-app HOT 2
- Unable to get started with vite plugin following the setup docs HOT 10
- Props tab show nothing when decorator for fixture not include `children` in response HOT 7
- Alert shows the wrong port number (minor) HOT 2
- Cosmos cannot find Vite configuration file with "ts" extension HOT 4
- Respect SSL option when connecting to websocket HOT 4
- fixture fails to enter fullscreen mode HOT 6
- Can't get cosmos to run with or without babel-loader or ts-loader HOT 4
- `cosmos --expose-imports` seems to have stopped building imports at some point HOT 3
- Cosmos.imports.ts isn't created nor updated on subsequent runs of npm run cosmos HOT 3
- Unable to use alias Preact in `next` branch HOT 9
- Fixture Error : Lazy element type must resolve to a class or function HOT 3
- Build fails with node@20 HOT 4
- Next.js 14 no longer allows 'use client' and generateStaticParams() to be used together HOT 3
- Does not show multi fixture with custom bundler (Parcel) HOT 4
- Getting "Waiting for renderer" - how troubleshoot HOT 4
- Stop firing keyboard shortcuts when typing inside contenteditable
- No support for non-server components in Next.js HOT 2
- No preview when using custom renderer with `--root-dir=`... HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-cosmos.