{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Expiry & SSL Certificate Monitor - DNS Change Alerts",
    "description": "Never lose a domain or serve an expired certificate again. Checks domain expiry via RDAP, live TLS certificate expiry and validity, plus nameserver and DNS record changes. Warns before expiry and alerts when records move. No API key needed.",
    "version": "1.0",
    "x-build-id": "HZ5uW2EmeJJQPbA5O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/that_red_bird~domain-ssl-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-that_red_bird-domain-ssl-monitor",
        "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/that_red_bird~domain-ssl-monitor/runs": {
      "post": {
        "operationId": "runs-sync-that_red_bird-domain-ssl-monitor",
        "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/that_red_bird~domain-ssl-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-that_red_bird-domain-ssl-monitor",
        "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 to watch",
            "type": "array",
            "description": "Domain names or URLs. https:// and any path are removed. The host you give is the one checked for TLS and DNS (www.google.com stays www.google.com); domain expiry uses the registrable domain (google.com).",
            "default": [
              "example.com",
              "https://www.google.com"
            ]
          },
          "checkDomainExpiry": {
            "title": "Check domain expiry (RDAP)",
            "type": "boolean",
            "description": "Registrar, registration status, nameservers and the domain's expiry date.",
            "default": true
          },
          "checkCertificate": {
            "title": "Check TLS certificate",
            "type": "boolean",
            "description": "Reads the live certificate off the socket: issuer, expiry, SAN list, fingerprint and whether it validates.",
            "default": true
          },
          "checkDns": {
            "title": "Check DNS records",
            "type": "boolean",
            "description": "Snapshots DNS records over DNS-over-HTTPS and reports changes between runs.",
            "default": true
          },
          "dnsTypes": {
            "title": "DNS record types",
            "type": "array",
            "description": "Which records to snapshot. Supported: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA.",
            "default": [
              "A",
              "AAAA",
              "MX",
              "NS",
              "TXT",
              "CAA"
            ],
            "items": {
              "type": "string"
            }
          },
          "compareDnsTypes": {
            "title": "DNS types that count as a change",
            "type": "array",
            "description": "Only these record types are compared between runs. A and AAAA are excluded by default because load-balanced and CDN-fronted domains return different IPs on every query — including them would raise an alert on every run. Add \"A\" if your domain has a fixed IP.",
            "default": [
              "MX",
              "NS",
              "TXT",
              "CAA"
            ],
            "items": {
              "type": "string"
            }
          },
          "expiryWarningDays": {
            "title": "Warn when domain expires within N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Raises an alert while the domain is inside this window.",
            "default": 30
          },
          "certWarningDays": {
            "title": "Warn when certificate expires within N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Raises an alert while the certificate is inside this window.",
            "default": 21
          },
          "onlyChanges": {
            "title": "Only output alerts and changes",
            "type": "boolean",
            "description": "Push only rows that changed or raised an alert. Recommended when watching many domains.",
            "default": false
          },
          "alertOnErrorAfter": {
            "title": "Report a broken domain after N failures",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Flags a domain that keeps failing every check. 0 disables it.",
            "default": 3
          },
          "resetBaseline": {
            "title": "Reset baseline",
            "type": "boolean",
            "description": "Forget stored values and start fresh.",
            "default": false
          },
          "maxItems": {
            "title": "Max output rows",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on dataset rows per run. 0 = no cap.",
            "default": 0
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many domains to check in parallel.",
            "default": 5
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POSTed when a domain alerts. Slack/Discord/Zapier compatible."
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store holding the previous snapshot. Use different names per client.",
            "default": "domain-ssl-monitor-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}