Fix the url for the API calls and changed to be more consistent between examples