Skip to content
Template

Post an API's data to Discord every morning

Every morning, call an API (your stats, a status page, a price) and post the answer to Discord.

Use this templateSchedule · HTTP request · Discord

The steps

  1. Trigger

    Every day at 9:00 AM (your timezone)

    Every day at 9:00, in the timezone your browser is in.

  2. Step 1

    HTTP request

    Enter the API's URL. Add API credentials if it needs a key.

  3. Step 2

    Post to Discord

    Posts what the API returned. Add your channel's webhook, then pick only the fields you want from Step 1's body.

What you need

  • An API you can call with a URL (and a key, if it needs one).
  • A Discord channel where you can make a webhook.
  • A Foliot account (free).

Questions

What if the API is down?
An answer of 400 or more fails the step, and Foliot emails you that the run failed. Nothing is posted that day.
Can it post more often?
Yes: every N minutes or hours, as often as every minute. Each run counts toward your monthly runs.