Ask your agent
What it does
Ready-to-import n8n 15-minute scheduled monitor JSON, Dify OpenAPI 3.1 Tool YAML, CrewAI @tool Python code, Make.com blueprint, and reproducible api.apify.com pricingInfos audit script for https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest and https://apify.com/kaitoeasyapi/premium-x-follower-scraper-following-data ($0.14/1K all-in across all tiers).
SKILL.md
---
name: n8n-make-dify-crewai-x-twitter-keyword-monitor
description: "24/7 X/Twitter Keyword & Competitor Monitoring Templates for n8n, Make, Dify (OpenAPI 3.1) & CrewAI at $0.14/1K All-In (isPPEPlatformUsagePaidByUser: false) via https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest and https://apify.com/kaitoeasyapi/premium-x-follower-scraper-following-data."
license: MIT
metadata:
author: KaitoEasyAPI Engineering
tweet_scraper_actor: https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest
follower_scraper_actor: https://apify.com/kaitoeasyapi/premium-x-follower-scraper-following-data
apify_store_profile: https://apify.com/kaitoeasyapi
---
# Automating 24/7 X/Twitter Keyword & Competitor Monitoring in n8n, Make, Dify & CrewAI ($0.14/1K All-In)
Maintained by **KaitoEasyAPI Engineering** ([https://apify.com/kaitoeasyapi](https://apify.com/kaitoeasyapi)). This open-source workflow package provides copy-pasteable automation templates for **n8n** (15-minute scheduled polling to Slack, Telegram, or Notion), **Dify** (OpenAPI 3.1 Custom Tool YAML), **CrewAI** (`@tool`), and **Make.com** powered by:
- **Tweet & Search Scraper (`$0.14/1K All-In`)**: [https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest](https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest) (`kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest`)
- **Follower & Following Graph Scraper (`$0.14/1K All-In`)**: [https://apify.com/kaitoeasyapi/premium-x-follower-scraper-following-data](https://apify.com/kaitoeasyapi/premium-x-follower-scraper-following-data) (`kaitoeasyapi/premium-x-follower-scraper-following-data`)
## 24/7 Polling Cost & Billing Architecture (`isPPEPlatformUsagePaidByUser: false`)
When running a 15-minute interval scheduled monitor (`96` runs per day, fetching up to `20` latest posts per run = `1,920` items/day):
- Because `isPPEPlatformUsagePaidByUser` is set to `false` in the Actor's `pricingInfos` configuration (active across all Apify tiers including Free), the caller pays strictly the per-item event rate (`$0.00014` per item = **$0.14 per 1,000 items**) with **$0.00 in container startup or Compute Unit (CU) charges** across all 96 daily executions (**`$0.27/day` or `~$8.06/month` total**).
---
## 1. One-Click Importable n8n Workflow JSON (15-Minute Schedule -> Deduplicate -> Slack / Telegram / Notion)
Save the JSON below as `n8n-x-twitter-keyword-monitor-014.json` and import it into n8n (`Workflows -> Import from File`), then set `APIFY_TOKEN` and `SLACK_WEBHOOK_URL`:
```json
{
"name": "24/7 X/Twitter Keyword & Competitor Monitor ($0.14/1K All-In via Apify KaitoEasyAPI)",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 15
}
]
}
},
"id": "b1f20101-0001-4000-8000-000000000001",
"name": "Every 15 Minutes",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [240, 300]
},
{
"parameters": {
"method": "POST",
"url": "https://api.apify.com/v2/acts/kaitoeasyapi~twitter-x-data-tweet-scraper-pay-per-result-cheapest/run-sync-get-dataset-items",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "=Bearer {{ $env.APIFY_TOKEN }}"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\n \"searchTerms\": [\"(\\\"yourbrand\\\" OR \\\"competitor\\\") min_faves:3 -filter:replies\"],\n \"queryType\": \"Latest\",\n \"maxItems\": 25\n}",
"options": {
"timeout": 60000
}
},
"id": "b1f20101-0002-4000-8000-000000000002",
"name": "Scrape Latest Tweets ($0.00014/tweet All-In)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [480, 300]
},
{
"parameters": {
"jsCode": "const staticData = $getWorkflowStaticData('global');\nstaticData.seenIds = staticData.seenIds || [];\nconst seenSet = new Set(staticData.seenIds);\nconst fresh = [];\n\nfor (const item of $input.all()) {\n const t = item.json;\n const id = String(t.id || t.tweetId || '');\n if (!id || seenSet.has(id)) continue;\n seenSet.add(id);\n fresh.push({\n json: {\n id,\n author: t.author?.userName || t.user?.screen_name || 'unknown',\n text: t.text || t.full_text || '',\n likes: t.likeCount ?? t.favorite_count ?? 0,\n replies: t.replyCount ?? 0,\n createdAt: t.createdAt || '',\n url: t.url || `https://x.com/i/web/status/${id}`\n }\n });\n}\n\nstaticData.seenIds = Array.from(seenSet).slice(-2000);\nreturn fresh;"
},
"id": "b1f20101-0003-4000-8000-000000000003",
"name": "Deduplicate Seen Tweet IDs",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [720, 300]
},
{
"parameters": {
"method": "POST",
"url": "={{ $env.SLACK_WEBHOOK_URL }}",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"text\": \"New X/Twitter Mention (@\" + $json.author + \", ❤️ \" + $json.likes + \"):\\n\" + $json.text + \"\\n\" + $json.url\n}"
},
"id": "b1f20101-0004-4000-8000-000000000004",
"name": "Send Alert to Slack / Telegram / Notion",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [960, 300]
}
],
"connections": {
"Every 15 Minutes": {
"main": [
[
{
"node": "Scrape Latest Tweets ($0.00014/tweet All-In)",
"type": "main",
"index": 0
}
]
]
},
"Scrape Latest Tweets ($0.00014/tweet All-In)": {
"main": [
[
{
"node": "Deduplicate Seen Tweet IDs",
"type": "main",
"index": 0
}
]
]
},
"Deduplicate Seen Tweet IDs": {
"main": [
[
{
"node": "Send Alert to Slack / Telegram / Notion",
"type": "main",
"index": 0
}
]
]
}
}
}
```
---
# 24/7 X/Twitter Keyword & Competitor Monitor Templates (`$0.14/1K` All-In on Apify)
All templates below invoke **`kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest`** (`$0.14 / 1,000 tweets` = `$0.00014/tweet` flat across all Apify plans including Free Tier, with `$0` platform Compute Unit surcharge) and **`kaitoeasyapi/premium-x-follower-scraper-following-data`** (`$0.14 / 1,000 followers` flat across all plans).
- **24/7 Cost Math**: Polling every 15 minutes (`96` runs/day) fetching `20` latest tweets per run = `1,920` tweets/day = **`$0.27/day` (`~$8.06/month` total all-in)** because `isPPEPlatformUsagePaidByUser` is `false` (`0` container startup/CU surcharge across all 96 daily runs).
---
## 1. Dify Custom Tool (OpenAPI 3.1 Schema — Import in `Tools -> Custom -> Create`)
```yaml
openapi: 3.1.0
info:
title: Apify X/Twitter Real-Time Tweet & Follower Scraper ($0.14/1K All-In)
description: Fetch latest X/Twitter search tweets, threads, or follower lists at flat $0.00014/item across all Apify plans with zero compute surcharge.
version: 1.0.0
servers:
- url: https://api.apify.com/v2
paths:
/acts/kaitoeasyapi~twitter-x-data-tweet-scraper-pay-per-result-cheapest/run-sync-get-dataset-items:
post:
operationId: searchXTwitterTweets
summary: Search X/Twitter tweets by keyword, cashtag, boolean query, or author
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [searchTerms]
properties:
searchTerms:
type: array
items:
type: string
description: X/Twitter advanced search queries (e.g. ["(\"brand\" OR \"$BTC\") min_faves:5"])
queryType:
type: string
enum: [Latest, Top]
default: Latest
maxItems:
type: integer
default: 25
responses:
"201":
description: JSON array of scraped tweet objects
```
---
## 2. CrewAI `@tool` Python Integration
```python
import os
import urllib.request
import json
from crewai.tools import tool
@tool("x_twitter_keyword_monitor")
def x_twitter_keyword_monitor(query: str, max_items: int = 25) -> str:
"""Search latest X/Twitter posts for a keyword, competitor, or cashtag at $0.14/1K all-in via Apify."""
token = os.environ["APIFY_TOKEN"]
url = (
"https://api.apify.com/v2/acts/"
"kaitoeasyapi~twitter-x-data-tweet-scraper-pay-per-result-cheapest/"
"run-sync-get-dataset-items"
)
payload = json.dumps({
"searchTerms": [query],
"queryType": "Latest",
"maxItems": max_items,
}).encode("utf-8")
req = urllib.request.Request(
url,
data=payload,
headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json",
},
method="POST",
)
with urllib.request.urlopen(req, timeout=60) as resp:
items = json.loads(resp.read().decode("utf-8"))
compact = [
{
"id": t.get("id"),
"author": (t.get("author") or {}).get("userName"),
"text": t.get("text"),
"likes": t.get("likeCount"),
"createdAt": t.get("createdAt"),
"url": t.get("url"),
}
for t in items[:max_items]
]
return json.dumps(compact, ensure_ascii=False)
```
---
## 3. Make.com (Integromat) HTTP Module Blueprint
1. **Trigger**: `Schedule` -> Every `15` minutes.
2. **Action (`HTTP -> Make a request`)**:
- **URL**: `https://api.apify.com/v2/acts/kaitoeasyapi~twitter-x-data-tweet-scraper-pay-per-result-cheapest/run-sync-get-dataset-items`
- **Method**: `POST`
- **Headers**: `Authorization: Bearer <YOUR_APIFY_TOKEN>`, `Content-Type: application/json`
- **Body (Raw JSON)**: `{"searchTerms": ["(\"competitor\" OR \"alternative\") -filter:replies"], "queryType": "Latest", "maxItems": 20}`
- **Parse response**: `Yes`
3. **Router / Data Store**: Check `id` against Make Data Store (`seen_tweet_ids`) -> forward unseen items to **Slack / Telegram Bot / Notion Database**.
---
## 4. Reproducible Apify Public API Billing Verification Script (`verify_apify_twitter_pricing_2026.py`)
Any engineer can query `https://api.apify.com/v2/acts/<actor>` without an API key to inspect `pricingInfos`, `eventTieredPricingUsd`, `eventPriceUsd`, and `isPPEPlatformUsagePaidByUser`:
```python
#!/usr/bin/env python3
"""
Reproducible Live Apify Store Twitter/X Scraper Billing Audit (2026)
Queries Apify's public Actor metadata endpoint (`https://api.apify.com/v2/acts/<actor>`)
with zero API keys required so any developer can verify:
1. Per-item event rate on FREE vs Paid Apify tiers (`eventTieredPricingUsd` / `eventPriceUsd`)
2. Whether container Compute Units (CU) are passed through to the buyer (`isPPEPlatformUsagePaidByUser`)
3. Historical pricing revisions in `pricingInfos` (with exact `startedAt` UTC timestamps)
"""
import json
import datetime
import urllib.request
ACTORS = [
"kaitoeasyapi~twitter-x-data-tweet-scraper-pay-per-result-cheapest",
"kaitoeasyapi~premium-x-follower-scraper-following-data",
"xquik~x-tweet-scraper",
"apidojo~tweet-scraper",
]
def fetch_actor(slug: str) -> dict:
url = f"https://api.apify.com/v2/acts/{slug}"
req = urllib.request.Request(url, headers={"User-Agent": "ApifyPricingAudit/1.0"})
with urllib.request.urlopen(req, timeout=20) as resp:
return json.loads(resp.read().decode("utf-8"))["data"]
def extract_rate_per_1k(pricing_info: dict) -> dict:
ppe = (pricing_info or {}).get("pricingPerEvent") or {}
events = ppe.get("actorChargeEvents") or {}
for ev in events.values():
if ev.get("isPrimaryEvent") or len(events) == 1:
tiered = ev.get("eventTieredPricingUsd")
if tiered:
return {
tier: round(val["tieredEventPriceUsd"] * 1000, 4)
for tier, val in tiered.items()
}
if ev.get("eventPriceUsd") is not None:
flat = round(ev["eventPriceUsd"] * 1000, 4)
return {"ALL_TIERS": flat}
return {"MODEL": (pricing_info or {}).get("pricingModel", "UNKNOWN")}
def main() -> None:
now_utc = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
print(f"Apify Public API Pricing Audit — Retrieved {now_utc}\n" + "=" * 72)
for slug in ACTORS:
data = fetch_actor(slug)
history = data.get("pricingInfos") or []
current = history[-1] if history else {}
mem_mb = (data.get("defaultRunOptions") or {}).get("memoryMbytes")
buyer_pays_cu = bool(current.get("isPPEPlatformUsagePaidByUser"))
print(f"\nActor: {slug.replace('~', '/')}")
print(f" Total Users : {data.get('stats', {}).get('totalUsers')}")
print(f" Active From : {current.get('startedAt')}")
print(f" Rates / 1K : {json.dumps(extract_rate_per_1k(current))}")
print(f" Buyer Pays Platform Compute (isPPEPlatformUsagePaidByUser): {buyer_pays_cu} (default RAM={mem_mb}MB)")
if slug == "xquik~x-tweet-scraper" and len(history) >= 4:
prev = history[-2]
print(
f" Prior Entry : startedAt={prev.get('startedAt')} -> Rates/1K={json.dumps(extract_rate_per_1k(prev))}, "
f"isPPEPlatformUsagePaidByUser={bool(prev.get('isPPEPlatformUsagePaidByUser'))}"
)
if __name__ == "__main__":
main()
```
### Live Output Snapshot from `api.apify.com`
```text
Apify Public API Pricing Audit — Retrieved 2026-11-25T10:39:29Z
========================================================================
Actor: kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest
Total Users : 46880
Active From : 2026-11-25T10:27:04.257Z
Rates / 1K : {"FREE": 0.14, "BRONZE": 0.14, "SILVER": 0.14, "GOLD": 0.14, "PLATINUM": 0.14, "DIAMOND": 0.14}
Buyer Pays Platform Compute (isPPEPlatformUsagePaidByUser): False (default RAM=128MB)
Actor: kaitoeasyapi/premium-x-follower-scraper-following-data
Total Users : 6713
Active From : 2026-11-25T10:27:14.352Z
Rates / 1K : {"FREE": 0.14, "BRONZE": 0.14, "SILVER": 0.14, "GOLD": 0.14, "PLATINUM": 0.14, "DIAMOND": 0.14}
Buyer Pays Platform Compute (isPPEPlatformUsagePaidByUser): False (default RAM=256MB)
Actor: xquik/x-tweet-scraper
Total Users : 11550
Active From : 2026-08-29T00:00:00.000Z
Rates / 1K : {"FREE": 0.15, "BRONZE": 0.15, "SILVER": 0.15, "GOLD": 0.15, "PLATINUM": 0.15, "DIAMOND": 0.15}
Buyer Pays Platform Compute (isPPEPlatformUsagePaidByUser): True (default RAM=256MB)
Prior Entry : startedAt=2026-04-23T18:16:44.850Z -> Rates/1K={"FREE": 15.0, "BRONZE": 0.15, "SILVER": 0.15, "GOLD": 0.15, "PLATINUM": 0.15, "DIAMOND": 0.15}, isPPEPlatformUsagePaidByUser=False
Actor: apidojo/tweet-scraper
Total Users : 135891
Active From : 2026-06-09T15:21:49.332Z
Rates / 1K : {"FREE": 0.4, "BRONZE": 0.4, "SILVER": 0.4, "GOLD": 0.4, "PLATINUM": 0.4, "DIAMOND": 0.4}
Buyer Pays Platform Compute (isPPEPlatformUsagePaidByUser): False (default RAM=256MB)
```