Having Issue with API key

Hi, I am trying to run a small project.

I am using Python and the error I am getting when trying to connect to the Companies House API is the following:

urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Any idea what I am doing wrong?