{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number Enrichment & Validator — Bulk Reverse Lookup",
    "description": "Bulk phone validator + US reverse lookup in one actor. Every number: valid/invalid, E.164, country, region, carrier, line type — 100% offline. Opt-in US enrichment adds the owner: name, age, emails, other phones, addresses, relatives. Pay per match, misses free. JSON/CSV/API.",
    "version": "0.0",
    "x-build-id": "47afDYmL3jJDhFTjF"
  },
  "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.",
            "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."
          },
          "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, derived 100% offline from Google's libphonenumber metadata. 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
          },
          "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
          },
          "maxItems": {
            "title": "Max numbers",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on how many numbers to process this run.",
            "default": 100000
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — owner lookups already route through the actor's own residential unblocker at no extra cost to you. Only set this to force your own proxies on the initial fetch attempt."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}