Refactor the author data api for multiple authors