{
"Title": "Jason X",
"Year": "2001",
"Rated": "R",
"Released": "26 Apr 2002",
"Runtime": "91 min",
"Genre": "Horror, Sci-Fi, Thriller",
"Director": "James Isaac",
"Writer": "Victor Miller (characters), Todd Farmer",
"Actors": "Kane Hodder, Jeff Geddis, Lexa Doig, David Cronenberg",
"Plot": "Jason Voorhees returns with a new look, a new machete, and his same murderous attitude as he is awakened on a spaceship in the 25th century.",
"Language": "English",
"Country": "USA",
"Awards": "1 nomination.",
"Poster": "http://ia.media-imdb.com/images/M/MV5BMTQ3NjA5NjcyNl5BMl5BanBnXkFtZTYwMzg5NjQ5._V1_SX300.jpg",
"Metascore": "25",
"imdbRating": "4.3",
"imdbVotes": "31,145",
"imdbID": "tt0211443",
"Type": "movie",
"Response": "True"
}
curl --silent "http://www.omdbapi.com/?i=&t=Jason+X" | jq '.Director'
"James Isaac"
An API from Library Land.
Digital Public Library of America
Request an API key, then you are good to go
curl -v -XPOST http://api.dp.la/v2/api_key/YOUR_EMAIL@example.com
http://api.dp.la/v2/items?q=Frankenstein&api_key=4c39detc
keyword search for Frankenstein
http://api.dp.la/v2/items?sourceResource.temporal.end=1923-01-01&api_key=4c39detc
items from before 1923
{"media":
{"#text":"http://npgportraits.si.edu/eMuseumNPG/media/CSC/9100132c.jpg",
"@idsId":"http://npgportraits.si.edu/eMuseumNPG/media/CSC/9100132c.jpg",
"@thumbnail":"http://npgportraits.si.edu/eMuseumNPG/media/CSC/9100132c.jpg",
"@type":"Images"},
"@mediaCount":"1"}
URL of the actual image file
{
"subject":
[{"name":"Motion pictures"},
{"name":"Boris Karloff"},
{"name":"Performing Arts"},
{"name":"Performer"},
{"name":"Actor"},
{"name":"Theater"},
{"name":"Actors and actresses"},
{"name":"Entertainers"},
{"name":"Portraits"},
{"name":"Freulich, Roman"},
{"name":"Karloff, Boris"},
{"name":"Portrait"},
{"name":"Movie"}]
Subjects tagged in the record
Time to make Apps!
One API, three uses
Can open this in any browser
http://library.brocku.ca/hours/?format=json&date=2013-10-31&location=rhd
{
"location_name":"Help Desk",
"location_key":"rhd",
"schedule_name":"Fall Term",
"start_date":"2013-09-03",
"end_date":"2014-01-05",
"sun_open":"12:00:00",
"sun_close":"17:00:00",
"mon_open":"08:30:00",
"mon_close":"19:00:00",
"tue_open":"08:30:00",
"tue_close":"19:00:00",
"wed_open":"08:30:00",
"wed_close":"19:00:00",
"thu_open":"08:30:00",
"thu_close":"19:00:00",
"fri_open":"08:30:00",
"fri_close":"17:00:00",
"sat_open":"12:00:00",
"sat_close":"17:00:00",
"id":"28"
}
Screen scraping happens
Finding the length of a movie using IMDB
Ah there it is!
Ctrl + U to view source, then try to search for it
Not fun