👁️ 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
SSL 証明書と 1 つのドメインの可用性を確認します (サブスクリプションなし)。
curl "https://ip.brazya.ru/ssl-monitor.php?action=check&host=google.com"
POST ?action=subscribe
SSL の有効期限と利用可能性の通知を購読します。
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"}'
パラメータ:
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
私の購読リスト (電子メールまたは telegram_id による)。
curl "https://ip.brazya.ru/ssl-monitor.php?action=list&email=you@example.com"
GET ?action=cron&secret=CRON_SECRET
すべてのサブスクリプションの確認を開始します。 cron タスクで使用されます (1 日 1 回)。
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).