API connection errors

I’m trying to generate data from the API.
It works at first but I always end up with that error.
Does somebody have a clue about what’s going on?
Thnak you!

File “/usr/local/lib/python3.10/dist-packages/requests/adapters.py”, line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.mockaroo.com’, port=443): Max retries exceeded with url: /api/7a169550?count=3&key=4c0540d0 (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7f504c3c98a0>: Failed to establish a new connection: [Errno -2] Name or service not known’))