{
  "openapi": "3.0.1",
  "info": {
    "title": "DNS Records Lookup: MX, SPF, DMARC, A, TXT ($0.5/1K)",
    "description": "DNS records lookup: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records, plus mail provider, SPF record and DMARC policy. Takes a list of domains and queries public DNS over HTTPS. Use it to check MX records and email deliverability setup (SPF, DMARC) for many domains.",
    "version": "1.0",
    "x-build-id": "2csCnGMaI7cGIWZUv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tamnt67~dns-records-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tamnt67-dns-records-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/tamnt67~dns-records-lookup/runs": {
      "post": {
        "operationId": "runs-sync-tamnt67-dns-records-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/tamnt67~dns-records-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-tamnt67-dns-records-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 to look up, one per line, for example apify.com. Full addresses are reduced to the host name.",
            "items": {
              "type": "string"
            }
          },
          "recordTypes": {
            "title": "Record types",
            "type": "array",
            "description": "DNS record types to read: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "checkEmailSecurity": {
            "title": "Check mail provider, SPF and DMARC",
            "type": "boolean",
            "description": "Add the mail provider and the SPF and DMARC records of each domain.",
            "default": true
          },
          "bulkText": {
            "title": "Bulk list (paste text or CSV)",
            "type": "string",
            "description": "Optional. Paste many domains at once, separated by new lines, commas, semicolons or spaces. Added to Domains."
          },
          "sourceFileUrl": {
            "title": "Bulk list file URL (TXT/CSV)",
            "type": "string",
            "description": "Optional. Public link to a TXT or CSV file with domains. Every value that looks like a domain is added to Domains."
          },
          "lookupRootDomain": {
            "title": "Look up the registered domain",
            "type": "boolean",
            "description": "Off: look up each name as entered (blog.example.com stays blog.example.com). On: reduce each entry to its registered domain (example.com) first.",
            "default": false
          },
          "resolver": {
            "title": "DNS resolver",
            "enum": [
              "auto",
              "cloudflare",
              "google"
            ],
            "type": "string",
            "description": "Which public DNS-over-HTTPS resolver answers the queries. Auto uses Cloudflare and switches to Google on errors.",
            "default": "auto"
          },
          "timeoutSecs": {
            "title": "Query timeout (seconds)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one DNS answer before retrying.",
            "default": 20
          },
          "checkDkim": {
            "title": "Check common DKIM selectors",
            "type": "boolean",
            "description": "Look for DKIM keys on 22 common selectors (google, selector1, selector2, k1, s1, mandrill, zoho, protonmail and more). Adds hasDkim and dkimSelectors. Selectors cannot be listed from outside, so a missing key here does not prove the domain has no DKIM.",
            "default": false
          },
          "dkimSelectors": {
            "title": "Extra DKIM selectors",
            "type": "array",
            "description": "Optional. More DKIM selectors to try, for example mail2024. Used only when Check common DKIM selectors is on.",
            "items": {
              "type": "string"
            }
          },
          "extendedEmailSecurity": {
            "title": "Extended e-mail checks: SPF lookups, MTA-STS, TLS-RPT, BIMI, grade",
            "type": "boolean",
            "description": "Count the DNS lookups the SPF record needs (limit 10), read MTA-STS, TLS-RPT and BIMI records, and add a list of issues with a score and an A-F grade.",
            "default": false
          },
          "reverseDns": {
            "title": "Reverse DNS (PTR) for IP addresses",
            "type": "boolean",
            "description": "Add the PTR host names of up to 10 A and AAAA addresses per domain. For an IPv4 address entered as the domain, its own PTR is read.",
            "default": false
          },
          "asnLookup": {
            "title": "Network owner (ASN) of IP addresses",
            "type": "boolean",
            "description": "Add the AS number, network name, IP prefix, country and registry for up to 5 addresses per domain, from the public Team Cymru IP-to-ASN DNS service.",
            "default": false
          },
          "onlyChanges": {
            "title": "Monitor mode: output only new or changed domains",
            "type": "boolean",
            "description": "Compare each domain with the result saved by the previous monitor run and save only domains that are new or changed. You pay only for saved records. IP addresses and SOA are not compared unless Compare IP addresses is on.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store in your account that keeps the previous results for monitor mode. Default: dns-records-monitor."
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name for this domain list inside the monitor store, so several schedules can share one store. Default: default."
          },
          "includeNewDomains": {
            "title": "Monitor: output domains seen for the first time",
            "type": "boolean",
            "description": "In monitor mode, also save domains that were not in the previous run (changeType new). Turn off to save only changes.",
            "default": true
          },
          "monitorIncludeAddresses": {
            "title": "Monitor: compare IP addresses",
            "type": "boolean",
            "description": "In monitor mode, also count changed A, AAAA, PTR and ASN data as a change. Off by default, because CDN and load-balanced sites rotate IP addresses all the time.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}