1👍
✅
You can call two api in one view as:
def home(self, request):
first_response = requests.get('https://api.covid19api.com/world/total').json()
second_response = requests.get('https://api.covid19api.com/country/south-africa/status/confirmed?from=2020-09-06T00:00:00Z&to=2020-09-11T00:00:00Z').json()
return render(request, 'home.html', {'first_response ': first_response ,'second_response':second_response })
Source:stackexchange.com