https://mranv.pages.dev/posts/api-monitoring-script-guide/