Replace the `api_key` argument with a hash of options

This change should be backwards compatible. 
why not do `parse_opts` and allow for a custom api key here?