made api_key parameter name configurable
now querying host depending on where swagger docs are running