Makes API calls from a list of values and parses the JSON response which is outputted to a text file