api: initialize saveptr for api_epg and api_idnode