Simplify and use api_key from a config setting.