Deploy twitter-media-tracker
A small service that verifies specific Twitter interactions
twitter-media-tracker
Just deployed
Added 1 todo
Deploy and Host twitter-media-tracker on Railway
twitter-media-tracker is a small Node.js service that verifies whether a given Twitter/X user follows a target account and whether they commented on a specific tweet. It uses Apify actors to fetch follower lists and tweet comments, aggregates results, and returns a simple verification JSON suitable for gating airdrops, contests, or moderation checks.
About Hosting twitter-media-tracker
Hosting this project on Railway requires a Node 18+ runtime, an Apify account with the two required actors added, and a valid Apify token stored as an environment variable. Deploying is straightforward: connect your repository to Railway, set the environment variables, and ensure your Apify account has sufficient credits (Starter plan or higher) because these Apify actors may be blocked for free accounts due to abuse prevention. Railway will handle the server provisioning and scaling; you only need to monitor Apify usage and set appropriate timeouts and caching policies.
Common Use Cases
- Verify entrants follow a target account and commented on a tweet for a giveaway/airdrop.
- Automated moderation or reward checks: confirm a user interacted with a specific tweet.
- Analytics or CRM enrichment: combine follower and comment data for segmentation.
Dependencies for twitter-media-tracker Hosting
- Node.js >= 18
- An Apify account with the following actors added and sufficient credits
Deployment Dependencies
- Apify actors (must be added to your Apify account):
- https://apify.com/apidojo/twitter-user-scraper — follower lists and user profiles
- https://apify.com/apidojo/tweet-scraper — tweet and comment extraction
- Railway: GitHub/Repo integration for automatic deploys and environment variable management.
- Environment variable:
APIFY_TOKEN(set in Railway's environment settings).
Implementation Details (optional)
- Required env vars (short):
- APIFY_TOKEN — Apify API token used to start/call actors (requires Starter plan or higher).
- NODE_ENV —
developmentorproduction(controls example-data vs live calls). - PORT — server port (defaults to 3000).
- Example API request (JSON payload) to verify interactions:
- POST /api/interactions/verify
- payload: { "user": "username", "tweetUrl": "https://x.com/user/status/123", "targetPage": "target_account", "timeFilter": { "since": "YYYY-MM-DD", "until": "YYYY-MM-DD" } }
- Notes: Cache follower results (24h) to reduce Apify calls and costs. If Apify calls fail, check that both actors are added to your account and that your account has credits; developer-enforced blocks can prevent free accounts from running these actors.
Why Deploy twitter-media-tracker on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying twitter-media-tracker on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
twitter-media-tracker
rubrion/twitter-media-trackerAPIFY_TOKEN
Your Apify API token used to start and call the required Apify actors. Must belong to an Apify account with sufficient credits (Starter plan or higher) — free accounts are often blocked for these actors.
