iHook

iHook

  • Blog
  • Docs
  • Dashboard

›Task Examples

Quick Start

  • Create your first task
  • Create your first receiver

Task Settings

  • HTTP Settings
  • Request Schedule

Task Notifications

  • Notification Overview
  • Source
  • Property / CSS Selector
  • Comparison
  • Message Template

Task History

  • Chart

Task Errors

  • Errors

Task Shortcuts

  • Keyboard Shortcuts

Receiver Variables

  • Receiver variables

Task Examples

  • Nintendo Switch availability monitor
  • Weather monitor
  • Insider trading monitor
  • Mortgage rate monitor
  • Github repo release monitor

Receiver Examples

  • Create an Okta Hook receiver
  • Create a SendGrid Event Webhook receiver

Mortgage rate monitor

The mortgage rates can be volatile. If you want to monitor the rates, instead of checking it manually each time, you can save time by setting up a monitoring task and get notified whenever the mortgage rates changed.

In this tutorial, we'll show you how to use iHook to monitor the 30-year fixed rate mortgage average in the United States, by extracting the data from St. Louis Fed website.

1. Create an iHook scheduled task

After logging into iHook dashboard, click the CREATE TASK button at the top left corner, then you will see the task creation form:

General Settings

Under the Request Settings and Request Schedule sections, provide the following values:

FieldValueNotes
Task Name30-year fixed rate mortgage average in the United StatesThe name of the task
URLhttps://fred.stlouisfed.org/series/MORTGAGE30USSt. Louis Fed website
Request MethodGET
Request HeadersNoneNo headers are needed
Request ScheduleEvery 1 weekThe task will run once every week

2. Create email notification

Next is to set up an email notification, so you can get notified with the latest rate.

Under the Notification section, click the ADD button next to the Email label:

add-notification

Then a notification setup dialog will show up:

email notification

Then provide the following values in the dialog:

FieldValueNotes
SourceResponse Body (HTML)Parse the HTTP response as HTML
CSS Selectorspan.series-meta-observation-valuePath of the HTML element that contains rate data
Comparisonis any value
EmailYour email address
Subject30-year fixed rate updateThe email subject
MessageYou can leave this field as-isThe email body

This tells iHook to send an email notification with the latest rate whenever the task is executed.

Now click SAVE, you will see the new email notification appear under the Notification section:

saved-notification

3. Save task

Click the CREATE button at the bottom of the task creation page:

create-task-button

You'll see the created task in ACTIVE state:

created task

4. Test task

To make sure your task settings such as URL and notification rules are properly configured, it's recommended to test your task at least once.

You can perform the test by clicking the TEST button at the top of your task page. The TEST button will trigger the HTTP request right away, and evaluate all configured notification conditions.

If everything went smooth, you should see the mortgage rate appear in the Response Body section of the execution detail:

history

Congratulations! You will get email notification with latest mortgage rate every week!

← Insider trading monitorGithub repo release monitor →
  • 1. Create an iHook scheduled task
  • 2. Create email notification
  • 3. Save task
  • 4. Test task
Copyright © 2024 iHook, Inc.