API connection error


I tried to request historical block data (by Python) using the Celo API but I have kept receiving a connection error as beow. The API document did not mention GraphQL is available for this type of data

Sample code:
import requests

Error Message:
ConnectionError: HTTPConnectionPool(host=‘localhost’, port=4000): Max retries exceeded with url: /api?module=stats&action=ethsupplyexchange (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x00000231AA8EFB

Has anyone run into this before? Thanks!