Quick overview
This workflow runs on a schedule, reads a list of target domains from Google Sheets, checks their availability with the Porkbun API, and when a domain becomes available it sends Gmail and Discord alerts and marks the domain as available in the sheet.
How it works
- Runs on a scheduled trigger at the configured interval.
- Reads domains from a Google Sheets worksheet where
isAvailable is set to no.
- Processes each domain and calls the Porkbun API to check whether the domain is available and retrieve pricing details.
- If Porkbun reports the domain as available, sends an HTML email notification via Gmail with pricing and a Porkbun checkout link.
- Posts a Discord message with the domain and pricing details.
- Updates the matching row in Google Sheets to set
isAvailable to yes, waits 10 seconds, and continues checking the next domain.
Setup
- Create Porkbun API keys and replace the placeholder API key and secret values in the Porkbun HTTP requests.
- Connect your Google Sheets account and set the target spreadsheet and sheet containing
Domain and isAvailable columns.
- Connect your Gmail account and set the recipient address for the email alert.
- Connect your Discord bot credentials and select the server and channel where notifications should be posted.
- Adjust the schedule interval and (optionally) the 10-second delay to match your monitoring frequency and Porkbun rate limits.
Additional info
contact me: https://khmuhtadin.com/contact/