Added an option for giving apis as strings