{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain WHOIS Lookup",
    "description": "Check domains in bulk by RDAP and WHOIS: registrar, created and expiry dates, status codes, name servers, DNSSEC, abuse contacts and the registrant fields a registry publishes. Covers .com, .io, .co and 37 WHOIS-only endings such as .de; DNS, SPF and DMARC on request. Every domain read gets a row.",
    "version": "0.2",
    "x-build-id": "3UcNJVzfXc4AMo5yf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stackraccoon~domain-rdap/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stackraccoon-domain-rdap",
        "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/stackraccoon~domain-rdap/runs": {
      "post": {
        "operationId": "runs-sync-stackraccoon-domain-rdap",
        "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/stackraccoon~domain-rdap/run-sync": {
      "post": {
        "operationId": "run-sync-stackraccoon-domain-rdap",
        "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",
            "maxItems": 5000,
            "type": "array",
            "description": "Paste the domain names to look up, one per line, such as example.com. A pasted web address is cut to its host name, Unicode names are converted, and repeats are read once. Each entry must be a name with at least two labels, and one entry that is not (a stray word, an empty cell) refuses the whole run before any request. A leading www. is dropped (www.example.com reads example.com); any other subdomain, such as mail.example.com, is looked up as given and usually reads as not registered. Leave it empty only when you fill Names and Endings below.",
            "items": {
              "type": "string"
            }
          },
          "followRegistrar": {
            "title": "Read the registrar record too",
            "type": "boolean",
            "description": "Read the registrar's own RDAP record too, when the registry links one. For thin registries such as .com and .net, this is where the registrant organisation, when published, is found. It doubles the requests for those domains.",
            "default": true
          },
          "maxDomains": {
            "title": "Max domains",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Read at most this many domains from the list, in order. Each registered domain read is one billed result; the run's notes say how many were left out, and they are the ones after this number in your list once repeats, and a www. name beside the same name without it, are taken out.",
            "default": 200
          },
          "whoisFallback": {
            "title": "Use WHOIS where there is no RDAP",
            "type": "boolean",
            "description": "Ask the registry's WHOIS server for an ending whose registry runs no RDAP service (such as .de, .io, .co, .dk, .jp). The README lists the endings this covers and the ones it cannot read. Several of those servers ask in their own answers that they not be queried by high-volume automated means; the actor asks each server at most once every two seconds. Turn it off to get a free not-covered row for those endings and send them no request.",
            "default": true
          },
          "includeContacts": {
            "title": "Include published contact fields",
            "type": "boolean",
            "description": "Keep the registrant, admin and tech contact fields a registry or registrar publishes: names, organisations, emails, phones and the registrant's street, city and postal code. These can be a person's data; each row's personDataFields lists the ones it holds, and the run's log and HEALTH record say so. Turn it off to leave every person field empty; the registrant's organisation, region and country stay. The registrar's abuse email and phone and a privacy service's name are organisations' and are always kept.",
            "default": true
          },
          "includeDns": {
            "title": "Read DNS records",
            "type": "boolean",
            "description": "Read each registered domain's DNS records too, over DNS over HTTPS from Google's public resolver (Cloudflare's if Google fails), and its SPF and DMARC records and the mail provider its MX records point at. A domain with no registration row costs no DNS read. When both resolvers fail, the row is still saved, degraded, and says so. Off by default: it adds about nine requests a domain.",
            "default": false
          },
          "dnsRecordTypes": {
            "title": "DNS record types",
            "type": "array",
            "description": "Pick the record types to read when Read DNS records is on. The default is A, AAAA, MX, NS, TXT, CNAME, SOA and CAA. SPF needs TXT; the mail provider needs MX. The DMARC record is always read.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "AAAA",
                "CAA",
                "CNAME",
                "DNSKEY",
                "DS",
                "HTTPS",
                "MX",
                "NAPTR",
                "NS",
                "PTR",
                "SOA",
                "SRV",
                "TLSA",
                "TXT"
              ]
            },
            "default": [
              "A",
              "AAAA",
              "MX",
              "NS",
              "TXT",
              "CNAME",
              "SOA",
              "CAA"
            ]
          },
          "includeRawRecord": {
            "title": "Include the raw record",
            "type": "boolean",
            "description": "Keep the registry's whole answer on each registered domain's row: the RDAP record as JSON text, or the WHOIS answer as served. It holds the contact fields too, so a row that carries it lists it in personDataFields, and it needs Include published contact fields on. An answer over 100,000 characters is left out with a note.",
            "default": false
          },
          "names": {
            "title": "Names",
            "maxItems": 5000,
            "type": "array",
            "description": "List names without an ending, such as acme, one per line. Each is looked up under every ending in Endings, after the Domains list (acme with com and io reads acme.com and acme.io). A name already in Domains is read once. Use it with Endings; together they may make at most 5000 domains.",
            "items": {
              "type": "string"
            }
          },
          "tlds": {
            "title": "Endings",
            "maxItems": 1500,
            "type": "array",
            "description": "List the endings to cross with Names, such as com, io or co.uk, one per line; a leading dot is dropped. Use it with Names.",
            "items": {
              "type": "string"
            }
          },
          "requestDelayMs": {
            "title": "Pause per registry (ms)",
            "minimum": 200,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause between two requests to the same RDAP registry or registrar (a WHOIS server is always asked at most once every two seconds). Domains are read one at a time, so a domain on another registry goes next without this pause, while a rate-limit wait holds the whole run until it ends. After a rate-limit answer a registry's pause doubles, to at least 2 seconds, and no further once it passes 30 seconds (a longer pause you set stays as set), for the rest of the run, and it never speeds up again.",
            "default": 1000
          },
          "rateLimitWaitSeconds": {
            "title": "Rate-limit wait (s)",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Set how long to wait on a registry that answers with a rate limit and gives no Retry-After time; when it gives one, that time is used. Each further wait on the same registry doubles.",
            "default": 20
          },
          "rateLimitMaxWaits": {
            "title": "Rate-limit waits per registry",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Set how many rate-limit waits one registry gets in a run. After that, its remaining domains are not tried in this run and have a status row saying so; other registries go on.",
            "default": 2
          },
          "maxRunSeconds": {
            "title": "Wall-time bound (s)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Set the number of seconds after which no request starts; the run then writes its record and ends. Keep it under the run timeout in the run options.",
            "default": 3300
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the datacenter proxy, the default, for a fresh address per request, which spreads each registry's per-address limit; WHOIS and DNS reads go through it too. Choose no proxy to read from the run's own address.",
            "default": {
              "useApifyProxy": true
            }
          },
          "fixtureSource": {
            "title": "Fixture source (testing)",
            "type": "string",
            "description": "Owner testing only. Replays a bundled fixture with no network. Refused on the platform except in the owner's own drills; replayed rows are never billed."
          },
          "allowReplayOnPlatform": {
            "title": "Allow replay on the platform (testing)",
            "type": "boolean",
            "description": "Owner drills only: lets fixtureSource run on the platform, and only on a run the actor's owner started.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}