{
  "openapi": "3.0.1",
  "info": {
    "title": "Restaurant POS Scraper — Toast, Square, Clover & Olo Tech",
    "description": "Detect US restaurant POS & online ordering platforms (Toast, Square, Clover, Lightspeed, TouchBistro, SpotOn, Olo, Slice, ChowNow, DoorDash, Uber Eats) via fast 100% HTTP multi-signal fingerprinting, E.164 phone normalization, and verified business email extraction.",
    "version": "1.0",
    "x-build-id": "I6AvItvEaVz3VLV1M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~us-restaurant-pos-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-us-restaurant-pos-detector",
        "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/vesper_studio~us-restaurant-pos-detector/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-us-restaurant-pos-detector",
        "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/vesper_studio~us-restaurant-pos-detector/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-us-restaurant-pos-detector",
        "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": {
          "urls": {
            "title": "Restaurant Websites or Domains",
            "type": "array",
            "description": "List of US restaurant website URLs or bare domains (e.g. 'unionburgerbar.com', 'https://www.joespizzanyc.com').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "restaurants": {
            "title": "Enriched Restaurant Objects (Optional)",
            "type": "array",
            "description": "Array of restaurant objects (e.g. from Google Maps Scraper) with shape { name, url, city, state, phone } or URL strings. Any input metadata is preserved in the output and phone numbers are normalized to US E.164.",
            "default": []
          },
          "targetPos": {
            "title": "Filter by Target POS / Ordering System",
            "type": "array",
            "description": "Optional filter for outbound sales targeting. When non-empty, only restaurants matching at least one selected POS/ordering system are emitted (e.g. ['Toast', 'Square']). Leave empty to return all scanned restaurants.",
            "items": {
              "type": "string",
              "enum": [
                "Toast",
                "Square",
                "Clover",
                "Lightspeed",
                "TouchBistro",
                "SpotOn",
                "Olo",
                "Slice",
                "ChowNow",
                "DoorDash Storefront",
                "Uber Eats"
              ]
            },
            "default": []
          },
          "onlyWithPos": {
            "title": "Only Emit Restaurants With Detected POS",
            "type": "boolean",
            "description": "When enabled (and targetPos is empty), skips restaurants where no POS or online ordering system was detected.",
            "default": false
          },
          "followOrderLinks": {
            "title": "Follow Internal Order / Menu / Contact Pages",
            "type": "boolean",
            "description": "Follow up to maxSubpagesPerSite internal links matching /order, /menu, /contact, /delivery, or /pickup when scanning each restaurant website.",
            "default": true
          },
          "maxSubpagesPerSite": {
            "title": "Max Subpages Per Site",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum internal subpages (/order, /menu, /contact) to inspect per restaurant homepage.",
            "default": 2
          },
          "timeoutMs": {
            "title": "HTTP Request Timeout (ms)",
            "minimum": 2000,
            "maximum": 30000,
            "type": "integer",
            "description": "Per-request HTTP timeout in milliseconds (default 8000ms for fast failure on dead domains).",
            "default": 8000
          },
          "maxConcurrency": {
            "title": "Max Concurrent Sites",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Bounded concurrent restaurant scans (recommended 8-12 for 256-512 MB memory).",
            "default": 10
          },
          "enableBrowserFallback": {
            "title": "Enable Playwright Browser Fallback (Optional)",
            "type": "boolean",
            "description": "Disabled by default (100% HTTP). If enabled and Playwright is installed in the runtime, falls back to headless Chromium only when HTTP returns 403/JS-challenge or empty SPA shells.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Optional Proxy Configuration",
            "type": "object",
            "description": "Disabled by default for zero-proxy HTTP execution. Enable Apify Proxy only if needed for high-volume 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}