{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Lookup: Bulk WHOIS, Availability Checker & Expiry Alerts",
    "description": "Look up domains in bulk, or check names across TLDs: whether each is free, its registrar, age and expiry from the registry's RDAP, its DNS, email and DNS hosts, SPF and DMARC, and its SSL certificate. Schedule it for expiry and change alerts. Failures are free.",
    "version": "0.1",
    "x-build-id": "aPDzQwG7FRbiJhYGg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~domain-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-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/pikoulas~domain-lookup/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-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/pikoulas~domain-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-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, or URLs and email addresses to take them from. A subdomain is looked up as its registered domain (blog.example.co.uk as example.co.uk), with the SSL certificate of the subdomain itself. Give domains, names, or both.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Names to check on TLDs",
            "type": "array",
            "description": "Names, such as acme or Acme Labs, each checked on every TLD below: acme.com, acme.io and so on. Each domain checked is a lookup. Add Free domains only to get just the ones you can register.",
            "items": {
              "type": "string"
            }
          },
          "tlds": {
            "title": "TLDs",
            "type": "array",
            "description": "The TLDs each name is checked on, such as com, io or co.uk.",
            "default": [
              "com",
              "net",
              "org",
              "io",
              "ai",
              "co",
              "app",
              "dev"
            ],
            "items": {
              "type": "string"
            }
          },
          "variations": {
            "title": "Name variations",
            "type": "boolean",
            "description": "Also checks each name as get, try and use before it, and hq and app after it (getacme.com, acmehq.com): six times the lookups.",
            "default": false
          },
          "checks": {
            "title": "Checks",
            "type": "array",
            "description": "Registration is availability, registrar, dates, status and nameservers; DNS is the A, AAAA, MX, SPF and DMARC records; SSL is the certificate's issuer, expiry and validity. The price is the same for any of them.",
            "items": {
              "type": "string",
              "enum": [
                "registration",
                "dns",
                "ssl"
              ],
              "enumTitles": [
                "Registration (RDAP)",
                "DNS records",
                "SSL certificate"
              ]
            },
            "default": [
              "registration",
              "dns",
              "ssl"
            ]
          },
          "onlyAvailable": {
            "title": "Free domains only",
            "type": "boolean",
            "description": "Gives only the domains free to register. Only the domains given are charged.",
            "default": false
          },
          "expiringWithinDays": {
            "title": "Expiring within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Gives only the domains whose registration or SSL certificate expires within this many days, or has expired. Only the domains given are charged."
          },
          "memory": {
            "title": "Memory name (monitoring)",
            "type": "string",
            "description": "Keeps each domain's availability, registrar, expiry, status, nameservers, MX, SPF, DMARC and certificate, in your account's key-value store domain-lookup-memory, for the next run with the same name: each domain then has isNew, and previous, the earlier value of each of those that changed. One per schedule; a domain not looked up for 180 days is forgotten."
          },
          "onlyChanges": {
            "title": "New and changed domains only",
            "type": "boolean",
            "description": "With a memory, gives only the domains new to it or changed since its last run: one gone free, renewed, moved to another registrar or DNS host, or with a new certificate. Only the domains given are charged.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}