API created from scraping:
- Little Visuals
- Unsplash
- New Old Stock
- Picjumbo
- Gratisography
- Getrefe
- Jay Mantri
- Picography
- Startup Stock Photos
- Life of Pix
- Pexels
- Superfamous
Inspired by articles from:
Recreated using Mort
Home page: http://stahk.photos
API Root: http://api.stahk.photos
Endpoints: /endpoints
- Returns available endpoints
Random: /random
- Returns random image from random endpoint
Debug: /{{ endpoint }}(/(random|\d+)?/debug
- Returns a JSON response of
image info i.e. image source, image url, width, height, etc.
Little Visuals: /littlevisuals/(random|\d+)?
Unsplash: /unsplash/(random|\d+)?
New Old Stock: /newoldstock/(random|\d+)?
Picjumbo: /picjumbo/(random|\d+)?
Gratisography: /gratisography/(random|\d+)?
Getrefe: /getrefe/(random|\d+)?
Jay Mantri: /jaymantri/(random|\d+)?
Picography: /picography/(random|\d+)?
Startup Stock Photos: /startupstockphotos/(random|\d+)?
Life of Pix: /lifeofpix/(random|\d+)?
Pexels: /pexels/(random|\d+)?
Superfamous: /superfamous/(random|\d+)?
{
images: [
"http://37.media.tumblr.com/1ecfc1ee5d12ecfe0b48c069980609bf/tumblr_n8zm3lrclm1st5lhmo1_1280.jpg",
"http://37.media.tumblr.com/bddaeb8fe12eda6bb40cf6a0a18d9efa/tumblr_n8zm8ndGiY1st5lhmo1_1280.jpg",
"http://33.media.tumblr.com/0de1b93512d7b2b6287c1e4b630212b6/tumblr_n8zlzedP0b1st5lhmo1_1280.jpg",
"http://38.media.tumblr.com/e6c1c887ba8e24a855351940bcd3c343/tumblr_n8zm44LBpl1st5lhmo1_1280.jpg",
"http://38.media.tumblr.com/e77ef190ff20487acedb1d664a535c1b/tumblr_n8zlzxbFUT1st5lhmo1_1280.jpg",
"http://31.media.tumblr.com/53b1b2ec56944c977cdd7ee10a9b4ba4/tumblr_n8zm0yzydj1st5lhmo1_1280.jpg",
"http://31.media.tumblr.com/8dd94ea5b1ff565d0f64ac1e7c610ce9/tumblr_n8zm2tFWMf1st5lhmo1_1280.jpg",
"http://38.media.tumblr.com/2aec5b8337c3f2677080ea93f88a59aa/tumblr_n8zm1wVHz11st5lhmo1_1280.jpg",
"http://31.media.tumblr.com/17b062d8170b0cd6e1b4a63db7e20df1/tumblr_n8zm9idM4J1st5lhmo1_1280.jpg",
"http://38.media.tumblr.com/48b91f8ac34b6c31d817f65ad9402015/tumblr_n8zm0d48Jx1st5lhmo1_1280.jpg"
],
source: "Unsplash",
sourceUrl: "http://unsplash.com",
fetchedAt: 1406513046093,
status: 200
}
{
source: "Unsplash",
sourceURL: "http://unsplash.com",
image: "http://38.media.tumblr.com/9cca3d64c075b55c0a96303174d66b19/tumblr_na0l33ez3W1st5lhmo1_1280.jpg",
width: 1280,
height: 720,
fetchedAt: 1408115765952,
status: 200
}
- Handle pagination
- Return redirect response without url change
- Rename API routes (really?
debug
?...)
Copyright © 2015 Nicholas Hwang