{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk WHOIS Domain Lookup: Age, Expiry, Registrar, DNS & SSL",
    "description": "Bulk WHOIS lookup, domain age checker and domain expiry checker: check when a domain was registered, its expiration date, registrar and if the domain is available, for any list or Google Sheet. Plus DNS, MX, SPF/DMARC, SSL expiry and hosting. One row per domain, ready for Excel.",
    "version": "1.0",
    "x-build-id": "YMwCkilJeP3OKmWuu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fguiraud~bulk-whois-domain-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fguiraud-bulk-whois-domain-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/fguiraud~bulk-whois-domain-lookup/runs": {
      "post": {
        "operationId": "runs-sync-fguiraud-bulk-whois-domain-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/fguiraud~bulk-whois-domain-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-fguiraud-bulk-whois-domain-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": {
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Domains (example.com) or website URLs (https://www.example.com/page). Each registrable domain is looked up once. Optional if you use 'Domain list URL' below.",
            "items": {
              "type": "string"
            }
          },
          "domainsFromUrl": {
            "title": "Domain list URL (TXT, CSV or Google Sheet)",
            "type": "string",
            "description": "Link to a plain-text or CSV file with one domain/URL per row, or a Google Sheets link shared as \"Anyone with the link\". In each row the first cell that looks like a domain or URL is used; headers and other columns are ignored."
          },
          "datasetId": {
            "title": "Domains from another Actor's dataset (optional)",
            "type": "string",
            "description": "A dataset from another Actor run, e.g. Google Maps places or a lead list: the website or domain in each row is used (fields website, domain, url...). Pick it here so the Actor is allowed to read it. Up to 100,000 rows."
          },
          "datasetItems": {
            "title": "Or paste dataset rows (optional)",
            "type": "array",
            "description": "Rows from another Actor's dataset, e.g. [{\"title\": \"Cafe\", \"website\": \"https://example.com\"}], or plain domains."
          },
          "datasetField": {
            "title": "Dataset field with the website (optional)",
            "type": "string",
            "description": "Field of the rows that holds the website or domain, e.g. website or company.url (dot path). Leave empty to detect it."
          },
          "includeSsl": {
            "title": "Include SSL certificate expiry",
            "type": "boolean",
            "description": "Also check the website's SSL certificate (issuer, expiry date, days left). Same price.",
            "default": true
          },
          "includeDns": {
            "title": "Include DNS records",
            "type": "boolean",
            "description": "A, AAAA, MX, NS, TXT, CAA, SOA and CNAME records, email provider, SPF and DMARC. Turn off for the fastest WHOIS-only lookups of very large lists. Same price.",
            "default": true
          },
          "includeHosting": {
            "title": "Include hosting (IP owner and country)",
            "type": "boolean",
            "description": "Who hosts the website's IP address (e.g. Cloudflare, Amazon), its network, IP range and country, from the IP registries (RDAP). Adds about 1 s per domain. Same price.",
            "default": false
          },
          "includeHttpStatus": {
            "title": "Include website status",
            "type": "boolean",
            "description": "Whether the website answers: HTTP status, final URL after redirects, page title and server. Finds parked, redirected or dead domains. Adds 1-20 s per domain. Same price.",
            "default": false
          },
          "includeDkim": {
            "title": "Include DKIM check",
            "type": "boolean",
            "description": "Looks for DKIM keys under the selectors used by Google, Microsoft 365, Zoho, SendGrid, Amazon SES and other common senders (DKIM keys cannot be listed, so a missing key may use another selector). Same price.",
            "default": false
          },
          "includeSubdomains": {
            "title": "Include common subdomains",
            "type": "boolean",
            "description": "Which of 20 common subdomains exist (www, mail, shop, api, app, blog, dev, staging...). Domains with wildcard DNS are not reported. Same price.",
            "default": false
          },
          "includeWayback": {
            "title": "Include Wayback Machine history",
            "type": "boolean",
            "description": "First and last capture of the website in the Internet Archive's Wayback Machine and the website's real age in years (often older than the current registration). Adds 1-10 s per domain. Same price.",
            "default": false
          },
          "alertDaysBeforeExpiry": {
            "title": "Expiry alert (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Add an alert when the domain registration or the SSL certificate expires within this many days.",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Max parallel domains",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many domains are looked up at the same time.",
            "default": 10
          },
          "dnsResolver": {
            "title": "DNS servers (optional)",
            "type": "string",
            "description": "IP addresses of the DNS servers to use, e.g. '1.1.1.1, 8.8.8.8'. Leave empty for the default resolver."
          },
          "failOnError": {
            "title": "Fail the run if a domain fails completely",
            "type": "boolean",
            "description": "Mark the run as FAILED when any domain returns no data at all. Useful for monitoring pipelines.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}