FreeCodeCamp Project: Image Search Abstraction Layer API - (GitHub)

Description:

This is an image search abstraction layer API build with Express. The API uses the Custom Search Engine from google to make the search.
The API has two end points, the first returns a list of objects related to the term specified as a parameter. The second end point returns a list of the latest queries made.

Instructions:

  1. Pass a term as a parameter in the request with the path /api/imagesearch/yourTerm (See Examples).
  2. A list of 10 results will be returned. If an offset is passed as a query parameter, The specified page will be returned.
  3. To view the latest searches made, go to the path /api/latest/imagesearch. A list with the latest 10 queries will be returned.

Image Search Examples:

https://anfelo-image-search.glitch.me/api/imagesearch/gandalf

https://anfelo-image-search.glitch.me/api/imagesearch/gandalf?offset=10

Latest Searches:

https://anfelo-image-search.glitch.me/api/latest/imagesearch