{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number Validator - libphonenumber, Bulk E.164 Format",
    "description": "Phone number validator for bulk lists: libphonenumber validity, E.164 format, country, line type and formats; optional carrier (original allocation), region and time zone. Offline, no API key. First 25 numbers free per run, then $0.50 per 1,000. Unparseable rows are free.",
    "version": "0.1",
    "x-build-id": "oubvb1hcbXwl8w8PX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pennydata~phone-number-validator-offline/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pennydata-phone-number-validator-offline",
        "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/pennydata~phone-number-validator-offline/runs": {
      "post": {
        "operationId": "runs-sync-pennydata-phone-number-validator-offline",
        "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/pennydata~phone-number-validator-offline/run-sync": {
      "post": {
        "operationId": "run-sync-pennydata-phone-number-validator-offline",
        "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": {
          "phones": {
            "title": "Phone numbers",
            "type": "array",
            "description": "List of phone numbers to validate, in any common format. Numbers without a '+' prefix use the default region. Optional: if you leave it at the sample list and set phoneNumbers, numbers, phone or phoneNumbersText instead, that field is used.",
            "default": [
              "+1 415-555-2671",
              "+44 20 7946 0958",
              "+91 98765 43210",
              "(212) 555-0100",
              "not a number"
            ],
            "items": {
              "type": "string"
            }
          },
          "inputDatasetId": {
            "title": "Input dataset ID (optional)",
            "type": "string",
            "description": "Validate phones from another run's dataset (ID or name), e.g. a Google Maps Scraper (compass/crawler-google-places) run. Fields phoneUnformatted, internationalPhoneNumber and phone are detected automatically and title, placeId, website, address are copied onto each result row. When set, the sample list is ignored."
          },
          "phoneField": {
            "title": "Phone field in dataset (optional)",
            "type": "string",
            "description": "Only needed if your dataset uses another column name. Leave empty to auto-detect phoneUnformatted, internationalPhoneNumber, phone."
          },
          "defaultRegion": {
            "title": "Default region (ISO 3166-1 alpha-2)",
            "type": "string",
            "description": "Two-letter country code (e.g. US, GB, DE) used to interpret numbers written without an international '+' prefix. Leave empty to require the '+' prefix on every number.",
            "default": "US"
          },
          "phoneNumbersText": {
            "title": "Phone numbers as text (optional)",
            "type": "string",
            "description": "Alternative to the list above: paste numbers separated by new lines, commas or semicolons. Used when set; takes precedence over the sample list."
          },
          "defaultCountry": {
            "title": "Default country (alias of default region)",
            "type": "string",
            "description": "Same as Default region; accepted so inputs saved for other validators work. Default region wins when changed from US."
          },
          "onlyValid": {
            "title": "Only valid numbers",
            "type": "boolean",
            "description": "When on, invalid and unparseable numbers are left out of the output and not charged. Only numbers that pass validation are returned.",
            "default": false
          },
          "sampleOnly": {
            "title": "Free sample: first 10 numbers, no charge",
            "type": "boolean",
            "description": "When on, only the first 10 numbers are processed and no pay-per-event charge is made. Use it to try the output format at no cost.",
            "default": false
          },
          "phoneNumbers": {
            "title": "Phone numbers (alias of phones)",
            "type": "array",
            "description": "Same as Phone numbers; accepted so an input saved for another phone validator runs unchanged. Strings or {phone|number} objects.",
            "items": {
              "type": "string"
            }
          },
          "numbers": {
            "title": "Numbers (alias of phones)",
            "type": "array",
            "description": "Same as Phone numbers (alias).",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (alias of default region)",
            "type": "string",
            "description": "Same as Default region; accepted for inputs saved for other validators."
          },
          "defaultCountryCode": {
            "title": "Default country code (alias of default region)",
            "type": "string",
            "description": "Same as Default region; accepted for inputs saved for other validators."
          },
          "maxResults": {
            "title": "Max numbers (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Process at most this many numbers from the list. 0 or empty means all."
          },
          "includeCarrier": {
            "title": "Include carrier (ignored)",
            "type": "boolean",
            "description": "Accepted for compatibility with other validators; this actor is offline and does not return this field, so the flag is ignored."
          },
          "includeGeocoding": {
            "title": "Include geocoding (ignored)",
            "type": "boolean",
            "description": "Accepted for compatibility with other validators; this actor is offline and does not return this field, so the flag is ignored."
          },
          "includeTimezone": {
            "title": "Include timezone (ignored)",
            "type": "boolean",
            "description": "Accepted for compatibility with other validators; this actor is offline and does not return this field, so the flag is ignored."
          },
          "formats": {
            "title": "Formats (ignored)",
            "type": "array",
            "description": "Accepted for compatibility; every row always includes E.164, national and international formats.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency (ignored)",
            "type": "integer",
            "description": "Accepted for compatibility; ignored."
          },
          "includeGeoCarrier": {
            "title": "Enrichment: carrier, region, time zone (offline)",
            "type": "boolean",
            "description": "When on, valid numbers get a carrier name (original mobile carrier, from libphonenumber metadata) and a geoLocation text (city or region) and timeZones (IANA names). Offline lookup, so carrier reflects the original allocation and ignores number porting. Off by default; output is unchanged when off.",
            "default": false
          },
          "sheetUrl": {
            "title": "Google Sheets / CSV URL (optional)",
            "type": "string",
            "description": "Link to a Google Sheet shared as 'Anyone with the link can view' (docs.google.com/spreadsheets/d/<id>/edit#gid=0) or a CSV URL. Numbers from the phone column are added to Phone numbers."
          },
          "sheetColumn": {
            "title": "Sheet column name (optional)",
            "type": "string",
            "description": "Header of the column with phone numbers. Default: first header containing phone, mobile or tel, else the first column."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}