image-search
Project for FCC
Pass in a search string to receive a JSON response with links and information
Example:
https://thekholm80-image-search.herokuapp.com/search/cats
Returns:
[{"previewHeight":99,
"likes":69,
"favorites":66,
"tags":"cat, pet, eyes",
"webformatHeight":425,
"views":21363,
"webformatWidth":640,
"previewWidth":150,
"comments":8,
"downloads":8151,
"webformatURL":"https://pixabay.com/get/ed33b90d2bf61c2ad65a5854e3494391e27fe3c818b518479df7c971a3e4_640.jpg",
"imageWidth":3000,
"user_id":151412,
"user":"amayaeguizabal",
"type":"photo",
"id":468232,
"userImageURL":"https://cdn.pixabay.com/user/2014/02/14/08-35-49-318_250x250.jpg",
"imageHeight":1993
},
{"previewHeight":99,
... ]
"likes":243,
"favorites":165,
"tags":"cat, feline, furry",
"webformatHeight":425,
"views":39720,
"webformatWidth":640,
"previewWidth":150,
"comments":34,
"downloads":11668,
"webformatURL":"https://pixabay.com/get/ed35b00e2af01c2ad65a5854e3494391e27fe3c818b518479df7c971a3e4_640.jpg",
"imageWidth":3008,
"user_id":63554,
"user":"Amandad",
"type":"photo",
"id":401124,
"userImageURL":"https://cdn.pixabay.com/user/2014/02/09/18-00-03-861_250x250.jpg",
"imageHeight":2000
},... ]
Search Strings
Combine words with a + to form a search string
https://thekholm80-image-search.herokuapp.com/search/cats+funny
https://thekholm80-image-search.herokuapp.com/search/birds+wearing+hats
Pagination
Results can be paginated by appending to the url:
https://thekholm80-image-search.herokuapp.com/search/cats+funny?page=1
https://thekholm80-image-search.herokuapp.com/search/birds+wearing+hats?page=2