Quick overview
This workflow runs daily to fetch for-sale listings for selected ZIP codes from the APIllow API, calculates each listing’s $/sqft against the ZIP’s median, appends new listings to Google Sheets without duplicates, and posts deal and error alerts to Slack.
How it works
- Runs every day at 8am on a schedule.
- Submits a ZIP-code for-sale property search to the APIllow API and receives an asynchronous job ID.
- Polls the APIllow results endpoint every 10 seconds until the job status is marked complete, sending an error message to Slack if an API call fails after retries.
- Flattens the returned listings, calculates each property’s price per square foot, and computes the median $/sqft per ZIP from the same batch.
- Reads existing rows from a Google Sheets “Deals” worksheet and removes any listings whose ZPID is already tracked.
- Appends the remaining new listings (including $/sqft, ZIP median, and discount %) to Google Sheets.
- Posts a Slack deal alert for any newly logged listing priced at or below the configured threshold of the ZIP median.
Setup
- Create an APIllow Header Auth credential with the header name
x-api-key and your APIllow key value.
- Add Google Sheets OAuth credentials, create a spreadsheet with a “Deals” sheet and matching columns (including a
zpid column), and replace YOUR_SHEET_ID in both Google Sheets nodes.
- Add Slack credentials, set the deal-alert channel in the deal message step, and set an error-alert channel in the error message step.
- Update the ZIP codes, deal threshold, and max items in the workflow configuration values to match your monitoring preferences.