{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number Validator - Bulk Carrier & Line Type Lookup",
    "description": "Validate and normalise phone numbers in bulk. Returns E.164, country, region, timezone, line type and carrier. For US & Canada it adds the assigned LERG carrier, wireless/landline/VoIP type, rate centre and LATA from free public data - no API key, no per-lookup fees.",
    "version": "0.1",
    "x-build-id": "tGWOwSTUlcq4WqelJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~phone-number-validator-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-phone-number-validator-scraper",
        "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/scrapersdelight~phone-number-validator-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-phone-number-validator-scraper",
        "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/scrapersdelight~phone-number-validator-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-phone-number-validator-scraper",
        "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": {
          "phoneNumbers": {
            "title": "Phone numbers",
            "type": "array",
            "description": "The numbers to validate. Any format works — `+1 415 937 2000`, `(415) 937-2000`, `415.937.2000`. Numbers written without a `+` are read using the default country below. Leave this empty and add a list URL or source dataset instead if you have thousands.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "phoneNumbersText": {
            "title": "Paste a list",
            "type": "string",
            "description": "Paste numbers here instead of adding them one by one — one per line, or comma / semicolon / tab separated. Combined with anything in the field above.",
            "default": ""
          },
          "numbersFileUrl": {
            "title": "Number list URL",
            "type": "string",
            "description": "A publicly reachable TXT, CSV, JSON or JSONL file holding the numbers. CSV headers are detected automatically; a column named phone / mobile / cell / tel / number is picked unless you name one below.",
            "default": ""
          },
          "sourceDatasetId": {
            "title": "Source dataset ID",
            "type": "string",
            "description": "Read the numbers out of another Apify dataset — for example the output of a lead scraper. Paste the dataset ID.",
            "default": ""
          },
          "sourceField": {
            "title": "Phone field name",
            "type": "string",
            "description": "Which column / JSON key holds the number in the file or dataset above, e.g. `phone` or `contactNumber`. Leave empty to auto-detect.",
            "default": ""
          },
          "defaultCountry": {
            "title": "Default country",
            "type": "string",
            "description": "ISO-3166 alpha-2 code used to interpret numbers written without a `+` country code, e.g. `US`, `GB`, `DE`, `AU`. Numbers that already start with `+` ignore this.",
            "default": "US"
          },
          "dialFromCountry": {
            "title": "Dial-from country",
            "type": "string",
            "description": "ISO-3166 alpha-2 code the `format_idd` column dials from — the exact digits a phone in that country would need, including the international prefix. `US` gives `011 44 20 7183 8750` for a London number.",
            "default": "US"
          },
          "nanpEnrichment": {
            "title": "US & Canada carrier + line type",
            "type": "boolean",
            "description": "Look up the assigned carrier, wireless/landline/VoIP class, rate centre and LATA for US and Canada numbers from the free public LERG feed. This is the data libphonenumber cannot give you — it types every geographic US number as FIXED_LINE_OR_MOBILE. Adds no per-lookup fee; results are cached across runs. Switch off for a pure offline run.",
            "default": true
          },
          "lergCacheDays": {
            "title": "Carrier cache lifetime (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How long a cached NPA-NXX record stays fresh before it is refetched. The source feed updates daily but block assignments move slowly, so 30 days is a sensible balance.",
            "default": 30
          },
          "onlyValid": {
            "title": "Only valid numbers",
            "type": "boolean",
            "description": "Drop numbers that fail validation instead of returning them with a rejection reason. You are not charged for rows that are not delivered.",
            "default": false
          },
          "skipDuplicates": {
            "title": "Skip duplicates",
            "type": "boolean",
            "description": "Deliver each distinct number once. Off by default, so the output lines up row-for-row with your input list and the `is_duplicate` / `duplicate_of_index` columns tell you what repeated.",
            "default": false
          },
          "maxNumbers": {
            "title": "Max numbers",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many numbers from the merged input. 0 = no limit.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The carrier feed has no anti-bot and needs no proxy — it answered identically from a home IP, an Apify datacenter IP and an Apify residential IP when this actor was built. Add one only if you want to spread very large runs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}