Studio Ghibli API
ghibliapi.herokuapp.com
ghibliapi.herokuapp.com
To save anybody from copy-and-pasting it, here's ten seconds of playing around:
> ghibli
Object {films: Array(20), people: Array(16), locations: Array(25), species: Array(5), vehicles: Array(3)}
> ghibli.films[0]
Object {id: "2baf70d1-42bb-4437-b551-e5fed5a87abe", title: "Castle in the Sky", description: "The orphan Sheeta inherited a mysterious crystal t…uta's science to make himself ruler of the world.", director: "Hayao Miyazaki", producer: "Isao Takahata"…}
> ghibli.locations[0]
Object {id: "11014596-71b0-4b3e-b8c0-1c4b15f28b9a", name: "Irontown", climate: "Continental", terrain: "Mountain", surface_water: "40"…}
> ghibli.people[0]
Object {id: "ba924631-068e-4436-b6de-f3283fa848f0", name: "Ashitaka", gender: "male", age: "late teens", eye_color: "brown"…}
Besides, being an API it can be extended with things like quotes, exact appearance times etc etc.
It's not an official Studio Ghibli API. But it's exactly what you'd build if you were learning to build APIs.
requests.get('https://raw.githubusercontent.com/janaipakos/ghibliapi/master/data.json').json()
Now it can be loaded into Pandas for analysis. Even if I was building an app I'd want to own the data 1) so my users aren't being logged by the API service 2) control over the uptime 3) lower latency 4) flexibility of serving the data, such as generating static pages.More usefully, this isn't an API, it's a data source for in-universe facts! It has an API (but is not one).
Mods? "Studio Ghibli dataset" or something?
It's honestly the first time I see anyone claiming "an API is not an API unless it changes something".
An API is specifically not a service. You can have many services that all use the same API. REST itself is an API. You can build another API on top of REST. So if someone says they have a REST API for querying movie information, that's sensible. If you have a service that serves up movie information, that's not an API. That's a service. It uses an API.
It might seem pedantic, but I have talked with otherwise talented programmers who didn't actually know what an API was. They mentioned using "the API" in their front end code and when I asked the only reasonable question, "Which API?" they didn't know how to respond. They've got about a billion libraries in their front end code (like everyone else ;-) ) and each one of them has an API -- otherwise they couldn't use it. However "API" only meant talking to the server to them.
I realise common usage is trumping the original definition of the term, but I think that's to the detriment of everyone involved.
Sure, the dataset is currently small, but it can easily get bigger if anyone starts doing things like marking appearance times, quotes with translations, pictures and so on.
Sure, it might not be an official Ghibli project, in the same way IMDB or ComicDB did not start as official projects.
I personally find it fun and will look into building something with it, just for kicks. One obvious application would be a GMap mashup with locations, at least for the realistic films. Another would be a Youtube mashup with clips for each element.
Sometimes the internet seems too cynical even for a sad old fart like me.
It's not the first time I see this claim in a REST API. What is it supposed to mean? Does it hint at some form of automatic (machine-driven) discovery, or is it just a pompous way to say they expose capabilities via a REST API?
- SOAP had discovery
- XML based REST APIs had discovery (via HATEOAS)
- JSON based REST APIs inevitably never have discovery (looks like there's no standard JSON version of the 'link rel' from HATEOAS)
- GraphQL has discovery
2) It's a bunch of text data; as the link posted in another comment shows, it's less than 50kB uncompressed.
* http://farm2.static.flickr.com/1258/1355972123_12a28bd3b6.jp...
Seeing that the peehole is forward would make it male no? This little toy also seems male:
* https://img0.etsystatic.com/110/0/11763563/il_570xN.88580129...
I'll be sure to ask the opinion of my friends next time I play with their cats! Btw I am not trying to argue. I'm just curious.