{
  "openapi": "3.0.1",
  "info": {
    "title": "Reverse Phone Lookup & Phone Number Validator",
    "description": "Reverse phone lookup and bulk phone validator in one actor. Every number gets valid/invalid, E.164, country, region, line type and the carrier for its number range. Turn on owner lookup for US numbers to add name, age, emails, other phones, addresses and relatives. Pay per match, misses free.",
    "version": "0.0",
    "x-build-id": "9qq3lSyR9hW5FENxh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~phone-enrichment/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-phone-enrichment",
        "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/memo23~phone-enrichment/runs": {
      "post": {
        "operationId": "runs-sync-memo23-phone-enrichment",
        "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/memo23~phone-enrichment/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-phone-enrichment",
        "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": "Phone numbers to validate and (optionally) enrich — one per entry. E.164 format like +15558675309 is best; local numbers like (555) 867-5309 work when you also set a Default country. Any punctuation (spaces, dashes, parentheses, a leading +) is fine — it's stripped automatically. Free Apify plan: the first 3 rows are complete; later rows hide line type, region, carrier and owner details (any paid plan shows everything).",
            "items": {
              "type": "string"
            }
          },
          "phoneNumbersText": {
            "title": "Paste a list of numbers",
            "type": "string",
            "description": "Alternative to the field above — paste a whole column of numbers separated by new lines, commas, or semicolons. Merged and de-duplicated with the Phone numbers list."
          },
          "csvFile": {
            "title": "CSV file URL or inline CSV text",
            "type": "string",
            "description": "HTTP(S) URL to a CSV file (max 10 MB, 15 s timeout) OR raw inline CSV text. Automatically detects phone columns (`phone`, `phone_number`, `mobile`, `cell`, `telephone`, `e164`, etc.) or single-column lists."
          },
          "csvUrl": {
            "title": "CSV URL (alias for CSV file)",
            "type": "string",
            "description": "Drop-in alias for `csvFile` — HTTP(S) URL to a CSV file or raw inline CSV text."
          },
          "datasetId": {
            "title": "Source Apify dataset ID",
            "type": "string",
            "description": "Load phone numbers directly from an existing Apify dataset. Automatically extracts `phone`, `phoneNumber`, `mobile`, `cell`, `telephone`, `e164`, and `phones` fields from each item."
          },
          "defaultCountry": {
            "title": "Default country (for local numbers)",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code (e.g. US, GB, DE) used to parse numbers that DON'T start with a + and country code. Leave empty if every number is already in +E.164 form."
          },
          "includeGeoCarrier": {
            "title": "Include region & carrier",
            "type": "boolean",
            "description": "Attach the geographic region (e.g. \"California\") and mobile carrier / network operator (e.g. \"Verizon\") for each number, taken from the number's assigned range. Turn off for a slightly faster run.",
            "default": true
          },
          "onlyValid": {
            "title": "Only output valid numbers",
            "type": "boolean",
            "description": "Emit only rows that parse to a valid, assigned number for their country — drops garbage / typo / unassigned input so your export is clean.",
            "default": false
          },
          "dedupeNumbers": {
            "title": "Deduplicate normalized E.164 numbers",
            "type": "boolean",
            "description": "Deduplicate numbers by normalized E.164 format (e.g. `+1 212-867-5309` and `(212) 867-5309` collapse into one) BEFORE paid owner enrichment, dataset push, and billing.",
            "default": false
          },
          "lineTypes": {
            "title": "Filter by line types",
            "type": "array",
            "description": "Keep only matching line types (case-insensitive), e.g. `mobile`, `landline` (`fixed_line`), `voip`, `toll_free`, `fixed_line_or_mobile`. Runs before paid owner enrichment and billing.",
            "items": {
              "type": "string"
            }
          },
          "mobileOnly": {
            "title": "Mobile / wireless lines only",
            "type": "boolean",
            "description": "Shorthand to keep only mobile/wireless-capable lines (`MOBILE` and, where offline metadata does not distinguish mobile vs fixed such as US/CA, `FIXED_LINE_OR_MOBILE`). Drops landlines, VoIP, and toll-free numbers before paid enrichment and billing.",
            "default": false
          },
          "carriers": {
            "title": "Include carriers (substring match)",
            "type": "array",
            "description": "Keep only numbers whose parsed carrier contains one of these names (case-insensitive, e.g. `T-Mobile`, `Vodafone`, `O2`). Runs before paid owner enrichment and billing.",
            "items": {
              "type": "string"
            }
          },
          "excludeCarriers": {
            "title": "Exclude carriers (substring match)",
            "type": "array",
            "description": "Drop numbers whose parsed carrier contains any of these names (case-insensitive). Runs before paid owner enrichment and billing.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Include countries (ISO-2 codes)",
            "type": "array",
            "description": "Keep only numbers belonging to these ISO 3166-1 alpha-2 country codes (e.g. `US`, `GB`, `DE`). Runs before paid owner enrichment and billing.",
            "items": {
              "type": "string"
            }
          },
          "excludeCountries": {
            "title": "Exclude countries (ISO-2 codes)",
            "type": "array",
            "description": "Drop numbers belonging to these ISO 3166-1 alpha-2 country codes (e.g. `US`, `CA`). Runs before paid owner enrichment and billing.",
            "items": {
              "type": "string"
            }
          },
          "enrichOwner": {
            "title": "🔎 Enrich US owner (reverse phone → the person)",
            "type": "boolean",
            "description": "Opt-in reverse lookup for US numbers. When on, each valid US 10-digit number is resolved to the person behind it — full name, age, emails, other phone numbers, current + past addresses (with coordinates when available), relatives and associates. Non-US numbers and numbers that don't resolve are skipped. Billed per matched owner only — misses are FREE. Adds an `owner` object and an `ownerMatched` flag to each row.",
            "default": false
          },
          "onlyMatched": {
            "title": "Only output rows with a matched owner",
            "type": "boolean",
            "description": "When owner enrichment is on, emit only the numbers that resolved to a person — so your dataset is pure enriched contacts. Has no effect unless \"Enrich US owner\" is on.",
            "default": false
          },
          "enrichConcurrency": {
            "title": "Enrichment concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many US owner lookups to run in parallel. Higher is faster but heavier on the reverse-lookup source; 5 is a safe default. Only matters when \"Enrich US owner\" is on.",
            "default": 5
          },
          "compact": {
            "title": "Compact output rows",
            "type": "boolean",
            "description": "Emit concise rows omitting verbose/raw fields while preserving `inputPhone`, `e164`, `internationalFormat`, `isValid`, `countryCode`, `region`, `lineType`, `carrier` (and `ownerName`, `ownerAge`, `ownerAddress`, `ownerEmails`, `matched` when owner enrichment is enabled).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively strip `null`, `undefined`, `\"\"`, `[]`, and `{}` from each output row while strictly preserving `0` and `false`.",
            "default": false
          },
          "maxItems": {
            "title": "Max numbers",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on how many numbers to process / emit this run.",
            "default": 100000
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Optional. Residential proxies recommended. The default works out of the box."
          },
          "phone": {
            "title": "Single phone number (alias for phoneNumbers)",
            "type": "string",
            "description": "Drop-in alias for `phoneNumbers` — pass a single phone number (or comma/newline-delimited numbers)."
          },
          "phones": {
            "title": "Phones (alias for phoneNumbers)",
            "type": "array",
            "description": "Drop-in alias for `phoneNumbers`.",
            "items": {
              "type": "string"
            }
          },
          "numbers": {
            "title": "Numbers (alias for phoneNumbers)",
            "type": "array",
            "description": "Drop-in alias for `phoneNumbers`.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (alias for defaultCountry)",
            "type": "string",
            "description": "Drop-in alias for `defaultCountry` (ISO 3166-1 alpha-2 code such as `US` or `GB`)."
          },
          "countryCode": {
            "title": "Country code (alias for defaultCountry)",
            "type": "string",
            "description": "Drop-in alias for `defaultCountry` (ISO 3166-1 alpha-2 code such as `US` or `GB`)."
          },
          "maxResults": {
            "title": "Max results (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for `maxItems`."
          },
          "concurrency": {
            "title": "Concurrency (alias for enrichConcurrency)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Drop-in alias for `enrichConcurrency`."
          },
          "maxConcurrency": {
            "title": "Max concurrency (alias for enrichConcurrency)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Drop-in alias for `enrichConcurrency`."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (alias for proxy)",
            "type": "object",
            "description": "Drop-in alias for `proxy`."
          },
          "wirelessOnly": {
            "title": "Wireless only (alias for mobileOnly)",
            "type": "boolean",
            "description": "Drop-in alias for `mobileOnly`."
          },
          "onlyWithOwner": {
            "title": "Only with owner (alias for onlyMatched)",
            "type": "boolean",
            "description": "Drop-in alias for `onlyMatched` — emit only numbers with a matched owner record."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}