> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastgen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Uptime Monitor

This cron job sends a request to an API or website of your choice and will alert you if they are down.

<iframe width="674" height="315" src="https://www.youtube.com/embed/07y_-HLGBXI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

#### Time Frequence

The default template will execute once a day. You can adjust the timing under `Conditions` in the top action block if you want this job to be executed in higher frequency.

<img width="400" height="400" src="https://mintcdn.com/organa/IAAgt4Qjpzo5KMmv/images/uptimer-timing.webp?fit=max&auto=format&n=IAAgt4Qjpzo5KMmv&q=85&s=0280d259573be39affbe0c01cdeea8d2" data-path="images/uptimer-timing.webp" />

#### HTTP request

Replace `https://www.google.com` with the API or website domain you want to check for. Don't forget to specify your authentication credentials in your request configuration in case you need any.

#### Check Status code

The default template uses an [If Condition](/actions/flow-control/if) with syntax:

* `{{steps.get-status-code.outputs.Status}} = 200`

to see if the returned status code is 200.

You can customize this step by either checking for a different status code or using a [Switch Condition](/actions/flow-control/switch) if you want to check on a more granular level.

#### Alert

In case the status code is anything but a 200 code, you will receive a notification through [Slack](/actions/integrations/slack). You can change this or add additional communication platforms like [Email](/actions/native-action/email-smtp) or [SMS](/actions/integrations/twilio-sms)
