separate get_api_fields from get_api; use get_api in get_latest_release