Below is a practical, copy-paste-ready guide to programmatically fetch impressions (how many times your experiences/nodes were viewed) and leads (completed submissions or qualified conversions) from LeadsHook into your own stack (n8n, Supabase, BigQuery, Snowflake, Sheets, etc.).

We’ll be using n8n for this simple integration but any automation app like Zapier, Make etc can be used as well.

LeadsHook API Access Setup

LeadsHook API Docs…

Setting Up API Access in Your 3rd Party Platform

LeadsHook API is accessed via Oauth2. 2 grant types, Authorization Code and Client Credentials are available.

Here is how you setup using grant type, “Authorization Code”. This example below is using n8n.

Authorization URL: https://your-account.leadshook.io/oauth/authorize

Access Token URL: https://your-account.leadshook.io/oauth/token

Authentication: Please use “Body”

Please grab the latest urls from the API docs (see ‘LeadsHook API Docs’ above)

Your LeadsHook Stats

Please grab the url and parameters from the API docs.

You can search a data range:

https://afftest4.leadshook.io/api/accounts/usage?range[from]=2025-08-01&range[to]=2025-09-01

Or from a specific date to now:

https://afftest4.leadshook.io/api/accounts/usage?range[from]=2025-08-01

How to Automate Your Stats Capture & Notifications

You can use a scheduling to grab your stats. You can also setup filters to fire notifications and warnings into any other platform of your choice like Slack, email or SMS.

Examples:

  • Send an email where daily impressions > 10,000
  • Send an SMS where daily impressions > 15,000
  • Send an SMS when month to day impressions > 50,000

You can also setup formulas for conversion metrics and fire notifications where numbers fall outside tolerance.