Dev Ops · n8n

Monitor Multiple API Endpoints and Alert on the First Failure

An n8n workflow that pings a list of critical URLs every few minutes, checks status code and response time, and alerts Slack the moment one fails or slows down — a free, self-hosted uptime monitor for the endpoints a single-URL checker would miss.

difficulty Intermediatesetup 40 minresult Any endpoint returning an error or slow response triggers an instant Slack alert with the details
  1. 1

    Schedule frequent checks

    A Schedule Trigger every 5 minutes starts the run. A Set node holds your list of URLs to monitor.

  2. 2

    Ping each endpoint

    An Item Lists split plus an HTTP Request (with neverError and a timeout) hits each URL, capturing status code and response time.

  3. 3

    Detect state changes

    A Code node compares each result to the last stored state; it flags only endpoints that just went down or just recovered, then saves the new state.

  4. 4

    Alert on change

    An IF keeps only changed endpoints and a Slack node posts a clear up/down message with the URL, status and latency — so you hear about problems before customers do.

Frequently asked questions

How is this different from a single website-down check?

It monitors many endpoints in one run — your homepage, checkout, login API, webhook receiver — because outages often hit one service while the homepage stays up. You define the URL list once and every one is checked each cycle.

Does it spam alerts while something stays down?

It stores each endpoint's last state in workflow static data and only alerts on a state change (up→down or down→up). So you get one 'down' alert and one 'recovered' alert, not a message every 5 minutes.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.