Supply api options via hash

I changed the code to also allow specifying a hash for the search options including the API key.