Use YouTube Data API v3 to fetch the stats and install google-api-python-client with pip install --upgrade google-api-python-client. You will need to create google cloud console project and enable YouTube Data API v3 api.