added api for search