New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Search and scrape Twitter/X posts using Apify

Twitter mention tracker

by gooseworks-ai · MIT license · ★ 1,220 on GitHub · updated Sep 21

Twitter mention tracker cover

Search and scrape Twitter/X posts using Apify. Use when you need to find tweets, track brand mentions, monitor competitors on Twitter, or analyze Twitter discussions.

---
name: twitter-mention-tracker
description: >
  Search and scrape Twitter/X posts using Apify. Use when you need to find tweets,
  track brand mentions, monitor competitors on Twitter, or analyze Twitter discussions.
  Uses Twitter native search syntax (since:/until:) for reliable date filtering.
---

# Twitter Mention Tracker

Search Twitter/X posts using the Apify `apidojo/tweet-scraper` actor.

## Quick Start

Requires `APIFY_API_TOKEN` env var (or `--token` flag).

```bash
# Search with date range (recommended -- uses Twitter native since:/until: operators)

Overview

Search Twitter/X posts using the Apify apidojo/tweet-scraper actor.

Manual install (npx, ZIP)
Claude Codenpx skills add gooseworks-ai/goose-skills --skill twitter-mention-tracker -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/gooseworks-ai/goose-skills/tar.gz/615c685f34f8 \ | tar -xz -C ~/.claude/skills --strip-components=4 goose-skills-615c685f34f8/skills/monitoring/capabilities/twitter-mention-tracker
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/095925a5102e07a4c085/twitter-mention-tracker.zip" -OutFile "$env:TEMP\twitter-mention-tracker.zip"; Expand-Archive "$env:TEMP\twitter-mention-tracker.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md3.1 KB
  • skill.meta.json271 B
  • scripts/1 file · 7.9 KB
Read the files here
gooseworks-ai/615c6853 files
SKILL.md
Show the full text102 lines

Twitter Mention Tracker

Search Twitter/X posts using the Apify apidojo/tweet-scraper actor.

Quick Start

Requires APIFY_API_TOKEN env var (or --token flag).

# Search with date range (recommended -- uses Twitter native since:/until: operators)
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
  --query "YourCompany" --since 2026-02-15 --until 2026-02-23

# Quick summary of recent mentions
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
  --query "@yourhandle" --max-tweets 20 --output summary

# Search without date filtering
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
  --query "AI content marketing" --max-tweets 50

Date Filtering

Important: The apidojo/tweet-scraper actor's built-in date parameters are unreliable. This script embeds since:YYYY-MM-DD and until:YYYY-MM-DD directly into the search query string, using Twitter's native advanced search syntax. This ensures date filtering works correctly server-side.

How the Script Works

  1. Builds a search term with the query quoted and date operators appended
  2. Calls the Apify apidojo/tweet-scraper actor via REST API
  3. Polls until the run completes, then fetches the dataset
  4. Deduplicates by tweet ID/URL
  5. Applies optional keyword filtering (client-side)
  6. Sorts by likes (descending) and outputs JSON or summary

CLI Reference

Flag Default Description
--query required Search query (quoted in Twitter search)
--since none Start date YYYY-MM-DD (inclusive)
--until none End date YYYY-MM-DD (exclusive)
--max-tweets 50 Max tweets to scrape
--keywords none Additional filter keywords (comma-separated, OR logic)
--output json Output format: json or summary
--token env var Apify token (prefer APIFY_API_TOKEN env var)
--timeout 300 Max seconds to wait for the Apify run

Direct API Usage

{
  "searchTerms": ["\"YourCompany\" since:2026-02-15 until:2026-02-22"],
  "maxTweets": 50,
  "searchMode": "live"
}

Output Format

Tweets are returned as JSON array sorted by likes. Each tweet has:

{
  "id": "...",
  "text": "Tweet text...",
  "fullText": "Full tweet text...",
  "likeCount": 42,
  "retweetCount": 5,
  "replyCount": 3,
  "viewCount": 1200,
  "createdAt": "2026-02-18T12:00:00.000Z",
  "author": {"userName": "handle", "name": "Display Name", ...},
  "twitterUrl": "https://twitter.com/..."
}

Common Workflows

Competitor Monitoring
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
  --query "CompetitorName" --since 2026-02-15 --until 2026-02-23 --output summary
Brand Mention Tracking
python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
  --query "@YourHandle OR \"YourBrand\"" --max-tweets 100
1---
2name: twitter-mention-tracker
3description: >
4 Search and scrape Twitter/X posts using Apify. Use when you need to find tweets,
5 track brand mentions, monitor competitors on Twitter, or analyze Twitter discussions.
6 Uses Twitter native search syntax (since:/until:) for reliable date filtering.
7---
8 
9# Twitter Mention Tracker
10 
11Search Twitter/X posts using the Apify `apidojo/tweet-scraper` actor.
12 
13## Quick Start
14 
15Requires `APIFY_API_TOKEN` env var (or `--token` flag).
16 
17```bash
18# Search with date range (recommended -- uses Twitter native since:/until: operators)
19python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
20 --query "YourCompany" --since 2026-02-15 --until 2026-02-23
21 
22# Quick summary of recent mentions
23python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
24 --query "@yourhandle" --max-tweets 20 --output summary
25 
26# Search without date filtering
27python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
28 --query "AI content marketing" --max-tweets 50
29```
30 
31## Date Filtering
32 
33**Important:** The `apidojo/tweet-scraper` actor's built-in date parameters are unreliable.
34This script embeds `since:YYYY-MM-DD` and `until:YYYY-MM-DD` directly into the search query
35string, using Twitter's native advanced search syntax. This ensures date filtering works
36correctly server-side.
37 
38## How the Script Works
39 
401. Builds a search term with the query quoted and date operators appended
412. Calls the Apify `apidojo/tweet-scraper` actor via REST API
423. Polls until the run completes, then fetches the dataset
434. Deduplicates by tweet ID/URL
445. Applies optional keyword filtering (client-side)
456. Sorts by likes (descending) and outputs JSON or summary
46 
47## CLI Reference
48 
49| Flag | Default | Description |
50|------|---------|-------------|
51| `--query` | *required* | Search query (quoted in Twitter search) |
52| `--since` | none | Start date YYYY-MM-DD (inclusive) |
53| `--until` | none | End date YYYY-MM-DD (exclusive) |
54| `--max-tweets` | 50 | Max tweets to scrape |
55| `--keywords` | none | Additional filter keywords (comma-separated, OR logic) |
56| `--output` | json | Output format: `json` or `summary` |
57| `--token` | env var | Apify token (prefer `APIFY_API_TOKEN` env var) |
58| `--timeout` | 300 | Max seconds to wait for the Apify run |
59 
60## Direct API Usage
61 
62```json
63{
64 "searchTerms": ["\"YourCompany\" since:2026-02-15 until:2026-02-22"],
65 "maxTweets": 50,
66 "searchMode": "live"
67}
68```
69 
70## Output Format
71 
72Tweets are returned as JSON array sorted by likes. Each tweet has:
73 
74```json
75{
76 "id": "...",
77 "text": "Tweet text...",
78 "fullText": "Full tweet text...",
79 "likeCount": 42,
80 "retweetCount": 5,
81 "replyCount": 3,
82 "viewCount": 1200,
83 "createdAt": "2026-02-18T12:00:00.000Z",
84 "author": {"userName": "handle", "name": "Display Name", ...},
85 "twitterUrl": "https://twitter.com/..."
86}
87```
88 
89## Common Workflows
90 
91### Competitor Monitoring
92```bash
93python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
94 --query "CompetitorName" --since 2026-02-15 --until 2026-02-23 --output summary
95```
96 
97### Brand Mention Tracking
98```bash
99python3 skills/twitter-mention-tracker/scripts/search_twitter.py \
100 --query "@YourHandle OR \"YourBrand\"" --max-tweets 100
101```
102 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 1,220
Checked
Source
gooseworks-ai/goose-skills ↗
Creator
gooseworks-ai · 206 listings
View creator

Made with twitter-mention-tracker

Twitter mention tracker — CleanShot 2026-07-13 at 20 16 54@2x (from the gooseworks-ai/goose-skills README)
Twitter mention tracker — CleanShot 2026-07-13 at 20 16 54@2x (from the gooseworks-ai/goose-skills README)

by gooseworks-ai

Similar skills

See all →
SkillResearch what people actually say about any topicSTEP 0: STALE-CLONE SELF-CHECK — RUN BEFORE READING BELOWmvanhorn/last30days-skill · by mvanhornResearch what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web. Includes a doctor health check to diagnose broken or missing sources.★ 63.5k GitHub starsSkillScrapes social platforms, business dataApifydanielmiessler/LifeOS · by danielmiesslerScrapes social platforms, business data, and e-commerce via Apify actors — Instagram, LinkedIn, TikTok, YouTube, Facebook, Google Maps, Amazon, and web crawls — filtering in code. USE WHEN scrape Instagram, scrape LinkedIn, scrape TikTok, scrape YouTube, scrape Facebook, Google Maps leads, Amazon reviews, business intelligence, multi-platform social listening, competitive analysis, lead generation, social monitoring, Apify actors, web crawl, extract contacts. NOT FOR X/Twitter account operations like posting, threads, or bookmarks (those need a dedicated X API client), 4-tier progressive scraping with proxy escalation (use BrightData), or real-Chrome bot bypass and computer use (use Interceptor).★ 19.3k GitHub starsSkill微信公众号长文增长闭环 ——tsingyuai/growth-lab · by tsingyuai微信公众号长文增长闭环 —— 从读者问题与复刻锚选题、写出可验证的公众号长文、预览与合规检查、同步微信草稿、三重确认下受控发布,到回收阅读与转化数据并复盘。用户要求写公众号、把内容改成公众号、同步或发布微信草稿、查看公众号数据或复盘时使用。★ 2k GitHub starsSkillSearch and retrieve content from Twitter/XTwitter/X SkillReScienceLab/opc-skills · by ReScienceLabSearch and retrieve content from Twitter/X. Get user info, tweets, replies, followers, communities, spaces, and trends via twitterapi.io. Use when user mentions Twitter, X, or tweets.★ 1.8k GitHub starsSkillSays 'YouTube script', 'video script'🎬 YouTube Script: Writing retention-optimized video script...cwinvestments/memstack · by cwinvestmentsUse this skill when the user says 'YouTube script', 'video script', 'write script for YouTube', 'YouTube video outline', or is creating scripted content for a YouTube video with hooks, chapters, and CTAs. Do NOT use for TikTok/Reels short-form scripts or webinar presentations.★ 423 GitHub starsSkillAgent Reach — 互联网能力路由器Ootto-AI/claude-content-skills · by Ootto-AIMUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X / 搜搜 X / 看看大家怎么评价 X / X 上有什么讨论 / research this topic。 Also MUST USE when user mentions any platform or shares any URL/链接: 小红书/xiaohongshu/xhs, Twitter/推特/X, B站/bilibili, Reddit, V2EX, LinkedIn/领英/招聘/求职/jobs, YouTube, GitHub code search, 小宇宙播客, 雪球/股票行情, RSS feeds, or any web URL. 13 platforms, multi-backend routing (OpenCLI / per-platform CLIs / APIs). Zero config for 6 channels. Run `agent-reach doctor --json` to see which backend serves each platform right now. NOT for: 写报告/数据分析/翻译等内容加工(本 skill 只负责从互联网获取内容); 发帖/评论/点赞等写操作;已有专门 skill 的平台(先用专门 skill)。 【路由方式】SKILL.md 包含路由表和常用命令,复杂场景需按需阅读对应分类的 references/*.md。 分类:search / social (小红书/推特/B站/V2EX/Reddit) / career(LinkedIn) / dev(github) / web(网页/文章/RSS) / video(YouTube/B站/播客)。★ 139 GitHub stars

More from gooseworks-ai

SkillMine the highest-converting ad angles from customer reviewsAd angle minergooseworks-ai/goose-skills · by gooseworks-aiMine the highest-converting ad angles from customer reviews, Reddit complaints, support tickets, and competitor ads. Extracts actual pain language, competitor weaknesses, and outcome phrases that real buyers use. Outputs a ranked angle bank with proof quotes and recommended ad formats per angle.★ 1.2k GitHub starsSkillAnalyze ad campaign performance data to identify what'sAd campaign analyzergooseworks-ai/goose-skills · by gooseworks-aiAnalyze ad campaign performance data (Google, Meta, LinkedIn) to identify what's working, what's wasting budget, and specific cut/scale/test recommendations. Runs statistical analysis, funnel diagnostics, and multi-channel budget reallocation with specific dollar-amount shift recommendations and scenario modeling.★ 1.2k GitHub starsSkillFor paid lead-gen and participant-recruitment adsAd lead quality analyzergooseworks-ai/goose-skills · by gooseworks-aiFor paid lead-gen and participant-recruitment ads, replaces vanity CPA with true CAC per qualified lead by joining ad-platform data with downstream funnel events, surfaces tracking gaps, and classifies every creative into Scale / Keep / Investigate / Cut.★ 1.2k GitHub starsSkillAnalyze the message match between your ads and landing pagesAd to landing page auditorgooseworks-ai/goose-skills · by gooseworks-aiAnalyze the message match between your ads and landing pages. Checks if the promise in the ad copy carries through to the landing page headline, body, and CTA. Flags disconnects that kill conversion rates. Works with Google, Meta, and LinkedIn ads.★ 1.2k GitHub starsSkillCheck and improve your brand's visibility across AI searchAeogooseworks-ai/goose-skills · by gooseworks-aiCheck and improve your brand's visibility across AI search engines (ChatGPT, Perplexity, Gemini, Grok, Claude, DeepSeek). Set up tracking, run visibility analyses, audit your website for AI readability, and get actionable recommendations. Uses the npx goose-aeo@latest CLI.★ 1.2k GitHub starsSkillSearch Amazon products - find items, compare pricesAmazon Product Searchgooseworks-ai/goose-skills · by gooseworks-aiSearch Amazon products - find items, compare prices, read reviews★ 1.2k GitHub stars