use downcase! instead of calling downcase multiple times
Added api_key