add api for search