import requests; import json; myURL = "http://nexuswebdigital.com:9999/auth/me" with open("logindata.json", "r") as f: data=json.load(f); for item in data: head = {'Authorization': '{}'.format(item["token_api"])} response = requests.get(url=myURL, headers=head); print(response.text);