added search api sample,