No commit activity in last 3 years
No release in over 3 years
simplify access to google image api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Important: The Google Image Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited. We encourage you to upgrade to the Custom Search API, which now supports image search.

Google image

Allows you to get images through google image API.

API reference: http://code.google.com/apis/imagesearch/

Examples

require 'google_image_api'
  result = GoogleImageApi.find("your term", {
    :imgsz => "medium",
    :rsz => 8,
    :start => 8,
    :imgtype  => "face",
    :as_filetype => "jpg"
  })

  result.images.each do |img|
    puts img['url']
  end

Configuration

This is by default configured like this:

http://code.google.com/apis/loader/signup.html

GoogleImageApi.Configure {
  key nil # optional
}