Corrected getting api_key