Link Search Menu Expand Document

How to use this API in Python

This sample code gets smoothed covid data for France between 11/15/2020 and 11/30/2020.

import requests
import json
import pandas

# request data from api
response = requests.get("").text

#convert json data to dic data for use!
jsonData = json.loads(response)

# convert to pandas dataframe
df = pandas.DataFrame.from_dict(jsonData['data'])