{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Checker: RDAP, DNS, SPF/DMARC & SSL",
    "description": "Check domains in bulk: registrar and expiry (RDAP), DNS, email provider with SPF/DKIM/DMARC grade, SSL certificate and website status, plus clear risk flags. Pay per check.",
    "version": "1.3",
    "x-build-id": "VhXiKuJjjveaMrpwJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/southern-data~domain-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-southern-data-domain-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/southern-data~domain-intel/runs": {
      "post": {
        "operationId": "runs-sync-southern-data-domain-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/southern-data~domain-intel/run-sync": {
      "post": {
        "operationId": "run-sync-southern-data-domain-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "domains": {
            "title": "Domains, URLs or email addresses",
            "type": "array",
            "description": "One per line. Anything works: \"example.com\", \"https://www.example.com/about\", \"jane@example.com\", \"Jane Doe <jane@example.com>\", quoted CSV values, and internationalised names like \"münchen.de\" (checked as punycode). Duplicates are removed; subdomains keep their host for DNS/SSL/HTTP while RDAP uses the registrable domain. Entries that cannot be parsed are listed in the dataset as rowStatus=invalid_input (free).",
            "items": {
              "type": "string"
            }
          },
          "domainsFileUrl": {
            "title": "…or a link to a domain list (CSV / TXT / Google Sheet)",
            "type": "string",
            "description": "Public URL of a .txt or .csv file, or a Google Sheets link shared as \"Anyone with the link can view\". Uses the column headed domain / website / url / host / email if there is one; otherwise the column that contains the most domains. A first row that is not a domain is treated as a header. The log names the column used. Up to 100,000 rows."
          },
          "maxDomains": {
            "title": "Max domains to check",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of domains checked in this run (0 = all). Extra domains are listed in the dataset as rowStatus=not_processed (free) so you can run them next. The full preset checks about 2–3 domains per second (1,000 ≈ 7 min).",
            "default": 0
          },
          "preset": {
            "title": "What to check (saves cost)",
            "enum": [
              "full",
              "expiry_monitor",
              "email_security",
              "website_health",
              "ownership",
              "lead_qualification",
              "custom"
            ],
            "type": "string",
            "description": "You pay only for the checks you run (and only when a check gives a conclusive answer). Pick a preset, or choose 'Custom' and tick checks below.",
            "default": "full"
          },
          "checks": {
            "title": "Custom checks",
            "type": "array",
            "description": "Only used when preset = Custom. Each ticked check is billed separately per domain.",
            "items": {
              "type": "string",
              "enum": [
                "rdap",
                "dns",
                "email",
                "ssl",
                "http"
              ],
              "enumTitles": [
                "Ownership & expiry (RDAP/WHOIS)",
                "DNS records (A, AAAA, MX, NS, TXT, CAA)",
                "Email provider & SPF/DKIM/DMARC",
                "SSL certificate",
                "Website status & hosting"
              ]
            },
            "default": [
              "rdap",
              "dns",
              "email",
              "ssl",
              "http"
            ]
          },
          "expiryWarningDays": {
            "title": "Expiry warning (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Flag domains and SSL certificates that expire within this many days.",
            "default": 30
          },
          "dkimSelectors": {
            "title": "DKIM selectors to probe",
            "type": "array",
            "description": "DKIM keys can only be found if you know the selector. The defaults cover Google, Microsoft 365, Mailchimp/Mandrill, Zoho and common generic names.",
            "default": [
              "google",
              "selector1",
              "selector2",
              "default",
              "k1",
              "s1",
              "s2",
              "mail",
              "dkim",
              "mandrill",
              "smtp",
              "zoho"
            ],
            "items": {
              "type": "string"
            }
          },
          "auRdap": {
            "title": ".au registry lookups",
            "enum": [
              "off",
              "polite"
            ],
            "type": "string",
            "description": "auDA (the .au registry) restricts automated WHOIS/RDAP querying, blacklists IPs for 24 h when its limit is hit, and does not publish .au creation/expiry dates anyway. 'Off' (default) skips .au RDAP and returns rdapStatus=skipped_registry_policy — DNS, email, SSL and HTTP still run. 'Polite' allows a few lookups per run (1 at a time, 10 s apart, max 10 per run).",
            "default": "off"
          },
          "rdapConcurrencyPerRegistry": {
            "title": "Parallel lookups per registry",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum simultaneous RDAP requests to any single registry server. Built-in profiles: .com/.net 4 at a time; .org 1 at a time (~2/s, max 250 per run, because the .org registry blocks bulk lookups for an hour); .au 1 per 10 s (max 10 per run). Changing this value can make those profiles slower, never faster.",
            "default": 2
          },
          "rdapMinIntervalMs": {
            "title": "Minimum gap between lookups (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Starting spacing between requests to one registry. Doubles automatically on every HTTP 429 and relaxes again on success. Like the setting above, a larger value also slows the built-in .com/.net/.org/.au profiles; a smaller one never speeds them up.",
            "default": 300
          },
          "rdapMaxRetries": {
            "title": "RDAP retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries on 429 / 5xx / network errors, with exponential backoff and jitter.",
            "default": 3
          },
          "rdapMaxWaitSecs": {
            "title": "Max wait for a throttled registry (s)",
            "minimum": 5,
            "maximum": 900,
            "type": "integer",
            "description": "If a registry asks us to wait longer than this (Retry-After), the row is returned immediately with rdapStatus=rate_limited_retry_later and rdapRetryAfter, instead of stalling the run. You are not charged for that RDAP check.",
            "default": 60
          },
          "rdapRegistryOverrides": {
            "title": "Per-registry overrides (advanced)",
            "type": "object",
            "description": "Fine-tune individual registries by RDAP host, e.g. {\"rdap.nic.io\": {\"concurrency\": 1, \"minIntervalMs\": 2000, \"maxRetries\": 2, \"maxPerRun\": 50, \"maxWaitSecs\": 120}}. Overrides replace the built-in profile, except for .org (rdap.publicinterestregistry.org) and .au (rdap.cctld.au), where only stricter values are applied.",
            "default": {}
          },
          "maxConcurrency": {
            "title": "Domains in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Domains processed at once. Registry limits above still apply.",
            "default": 10
          },
          "dnsServers": {
            "title": "DNS resolvers",
            "type": "array",
            "description": "Public resolvers used for lookups.",
            "default": [
              "1.1.1.1",
              "8.8.8.8"
            ],
            "items": {
              "type": "string"
            }
          },
          "dnsMode": {
            "title": "DNS transport",
            "enum": [
              "auto",
              "udp",
              "doh"
            ],
            "type": "string",
            "description": "auto = use the resolvers above and fall back to DNS-over-HTTPS (Cloudflare, then Google) if UDP DNS is blocked.",
            "default": "auto"
          },
          "selfTest": {
            "title": "Self-test mode (health check)",
            "type": "boolean",
            "description": "Ignore 'domains' and run 14 assertions against stable public test targets (github.com, example.com, badssl.com, a never-registered domain). The run FAILS if any assertion fails, so a daily schedule + Apify's failed-run alert gives you a free health check. Results: SELF_TEST in the key-value store. Self-test rows are not charged.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}