api scan callback