standardizing results from API calls