{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain WHOIS, DNS & SSL Checker - Bulk Expiry & Email Security",
    "description": "Check any list of domains in bulk: registration and expiry dates, registrar and status (official RDAP/WHOIS), DNS records (A, AAAA, MX, NS, TXT, CAA), SPF and DMARC, SSL certificate issuer and expiry, HTTPS redirect. Flags expiring domains and certificates. No API key needed.",
    "version": "1.0",
    "x-build-id": "1qEDyfVZmlKWrDYnt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/paperlinenstudio~domain-whois-dns-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-paperlinenstudio-domain-whois-dns-checker",
        "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/paperlinenstudio~domain-whois-dns-checker/runs": {
      "post": {
        "operationId": "runs-sync-paperlinenstudio-domain-whois-dns-checker",
        "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/paperlinenstudio~domain-whois-dns-checker/run-sync": {
      "post": {
        "operationId": "run-sync-paperlinenstudio-domain-whois-dns-checker",
        "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",
        "required": [
          "domains"
        ],
        "properties": {
          "domains": {
            "title": "Domains or URLs",
            "type": "array",
            "description": "Domains, subdomains or full URLs (e.g. example.com, shop.example.de, https://www.example.co.uk/page). Registration data is looked up for the registrable domain (example.co.uk); DNS A/AAAA, SSL and HTTP checks use the host you enter. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "checkWhois": {
            "title": "Registration data (RDAP / WHOIS)",
            "type": "boolean",
            "description": "Look up registrar, creation, expiry and last-changed dates, domain status, name servers and DNSSEC from the official registry RDAP service. Contact data of domain holders is never collected.",
            "default": true
          },
          "checkDns": {
            "title": "DNS records",
            "type": "boolean",
            "description": "Resolve the DNS record types selected below (via DNS-over-HTTPS).",
            "default": true
          },
          "dnsRecordTypes": {
            "title": "DNS record types",
            "type": "array",
            "description": "Which record types to return. Allowed: A, AAAA, CNAME, MX, NS, TXT, CAA, SOA.",
            "default": [
              "A",
              "AAAA",
              "MX",
              "NS",
              "TXT",
              "CAA"
            ],
            "items": {
              "type": "string"
            }
          },
          "checkEmailSecurity": {
            "title": "Email security (SPF & DMARC)",
            "type": "boolean",
            "description": "Find the SPF and DMARC records, read the DMARC policy and flag missing or weak setups.",
            "default": true
          },
          "checkSsl": {
            "title": "SSL certificate",
            "type": "boolean",
            "description": "Connect on port 443 and read the certificate: validity, issuer, expiry date, days left, alternative names, TLS version.",
            "default": true
          },
          "checkHttp": {
            "title": "Website / HTTPS check",
            "type": "boolean",
            "description": "Request the homepage: status code, final URL after redirects, HTTPS redirect, HSTS header, server header, response time.",
            "default": true
          },
          "expiryWarningDays": {
            "title": "Expiry warning (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Add an issue when the domain expires within this many days. SSL certificates are flagged at this value or 14 days, whichever is lower (most certificates renew automatically ~30 days before expiry).",
            "default": 30
          },
          "maxItems": {
            "title": "Max domains",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many domains.",
            "default": 100000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many domains are checked in parallel. Requests per registry are limited separately to stay polite.",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each RDAP, DNS, SSL or HTTP request.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}