{
  "openapi": "3.0.1",
  "info": {
    "title": "Contact Data Cleaner: Phone, Email & Name Validator",
    "description": "Validate and format phone numbers (libphonenumber, 240+ regions), verify email syntax + MX + disposable/role/typos, clean names, parse money in any locale, normalize countries and postal codes, and dedupe CRM rows. Bulk, offline-fast, agent-ready JSON.",
    "version": "0.0",
    "x-build-id": "WKif7QtxgiHPqrKEF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dodiabak~contact-data-cleaner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dodiabak-contact-data-cleaner",
        "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/dodiabak~contact-data-cleaner/runs": {
      "post": {
        "operationId": "runs-sync-dodiabak-contact-data-cleaner",
        "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/dodiabak~contact-data-cleaner/run-sync": {
      "post": {
        "operationId": "run-sync-dodiabak-contact-data-cleaner",
        "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": [
          "items"
        ],
        "properties": {
          "items": {
            "title": "Items",
            "type": "array",
            "description": "Values, typed values or records (CRM/CSV rows). Record columns are recognized by name: email, phone/mobile/tel, name/first_name/last_name, country, zip/postal_code, price/amount/total. Use fieldMap for other column names."
          },
          "defaultType": {
            "title": "Type for plain values",
            "enum": [
              "auto",
              "phone",
              "email",
              "name",
              "amount",
              "country",
              "postalCode"
            ],
            "type": "string",
            "description": "How to read plain string/number items. Auto-detect looks at the value.",
            "default": "auto"
          },
          "defaultCountry": {
            "title": "Default country (ISO 3166-1 alpha-2)",
            "type": "string",
            "description": "Used for phone numbers without +countrycode and for postal codes, e.g. US, GB, DE, IN, SA. A record's own country column wins.",
            "default": "US"
          },
          "checkMx": {
            "title": "Check MX records",
            "type": "boolean",
            "description": "Look up the domain's mail servers (DNS) to catch domains that cannot receive mail. Cached per domain. No SMTP/mailbox probing is done.",
            "default": true
          },
          "dnsMode": {
            "title": "DNS transport",
            "enum": [
              "doh",
              "system"
            ],
            "type": "string",
            "description": "How MX lookups are made.",
            "default": "doh"
          },
          "dnsTimeoutMs": {
            "title": "DNS timeout (ms)",
            "minimum": 500,
            "maximum": 20000,
            "type": "integer",
            "description": "Per lookup.",
            "default": 4000
          },
          "numberLocale": {
            "title": "Number locale hint",
            "type": "string",
            "description": "Only used when a separator is ambiguous, e.g. \"1,234\". \"auto\" treats a lone separator followed by 3 digits as thousands; \"de-DE\" reads it as a decimal comma.",
            "default": "auto"
          },
          "outputLocale": {
            "title": "Output locale for formatted numbers",
            "type": "string",
            "description": "BCP 47 tag for the \"formatted\" field, e.g. en-US, de-DE, fr-FR, ar-SA.",
            "default": "en-US"
          },
          "nameCase": {
            "title": "Fix name capitalization",
            "enum": [
              "auto",
              "always",
              "never"
            ],
            "type": "string",
            "description": "auto keeps intentional mixed case like \"McDonald\" or \"DeShawn\".",
            "default": "auto"
          },
          "markDuplicates": {
            "title": "Mark duplicates",
            "type": "boolean",
            "description": "Flag repeated people in the batch (same canonical email, then E.164 phone, then name) with isDuplicate and duplicateOf.",
            "default": true
          },
          "fieldMap": {
            "title": "Column mapping",
            "type": "object",
            "description": "Force how record columns are read, e.g. {\"Kontakt\":\"name\",\"Handy\":\"phone\",\"Land\":\"country\"}.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}