This is a short post detailing at a high level how you would go about using Ruby to get access to Google keyword suggestions.

First of all Google's Keyword API is hooked into their Adwords API, this means a valid Adwords account will be required to gain access to the API.

Accounts are free, essentially any Google account can sign up, it doesn't appear that you need to have any active campaigns going or anything like that in order to use the Keywords.

There is a Ruby implementation of Google Adwords API and there is a specific code example that deals with Keywords.

The API works as one might expect, you feed it a keyword and it returns multiple suggestions of other keywords and you should note that there doesn't appear to be any cost for using this service.

You should note and you probably noticed if you have looked at the code sample that is uses a SOAP interface to make calls, this won't be just as pretty as some of the slick JSON APIs you are maybe used to, but it will get the job done!