A CodeIgniter Library for the Google AJAX API
Latest commit be814e6 Jul 7, 2010 @dhrrgn dhrrgn Fixed a random soft-tab.
Failed to load latest commit information.
libraries Fixed a random soft-tab. Jul 7, 2010
README.textile Initial Commit Jul 7, 2010


CodeIgniter Google API Library


This allows you to easily interface with Google’s AJAX API within your CodeIgniter application.


1. Copy Google.php to your application/libraries folder.
2. Load the library like normal. ($this->load->library('google');)


API calls takes 2 parameters:
1. The search string
2. An array of options

Valid API calls include:



$this->google->images('cougar', array('safe' => 'active'));

Return Values

The library return the responseData object sent by Google. You must access the results like this:

$search = $this->google->web('codeigniter');
$results = $search->results;

You can also use chaining to simplify it:

$results = $this->google->web('codeigniter')->results;

For more information on the return object please see the API reference:
Google API Reference