{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk WHOIS Lookup: Domain Expiry, Registrar, Nameservers",
    "description": "Bulk WHOIS lookup: paste domains, get one row each with availability, registrar, created and expiry dates, nameservers and MX. Up to 1,000 per run, $2.50 per 1,000, errors free, no API key. Click Start: 4 example domains cost about one cent.",
    "version": "0.1",
    "x-build-id": "BthY259CGbmKgucDV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pennydata~bulk-domain-whois-dns-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pennydata-bulk-domain-whois-dns-lookup",
        "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/pennydata~bulk-domain-whois-dns-lookup/runs": {
      "post": {
        "operationId": "runs-sync-pennydata-bulk-domain-whois-dns-lookup",
        "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/pennydata~bulk-domain-whois-dns-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-pennydata-bulk-domain-whois-dns-lookup",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "availability",
              "full",
              "email-dns",
              "ssl"
            ],
            "type": "string",
            "description": "availability: fast domain availability checker (available / registered / unknown, plus registrar and expiry when registered). full: complete WHOIS (RDAP) and DNS report. email-dns: MX records, email provider (Google Workspace, Microsoft 365, Zoho...), SPF and DMARC policy and email deliverability issues per domain (DNS only, no RDAP). ssl: SSL certificate expiry check on port 443 (issuer, notBefore, notAfter, daysLeft, SANs, valid), TLS only. Priced per domain looked up, see the Pricing section of the README.",
            "default": "full"
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Domain names such as example.com, for bulk WHOIS, DNS and domain expiry checks. URLs are accepted and reduced to the host name. Maximum 1000 per run; duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs (alias of Domains)",
            "type": "array",
            "description": "Alias of Domains, for callers that pass URLs. Entries are reduced to the host name and merged with Domains; duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "includeSsl": {
            "title": "Include SSL certificate check",
            "type": "boolean",
            "description": "Full mode only. For each registered domain, open a TLS connection on port 443 and add sslIssuer and sslDaysUntilExpiry (negative if the certificate has expired). No extra charge.",
            "default": false
          },
          "alertDaysBeforeExpiry": {
            "title": "Alert days before expiry",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Domains whose registration expires within this many days (or already expired) get an entry in the alerts array, e.g. expires_in_12_days. Use it to monitor a portfolio for expiring domains.",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Total number of domains looked up in parallel. At most 5 requests are ever in flight to any single RDAP server regardless of this value.",
            "default": 20
          },
          "sheetUrl": {
            "title": "Google Sheets / CSV URL (optional)",
            "type": "string",
            "description": "Link to a Google Sheet shared as 'Anyone with the link can view' (docs.google.com/spreadsheets/d/<id>/edit#gid=0) or a CSV URL. Domains from the domain column are added to Domains."
          },
          "sheetColumn": {
            "title": "Sheet column name (optional)",
            "type": "string",
            "description": "Header of the column with domains. Default: first header containing domain, website, url or site, else the first column."
          },
          "domain": {
            "title": "Single domain (alias)",
            "type": "string",
            "description": "One domain, or several separated by spaces or commas. Alias so inputs written for other WHOIS actors work unchanged; same as adding them to Domains."
          },
          "nextStepHint": {
            "title": "Add next-step hint",
            "type": "boolean",
            "description": "In full mode, adds a nextStep text field on registered-domain rows pointing to a separate actor that finds contact emails and phones. Untick to leave it out.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}