{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number Validator & List Cleaner: Line Type & Carrier",
    "description": "Validate and clean phone lists in bulk, offline: CSV, Excel, Google Sheets, Apify datasets, numbers or text. Valid or not and why, E.164, mobile or landline, country, area, original carrier, local time and business hours, duplicates removed, type and country filters, a free summary.",
    "version": "0.1",
    "x-build-id": "9CfY8L9dKkM1DMWnp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~phone-validator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-phone-validator",
        "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/pikoulas~phone-validator/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-phone-validator",
        "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/pikoulas~phone-validator/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-phone-validator",
        "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": "One number a line, in any common format: +1 650-253-0000, (415) 555-2671, 020 7946 0018. Numbers without a + need the default country.",
            "items": {
              "type": "string"
            }
          },
          "text": {
            "title": "Text with phone numbers",
            "type": "string",
            "description": "Paste a CSV column, a page's text or any text: every phone number in it is checked once. Without a default country, only numbers starting with + are found."
          },
          "defaultCountry": {
            "title": "Default country",
            "type": "string",
            "description": "A two-letter country code such as US, GB or DE, for numbers written without + and their country code."
          },
          "datasetIds": {
            "title": "Apify datasets",
            "type": "array",
            "description": "Datasets from your account, such as a scraper's leads: the numbers in each row's phone fields are checked."
          },
          "fileUrls": {
            "title": "Files by URL",
            "type": "array",
            "description": "Direct links to CSV, TSV, Excel (XLSX, XLS), ODS, JSON or JSON Lines files, up to 100 MB each, or Google Sheets shared with anyone who has the link.",
            "items": {
              "type": "string"
            }
          },
          "phoneFields": {
            "title": "Phone columns",
            "type": "array",
            "description": "The columns or fields holding numbers, such as Phone or contact.mobile for a nested one. Left empty, every column whose name says phone, mobile, tel, cell, fax or WhatsApp. A cell with several numbers gives each.",
            "items": {
              "type": "string"
            }
          },
          "includeRecord": {
            "title": "Include each row",
            "type": "boolean",
            "description": "Each number comes with the row it was found in, so the cleaned list keeps its names and other columns.",
            "default": true
          },
          "removeDuplicates": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "A number given again, written any way (+44 20 7946 0018 or 020 7946 0018 from the UK), is counted in the summary, not given or charged again.",
            "default": true
          },
          "onlyValid": {
            "title": "Valid numbers only",
            "type": "boolean",
            "description": "Leave out invalid numbers and text that isn't a number. Left out, they aren't charged.",
            "default": false
          },
          "types": {
            "title": "Line types",
            "type": "array",
            "description": "Only numbers of these types, such as mobile for SMS. In the US and Canada, mobile and landline numbers share ranges and come as fixed line or mobile.",
            "items": {
              "type": "string",
              "enum": [
                "fixed_line",
                "fixed_line_or_mobile",
                "mobile",
                "pager",
                "personal_number",
                "premium_rate",
                "shared_cost",
                "toll_free",
                "uan",
                "unknown",
                "voicemail",
                "voip"
              ],
              "enumTitles": [
                "Fixed line",
                "Fixed line or mobile",
                "Mobile",
                "Pager",
                "Personal number",
                "Premium rate",
                "Shared cost",
                "Toll free",
                "Uan",
                "Unknown",
                "Voicemail",
                "VoIP"
              ]
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Only numbers of these countries, by two-letter code such as US, GB or DE.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}