{
  "openapi": "3.0.1",
  "info": {
    "title": "Subdomain Finder: Certificate Transparency Scan",
    "description": "Find subdomains of any domain from Certificate Transparency (crt.sh) logs: hostnames, first and last seen, wildcard and valid-cert flags, issuer summary per domain. Export CSV, Excel, JSON. No login or API key. Example: mercadolibre.com returned 129 subdomains from 624 certificates.",
    "version": "0.1",
    "x-build-id": "rWg2JpRn3p3VbK8Ss"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~subdomain-finder-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-subdomain-finder-scraper",
        "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/recordsdata~subdomain-finder-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-subdomain-finder-scraper",
        "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/recordsdata~subdomain-finder-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-subdomain-finder-scraper",
        "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": "Root domains",
            "maxItems": 2000,
            "type": "array",
            "description": "One domain per line, no https:// and no subdomain. Example: apify.com. Up to 2,000 per run.",
            "default": [
              "apify.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max result rows (free plan: 10)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows (subdomains, summaries and certificates together). Free plan: 10. Paid: up to 1,000,000. Also caps your spend.",
            "default": 10
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Certificate Transparency is the default and the only source with certificate history. The others add hosts without certificates. HackerTarget allows about 50 searches per day per IP; RapidDNS returns up to 100 hosts.",
            "items": {
              "type": "string",
              "enum": [
                "ct",
                "hackertarget",
                "rapiddns",
                "subdomaincenter"
              ],
              "enumTitles": [
                "Certificate Transparency (crt.sh, Cert Spotter)",
                "HackerTarget",
                "RapidDNS",
                "subdomain.center"
              ]
            },
            "default": [
              "ct"
            ]
          },
          "bruteForce": {
            "title": "Guess common host names (optional)",
            "enum": [
              "none",
              "small",
              "medium"
            ],
            "type": "string",
            "description": "Tries names like www, mail, api, dev with one DNS lookup each and keeps those that exist. Small = 59 names, Medium = 311, a few seconds per domain. Skipped while Only currently valid certificates is on.",
            "default": "none"
          },
          "resolveIps": {
            "title": "Look up IP addresses (DNS)",
            "type": "boolean",
            "description": "Adds dnsResolves, ipAddresses, cname, behindCloudflare and wildcardDnsMatch to each host.",
            "default": false
          },
          "httpProbe": {
            "title": "Check HTTP status and page title",
            "type": "boolean",
            "description": "Sends one GET request per resolving host and adds isAlive, httpStatus, httpTitle, httpServer and response time. Turns the DNS lookup on.",
            "default": false
          },
          "probeTimeoutSecs": {
            "title": "HTTP timeout per host (seconds, 1-10)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How long to wait for each HTTP attempt. Example: 5. Used only when the HTTP check is on.",
            "default": 5
          },
          "onlyValidCerts": {
            "title": "Only hosts with a currently valid certificate",
            "type": "boolean",
            "description": "Keeps subdomains that appear on at least one non-expired certificate.",
            "default": false
          },
          "includeWildcards": {
            "title": "Keep wildcard entries (*.domain.com)",
            "type": "boolean",
            "description": "Wildcard entries are returned as their own rows. Turn off to list real hosts only.",
            "default": true
          },
          "onlyResolving": {
            "title": "Only hosts that resolve in DNS (turns on DNS lookup)",
            "type": "boolean",
            "description": "Drops hosts without a working A, AAAA or CNAME record, so expired and internal names disappear.",
            "default": false
          },
          "skipWildcardDnsMatches": {
            "title": "Drop wildcard-DNS lookalikes (turns on DNS lookup)",
            "type": "boolean",
            "description": "Some domains answer every name with the same address. Hosts matching that catch-all answer are dropped as noise. Without this they are kept and flagged in wildcardDnsMatch.",
            "default": false
          },
          "onlyAlive": {
            "title": "Only hosts that answer over HTTP (turns on HTTP check)",
            "type": "boolean",
            "description": "Keeps hosts that return an HTTP response on port 443 or 80.",
            "default": false
          },
          "includeDomainSummary": {
            "title": "Add one summary row per domain",
            "type": "boolean",
            "description": "Total certificates, unique subdomains and top issuers for each domain. Billed as its own event.",
            "default": true
          },
          "includeCertificates": {
            "title": "Add one row per certificate (up to 200 per domain)",
            "type": "boolean",
            "description": "Issuer, common name, validity window and crt.sh id. Needs the Certificate Transparency source. Billed as its own event.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}