👁️ 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 证书和可用性(无需订阅)。

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 任务(每天一次)。

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).