Select values from API response based on name rather than position

For me the position of the response values was different than those
specified. This seems like a more robust way of dealing with the
data returned from the API.