Deploy X/Twitter Media Tracker

A small service that verifies specific X/Twitter interactions.

Deploy X/Twitter Media Tracker

twitter-media-tracker

rubrion/twitter-media-tracker

Just deployed

Deploy and Host X Media Tracker on Railway

X Media Tracker is a small Node.js service that verifies whether a given 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 X 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 X Media Tracker Hosting

  • Node.js >= 18
  • An Apify account with the following actors added and sufficient credits

Deployment Dependencies

Implementation Details (optional)

  • Required env vars (short):
    • APIFY_TOKEN — Apify API token used to start/call actors (requires Starter plan or higher).
    • NODE_ENV — development or production (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 X 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 X 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-tracker

More templates in this category

View Template
Bugsink
Self-hosted Error Tracking. Sentry-SDK compatible

View Template
Superset
An open-source modern data exploration and visualization platform.

View Template
Vince Analytics
Cost effective, self-hosted website analytics, based on Plausible