Problem with API

My rig often goes offline for no reason. I have very stable internet and when i went for a net-test i saw this
test How can i repair that or prevent future disconnections?