👁️ SSL/Domain Monitor — API
Monitoring of SSL certificates and domain availability with notifications via Telegram (@brazya_ssl_bot), Email, and Webhook. Suitable for production use.
GET ?action=check&host=example.com
Check the SSL certificate and availability of one domain (without subscription).
curl "https://ip.brazya.ru/ssl-monitor.php?action=check&host=google.com"
POST ?action=subscribe
Subscribe to SSL expiration and availability notifications.
curl -X POST "https://ip.brazya.ru/ssl-monitor.php?action=subscribe" \
-H "Content-Type: application/json" \
-d '{"host":"google.com","telegram_id":123456,"threshold":14,"email":"you@example.com"}'
Parameters:
host (required),
telegram_id or email (at least one),
threshold (days, default 30),
webhook_url (optional).
POST ?action=unsubscribe
Unsubscribe from notifications (requires host + contact).
curl -X POST "https://ip.brazya.ru/ssl-monitor.php?action=unsubscribe" \
-H "Content-Type: application/json" \
-d '{"host":"google.com","telegram_id":123456}'
GET ?action=list
List of my subscriptions (by email or telegram_id).
curl "https://ip.brazya.ru/ssl-monitor.php?action=list&email=you@example.com"
GET ?action=cron&secret=CRON_SECRET
Start checking all subscriptions.
curl "https://ip.brazya.ru/ssl-monitor.php?action=cron&secret=YOUR_SECRET"
The secret is stored in .htaccess as SetEnv CRON_SECRET.
📖 See also monitor.php (subscription UI) or api-docs.php (documentation for other APIs).