I would remove the &api_key= from here and just save the key itself.