add api for search tasks