{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Checker – WHOIS/RDAP, DNS, SSL & Email Security in Bulk",
    "description": "Bulk domain lookup: registrar, creation and expiry dates (RDAP with WHOIS fallback), DNS records (A, MX, NS, TXT, CAA, SOA), SPF/DMARC/DKIM, email provider, SSL certificate expiry, HTTP redirects and HSTS, plus ready-made risk flags. One row per domain, no API keys.",
    "version": "0.1",
    "x-build-id": "nfE8K8gaKowN7jEdg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~domain-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-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/gazidev~domain-intel/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-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/gazidev~domain-intel/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-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",
            "type": "array",
            "description": "Domains to check, e.g. `example.com`. URLs (`https://www.example.com/page`) and email addresses (`jane@example.com`) are accepted too: registration, DNS and email checks run on the registrable domain, SSL and HTTP checks on the exact host you entered.",
            "default": [
              "apify.com",
              "github.com",
              "bbc.co.uk"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (paste text or CSV)",
            "type": "string",
            "description": "Paste a long list: one domain per line, comma/semicolon separated, or a whole CSV export (the first cell that looks like a domain, URL or email in each row is used)."
          },
          "sourceFileUrl": {
            "title": "Bulk list file URL (TXT/CSV)",
            "type": "string",
            "description": "Public URL of a .txt or .csv file with domains (e.g. a Google Sheets 'Publish to web' CSV link)."
          },
          "checkRegistration": {
            "title": "Registration data (RDAP / WHOIS)",
            "type": "boolean",
            "description": "Registrar, creation/update/expiry dates, days to expiry, status codes, name servers and DNSSEC. Uses the official RDAP protocol (IANA bootstrap) and falls back to port-43 WHOIS for TLDs without RDAP.",
            "default": true
          },
          "checkDns": {
            "title": "DNS records + email security",
            "type": "boolean",
            "description": "A, AAAA, MX, NS, TXT, CAA and SOA records; SPF, DMARC, MTA-STS, TLS-RPT and BIMI; email provider detected from MX/SPF (Google Workspace, Microsoft 365, Zoho...).",
            "default": true
          },
          "checkDkim": {
            "title": "Probe DKIM selectors",
            "type": "boolean",
            "description": "Look up ~25 common DKIM selectors (google, selector1/2, k1, default, s1...). DKIM has no discovery mechanism, so a miss means 'not found under common selectors', not 'no DKIM'.",
            "default": true
          },
          "dkimSelectors": {
            "title": "Extra DKIM selectors",
            "type": "array",
            "description": "Additional selectors to try, e.g. `mailo`, `cm`, `scph0922`.",
            "items": {
              "type": "string"
            }
          },
          "checkSsl": {
            "title": "SSL/TLS certificate",
            "type": "boolean",
            "description": "TLS handshake on port 443: validity, issuer, subject, SANs, valid from/to, days left, protocol and cipher.",
            "default": true
          },
          "checkHttp": {
            "title": "Website (HTTP)",
            "type": "boolean",
            "description": "Final URL after redirects, status code, page title, Server header, HSTS, http->https redirect and common security headers.",
            "default": true
          },
          "domainExpiryWarningDays": {
            "title": "Domain expiry warning (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Add the `domain_expiring_soon` flag when the domain expires within this many days.",
            "default": 30
          },
          "sslExpiryWarningDays": {
            "title": "SSL expiry warning (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Add the `ssl_expiring_soon` flag when the certificate expires within this many days.",
            "default": 14
          },
          "whoisFallback": {
            "title": "WHOIS fallback",
            "type": "boolean",
            "description": "Use port-43 WHOIS for TLDs that have no RDAP service (e.g. .com.tr, .co.jp, .it, .eu, .ru).",
            "default": true
          },
          "followRegistrarRdap": {
            "title": "Also query the registrar's RDAP",
            "type": "boolean",
            "description": "For thin registries like .com/.net, also fetch the registrar's RDAP record, which sometimes adds registrant organization and country (when not redacted). Slower.",
            "default": false
          },
          "includeRawWhois": {
            "title": "Include raw WHOIS text",
            "type": "boolean",
            "description": "Add the raw WHOIS answer (up to 4,000 characters) for domains looked up via WHOIS.",
            "default": false
          },
          "dnsResolvers": {
            "title": "DNS resolvers",
            "type": "array",
            "description": "Optional resolver IPs, e.g. `1.1.1.1`, `8.8.8.8`. Empty = system resolver.",
            "items": {
              "type": "string"
            }
          },
          "maxDomains": {
            "title": "Max domains",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many domains (0 = no limit).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Domains processed in parallel. RDAP/WHOIS servers are additionally rate-limited per server.",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each network request (RDAP, WHOIS, DNS, TLS, HTTP).",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}