Set API version and type. getData() method to fetch a URL and return the results