API failed to open stream: connection refused [closed]

After installing web application, I added the api key to the built in setting in the admin dashboard. The api was calling and getting data, the next day I get an error code saying “failed to open stream: connection refused? cleared cache and dug into the files and nothing seems to be wrong on the app. Its using File_get_contents

So if it was working yesterday, but not today? I am guessing the server or something or something is blocking it. Unless I was sleepwalking and accidently changed a code while in my sleep?

anyone got any ideas?