API Basejump: Image Search Abstraction Layer

User stories:

  1. I can get the image URLs, alt text and page urls for a set of images relating to a given search string
  2. I can paginate through the responses by adding a ?offset=2 parameter to the URL.
  3. I can get a list of the most recently submitted search strings

Example usage:

https://image-search-zombat.herokuapp.com/imagesearch?tags=dogs%20cats&offset=1

https://image-search-zombat.herokuapp.com/latestsearches

https://image-search-zombat.herokuapp.com/about

Example output for /imagesearch:

[{"name":"Lexington Community Farm » Blog Archive » Why Dogs Are Not Allowed","webSearchUrl":"https://www.bing.com/cr?IG=F9A3DBC4184D46628EBDA751917217C0&CID=3E0787B38E116F5E03B28DD18F816E85&rd=1&h=7wa49NKhaThtkNhvwBfr7y0MLhloJrLZWwfExNP8H6c&v=1&r=https%3a%2f%2fwww.bing.com%2fimages%2fsearch%3fview%3ddetailv2%26FORM%3dOIIRPO%26q%3ddogs%26id%3d469C7CB0E3255C41427E0F0E94D1D5D207E6AFA8%26simid%3d608047729938730421&p=DevEx,5546.1","thumbnailUrl":"https://tse2.mm.bing.net/th?id=OIP.S2BsqhOmsBE8byT0pDuD7AEWEs&pid=Api","datePublished":"2012-01-28T12:00:00","contentUrl":"http://www.bing.com/cr?IG=F9A3DBC4184D46628EBDA751917217C0&CID=3E0787B38E116F5E03B28DD18F816E85&rd=1&h=sxzix7OXG6gAeGzIab2oW2NF_g7YvEAXohr89P1y-C0&v=1&r=http%3a%2f%2flexfarm.org%2fwp-content%2fuploads%2f2012%2f01%2fdog.jpg&p=DevEx,5548.1","hostPageUrl":"http://www.bing.com/cr?IG=F9A3DBC4184D46628EBDA751917217C0&CID=3E0787B38E116F5E03B28DD18F816E85&rd=1&h=ncpQZT0sj57ApVUiwimLXlgPirsDhLiFxuH_enM9tlM&v=1&r=http%3a%2f%2flexfarm.org%2f2012%2f01%2f28%2fwhy-dogs-are-not-allowed%2f&p=DevEx,5547.1","contentSize":"32440 B","encodingFormat":"jpeg","hostPageDisplayUrl":"lexfarm.org/2012/01/28/why-dogs-are-not-allowed","width":334,"height":360,"thumbnail":{"width":278,"height":300},"imageInsightsToken":"ccid_S2BsqhOm*mid_469C7CB0E3255C41427E0F0E94D1D5D207E6AFA8*simid_608047729938730421","imageId":"469C7CB0E3255C41427E0F0E94D1D5D207E6AFA8","accentColor":"3E0C61"},...]

Example output /latestsearches:

[{"term":"dogs puppies","when":"2017-04-11T20:37:46.754Z"},...]