{
  "openapi": "3.0.1",
  "info": {
    "title": "Email Blacklist Checker – Bulk DNSBL Lookup for Domains & IPs",
    "description": "Check domains, emails and IPv4 addresses against DNS blocklists (DNSBL/RBL): DroneBL, UCEPROTECT, Backscatterer, 0spam, PSBL. Resolves each domain's MX, SPF ip4 and A IPs, returns codes, TXT reasons and delist links. $2 per 1,000 targets.",
    "version": "0.1",
    "x-build-id": "DQupjol0QfCg2p4Qq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~email-blacklist-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-email-blacklist-checker",
        "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/gazidev~email-blacklist-checker/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-email-blacklist-checker",
        "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/gazidev~email-blacklist-checker/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-email-blacklist-checker",
        "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": {
          "targets": {
            "title": "Domains, emails or IPv4 addresses",
            "type": "array",
            "description": "One per line. For a domain (or the domain of an email address) the Actor checks the IPs of its mail servers (MX), the single `ip4:` addresses in its SPF record and its A record. IPv4 addresses are checked directly. Duplicates are skipped; invalid, private and IPv6 entries get a free error row.",
            "default": [
              "apify.com",
              "gmail.com",
              "8.8.8.8"
            ],
            "items": {
              "type": "string"
            }
          },
          "lists": {
            "title": "Blocklists",
            "type": "array",
            "description": "Which DNS blocklists to query. Only lists whose published terms allow commercial use are offered. The three network/ASN-level lists are off by default because they also list innocent neighbours of spammers.",
            "items": {
              "type": "string",
              "enum": [
                "dronebl",
                "uceprotect-1",
                "backscatterer",
                "0spam",
                "0spam-rbl",
                "psbl",
                "uceprotect-2",
                "uceprotect-3",
                "0spam-nbl"
              ],
              "enumTitles": [
                "DroneBL",
                "UCEPROTECT Level 1",
                "Backscatterer.org",
                "0spam (main)",
                "0spam RBL (realtime)",
                "PSBL",
                "UCEPROTECT Level 2 (network)",
                "UCEPROTECT Level 3 (ASN)",
                "0spam NBL (network)"
              ]
            },
            "default": [
              "dronebl",
              "uceprotect-1",
              "backscatterer",
              "0spam",
              "0spam-rbl",
              "psbl"
            ]
          },
          "checkMx": {
            "title": "Check mail server (MX) IPs",
            "type": "boolean",
            "description": "Resolve up to 3 MX hosts of each domain and check their IPv4 addresses.",
            "default": true
          },
          "checkSpf": {
            "title": "Check SPF ip4 addresses",
            "type": "boolean",
            "description": "Check single `ip4:` addresses listed in the domain's SPF record (your sending servers). CIDR ranges and `include:` providers are listed in the output but not expanded.",
            "default": true
          },
          "checkA": {
            "title": "Check website (A record) IPs",
            "type": "boolean",
            "description": "Check the IPv4 addresses of the domain itself.",
            "default": true
          },
          "maxIpsPerDomain": {
            "title": "Max IPs per domain",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Cap on IPs checked per domain (MX first, then SPF, then A). The price is per target, not per IP.",
            "default": 5
          },
          "fetchReasons": {
            "title": "Fetch listing reasons (TXT)",
            "type": "boolean",
            "description": "For every listing, also read the list's TXT record (reason text, often with a link).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel targets",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many targets are processed at once. Each blocklist is always limited to 10 queries per second, and answers are cached per IP for the run.",
            "default": 10
          },
          "timeoutSecs": {
            "title": "DNS timeout (seconds)",
            "minimum": 2,
            "maximum": 30,
            "type": "integer",
            "description": "Timeout for one DNS query. A list that does not answer in time counts as `unknown` for that IP.",
            "default": 6
          },
          "maxItems": {
            "title": "Max targets",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on how many targets from the list are checked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}