{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Intel: WHOIS (RDAP), DNS, SSL & Domain Age",
    "description": "Bulk domain lookup in one row: WHOIS via RDAP (registrar, creation/expiry dates, domain age, status, nameservers, DNSSEC, abuse contact), DNS (A, AAAA, MX, NS, TXT, CAA, SOA), SPF/DMARC, email provider and SSL certificate expiry. Pay only for domains with data.",
    "version": "0.1",
    "x-build-id": "bXdk89wRreRpqmZ2r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blond_terrarium~domain-intel-whois-dns-ssl/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blond_terrarium-domain-intel-whois-dns-ssl",
        "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/blond_terrarium~domain-intel-whois-dns-ssl/runs": {
      "post": {
        "operationId": "runs-sync-blond_terrarium-domain-intel-whois-dns-ssl",
        "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/blond_terrarium~domain-intel-whois-dns-ssl/run-sync": {
      "post": {
        "operationId": "run-sync-blond_terrarium-domain-intel-whois-dns-ssl",
        "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, URLs or emails",
            "type": "array",
            "description": "One per line. Bare domains (example.com), URLs (https://www.example.co.uk/page) and email addresses (jane@example.com) are all reduced to the registrable domain (example.co.uk). Duplicates are checked once.",
            "items": {
              "type": "string"
            }
          },
          "includeWhois": {
            "title": "WHOIS (RDAP)",
            "type": "boolean",
            "description": "Registrar, IANA ID, creation/expiry/updated dates, domain age, status codes, nameservers, DNSSEC, registrant organization/country (when not redacted) and abuse contact, from the official RDAP servers.",
            "default": true
          },
          "includeDns": {
            "title": "DNS records & email security",
            "type": "boolean",
            "description": "A, AAAA, MX, NS, TXT, CAA, SOA and _dmarc records, plus email provider (Google Workspace, Microsoft 365...), SPF and DMARC policy flags.",
            "default": true
          },
          "includeSsl": {
            "title": "SSL certificate",
            "type": "boolean",
            "description": "TLS connection on port 443 (domain, then www.): issuer, subject, SANs, valid from/to, days until expiry, protocol and whether the certificate is valid.",
            "default": true
          },
          "followRegistrarRdap": {
            "title": "Ask the registrar's RDAP server too",
            "type": "boolean",
            "description": "For .com/.net and other thin registries, also query the registrar's RDAP server for registrant organization/country and abuse contact. One extra request per domain.",
            "default": true
          },
          "expiringSoonDays": {
            "title": "Expiring soon threshold (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Sets expiringSoon = true when the domain registration or the SSL certificate expires within this many days (or already has).",
            "default": 30
          },
          "maxChargedDomains": {
            "title": "Max charged domains",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many analyzed (charged) domains. 0 = no limit (the run's Max total charge still applies).",
            "default": 0
          },
          "includeFailedDomains": {
            "title": "Include free rows for invalid / unregistered domains",
            "type": "boolean",
            "description": "Adds a free row with the reason (INVALID_INPUT, NOT_REGISTERED, NO_DATA) so every input is accounted for.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Domains in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "RDAP servers are paced per registry and back off on 429 automatically, so higher values mostly help with mixed TLDs.",
            "default": 10
          },
          "dnsResolver": {
            "title": "DNS resolver",
            "enum": [
              "auto",
              "system",
              "doh"
            ],
            "type": "string",
            "description": "Auto uses the platform resolver and switches to Cloudflare DoH if it doesn't answer MX/TXT/NS.",
            "default": "auto"
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (s)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per RDAP request; the TLS handshake uses at most 10 s.",
            "default": 15
          },
          "proxyConfiguration": {
            "title": "Proxy (RDAP only)",
            "type": "object",
            "description": "Optional, usually not needed. Apify datacenter proxy or your own proxy URLs for RDAP requests. Residential proxy isn't supported."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}