{
    "name": "CekIPSaya API",
    "version": "1.0.0",
    "description": "Network intelligence API for Indonesia — IP, DNS, blacklist lookup.",
    "docs": "https://cekipsaya.com/docs/api/",
    "dashboard": "https://cekipsaya.com/dashboard/api/",
    "endpoints": [
        {
            "method": "GET",
            "path": "/v1/ip",
            "desc": "Lookup caller's IP (or ?lookup={ip}/{domain} for any target). Returns ISP, ASN, geo.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/dns?domain={domain}",
            "desc": "Resolve DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA).",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/blacklist?ip={ip}",
            "desc": "Check IPv4 against 12 DNSBL lists (Spamhaus, SpamCop, Barracuda, etc).",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/whois?domain={domain} or ?ip={ip}",
            "desc": "RDAP-based WHOIS lookup. Domain: registrar, expiry, nameservers. IP: network, ASN, country.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/port?host={host}&port={port}",
            "desc": "TCP port check via fsockopen. Returns open/closed + latency. SSRF protected.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/mac?mac={mac}",
            "desc": "MAC address vendor lookup via macvendors.com + maclookup.app fallback.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/ssl?host={host}&port=443",
            "desc": "TLS certificate inspection. Returns subject, issuer, expiry, SANs, days_until_expiry.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/headers?url={url}",
            "desc": "HTTP response headers inspection. Useful untuk debug cache, redirects, security headers.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/asn?asn={number}",
            "desc": "ASN deep info — holder, country, RIR, prefix counts, peer counts. bgpview.io + RIPE fallback.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/traceroute?host={host}",
            "desc": "Anti-fragile traceroute (geolocation-based path estimate). Honest 'not real ICMP' disclaimer.",
            "auth": "X-API-Key header required"
        },
        {
            "method": "GET",
            "path": "/v1/health",
            "desc": "Public health check. NO AUTH required (intentional, untuk monitoring services).",
            "auth": "No auth — public"
        }
    ],
    "tiers": {
        "free": {
            "daily": 100,
            "rpm": 30,
            "price": "Rp 0/bulan"
        },
        "dev": {
            "daily": 5000,
            "rpm": 120,
            "price": "Rp 49K/bulan (coming soon)"
        },
        "pro": {
            "daily": 50000,
            "rpm": 600,
            "price": "Rp 199K/bulan (coming soon)"
        }
    },
    "meta": {
        "build": "1.0.0",
        "indonesia_first": true
    }
}