import requests
url = 'api接口地址'
headers = {'content-type': 'application/json'}
ret = requests.post(url, json=request_data, headers=headers)
if ret.status_code == 200:
reply_dict = json.loads(ret.text)
用Post请求,request_data是请求体,ret.status_code是状态,ret.text是回复体,写个遍历就能批量调用。