
How to Build a Crypto Price Alert Bot in Node.js (No Dependencies)
If you trade or hold crypto, you've probably wanted a simple way to get notified when prices move. Most alert services are either paid, require account signup, or are overkill for basic monitoring. In this tutorial, we'll build a lightweight price alert bot in Node.js — zero dependencies, under 60 lines of code. It checks prices via a free API and sends alerts to Discord (or any webhook). What We're Building A script that: Watches any crypto token (BTC, ETH, SOL, etc.) Triggers alerts when price crosses your thresholds Sends notifications via Discord webhook Runs on a schedule with zero infrastructure Step 1: Get an API Key We need live crypto prices. Grab a free API key (200 credits, no credit card): curl -X POST https://agent-gateway-kappa.vercel.app/api/keys/create Save the key from the response. Step 2: The Alert Bot (60 Lines) Create price-alerts.mjs : const API_KEY = process . env . CRYPTO_API_KEY || " YOUR_KEY_HERE " ; const DISCORD_WEBHOOK = process . env . DISCORD_WEBHOOK || "
Continue reading on Dev.to Tutorial
Opens in a new tab


