add detail api for search