Files
Domain_web/docs/API.md
Андрей Бобырев 83168af005 feat: rebrand to Domain Scanner platform
Replace GeoExport static site with Next.js domain intelligence app:
real DNS/WHOIS/SSL/HTTP/geo scans, SSE progress, Docker stack,
updated install/uninstall scripts, and full documentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 21:48:32 +03:00

797 B

API Reference

Base URL: your deployment origin (e.g. http://SERVER_IP)

POST /api/scan

Start a domain scan.

Body

{ "domain": "example.com" }

Response

{ "id": "clx...", "domain": "example.com" }

GET /api/scan/:id

Poll scan status and full result.

GET /api/scan/:id/stream

Server-Sent Events. Each event:

{ "id": "...", "status": "RUNNING", "progress": 45, "domain": "example.com" }

GET /api/export?id=:scanId&format=json|csv

Download completed scan.

GET /api/scan

List recent scans (public metadata).

POST /api/monitors

Requires session. Body: { "domain": "example.com", "type": "DNS" }

GET /api/health

Database connectivity check.

Rate limits

Default 30 scans/hour per IP (SCAN_RATE_LIMIT_PER_HOUR).