Lightweight, self-hostable crypto price & gas API. Perfect for Raspberry Pi, home servers, or any Node.js environment.
- Real-time crypto prices via CoinGecko (no API key needed)
- Trending coins endpoint
- Ethereum gas prices
- Built-in response caching (1 min TTL)
- Zero dependencies - pure Node.js
- CORS enabled
node server.js
# or
PORT=8080 node server.js| Endpoint | Description |
|---|---|
GET / |
API info and available endpoints |
GET /prices |
Top coin prices (default: BTC, ETH, SOL) |
GET /prices?ids=bitcoin,dogecoin&vs=eur |
Custom coins and currency |
GET /trending |
Trending coins on CoinGecko |
GET /gas |
Ethereum gas prices |
GET /health |
Server health and uptime |
curl http://localhost:3456/prices?ids=bitcoin,ethereum&vs=usd# systemd service
sudo cp crypto-ticker.service /etc/systemd/system/
sudo systemctl enable --now crypto-tickerIf this project is useful to you, consider supporting development:
- ETH:
0xa977ED7922703Bf4F9A14cFd27c56d3Cc571908C - SOL:
3TcijsNw7kL97QmaLHNE8gDeKt177w4PsJd8XMWDQjUn
MIT