{
    "info": {
        "name": "GetDNS Public API",
        "description": "DNS, IP, ASN, and SSL lookups. Most endpoints need a Bearer token — request one at https://getdns.com.tr/api-access. The two IP-echo endpoints need no token at all.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://getdns.com.tr"
        },
        {
            "key": "token",
            "value": "YOUR_TOKEN"
        }
    ],
    "item": [
        {
            "name": "DNS Lookup",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "{{base_url}}/api/public/v1/dns/example.com/A",
                    "host": ["{{base_url}}"],
                    "path": ["api", "public", "v1", "dns", "example.com", "A"]
                }
            }
        },
        {
            "name": "IP Lookup",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "{{base_url}}/api/public/v1/ip/8.8.8.8",
                    "host": ["{{base_url}}"],
                    "path": ["api", "public", "v1", "ip", "8.8.8.8"]
                }
            }
        },
        {
            "name": "ASN Lookup",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "{{base_url}}/api/public/v1/asn/AS15169",
                    "host": ["{{base_url}}"],
                    "path": ["api", "public", "v1", "asn", "AS15169"]
                }
            }
        },
        {
            "name": "SSL Check",
            "request": {
                "method": "GET",
                "url": {
                    "raw": "{{base_url}}/api/public/v1/ssl?hostname=example.com&port=443",
                    "host": ["{{base_url}}"],
                    "path": ["api", "public", "v1", "ssl"],
                    "query": [
                        {"key": "hostname", "value": "example.com"},
                        {"key": "port", "value": "443"}
                    ]
                }
            }
        },
        {
            "name": "My IP (no token required)",
            "request": {
                "auth": {"type": "noauth"},
                "method": "GET",
                "url": {
                    "raw": "{{base_url}}/ip.txt",
                    "host": ["{{base_url}}"],
                    "path": ["ip.txt"]
                }
            }
        },
        {
            "name": "My IPv6 (no token required)",
            "request": {
                "auth": {"type": "noauth"},
                "method": "GET",
                "url": {
                    "raw": "{{base_url}}/ipv6.txt",
                    "host": ["{{base_url}}"],
                    "path": ["ipv6.txt"]
                }
            }
        }
    ]
}
