Score Instagram hashtag engagement with Apify, Telegram, and Airtable
Go to WorkflowDescription
Quick Overview
This workflow runs daily to fetch Instagram hashtag posts via the Apify API, computes a weighted engagement score, then sends a top-10 HTML report to Telegram and upserts the scored posts into Airtable.
How it works
Runs on a 24-hour schedule.
Loads a predefined list of hashtags to monitor and sets how many posts to fetch per hashtag.
Calls the Apify Instagram Hashtag Scraper API to retrieve recent posts for each hashtag.
Normalizes the returned post data (URL, author, caption, and metrics) and filters out empty API responses.
Deduplicates posts across hashtags, calculates a weighted engagement score, and ranks the results to keep the top 10.
Formats the ranked posts into an HTML message and sends the engagement report to a Telegram chat.
Upserts the scored post records into Airtable using the post ID as the unique key.
Setup
Set an Apify API token as the APIFY_TOKEN environment variable (or update the HTTP request to use your token).
Add a Telegram bot credential, set TELEGRAM_CHAT_ID, and ensure the bot can post to the target chat.
Add an Airtable credential, set AIRTABLE_BASE_ID and AIRTABLE_TABLE_ID, and ensure the table contains fields matching the post properties (including id for upserts).
Update the hashtag list (and optionally the per-hashtag post limit) in the code step that defines the monitored hashtags.
Adjust the schedule interval if you want the workflow to run more or less frequently.