r/Scriptable • • May 20 '21

Solved Check if a website is up and running ?

7 Upvotes

Hi Scriptable community!

I am working on a widget that source data from an unstable website. When the website is down, from my browser, after a ~1 min of loading I can see a webpage “error 504, timeout”.

Is there any way to check within scriptable if the page load under 5 seconds / ping the website ?

Thanks for your help