add api for title to get id