added getAPIDataAsString method