# Restaurant POS Scraper — Toast, Square, Clover & Olo Tech (`vesper_studio/us-restaurant-pos-detector`) Actor

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.

- **URL**: https://apify.com/vesper_studio/us-restaurant-pos-detector.md
- **Developed by:** [Xavier Richard](https://apify.com/vesper_studio) (community)
- **Categories:** Lead generation, Business, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 restaurant website scanneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Restaurant POS & Online Ordering Detector

A production-ready, 100% HTTP Apify Actor (`us-restaurant-pos-detector`) that scans US restaurant websites to detect their **Point-of-Sale (POS)** and **online ordering** stack, extract generic outreach emails, normalize US phone numbers to **E.164** (`+1...`), and collect social media profiles.

Built for **POS competitors**, **merchant payment processors**, **foodservice/CHR distributors**, and **B2B RevOps teams** running outbound switch campaigns in **Clay**, **Make**, and **n8n**.

***

### Supported POS & Online Ordering Systems (11)

| Platform                | Category                        | Verified Signal Examples                                                                                                                                      |
| :---------------------- | :------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Toast**               | Cloud POS & Ordering            | `order.toasttab.com`, `*.toast.site`, `pos.toasttab.com`, `toast.app`, `meta[name="author"="Toast, Inc."]`, Toast Sites S3 assets                             |
| **Square**              | Cloud POS & Ordering            | `*.square.site`, `square.online`, `squarecdn.com`, `squareup.com/appointments\|online-ordering`, `meta[name="generator"="Square Online"]`, `squareMerchantId` |
| **Clover**              | POS & Online Ordering           | `clover.com/online-ordering`, `order.clover.com`, `cloverorder.com`, `smart-online-order`                                                                     |
| **Lightspeed**          | Hospitality POS (incl. Upserve) | `app.upserve.com/platform/olo-widget.js`, `*.lightspeedhq.com`, `*.lightspeedapp.com`, `*.kounta.com`                                                         |
| **TouchBistro**         | Restaurant POS & Ordering       | `*.tbdine.com`, `order.touchbistro.com`, `reservations.touchbistro.com`                                                                                       |
| **SpotOn**              | Restaurant POS & Ordering       | `order.spoton.com`, `reserve.spoton.com`, `widget.spoton.com`, `spoton.app`                                                                                   |
| **Olo**                 | Enterprise Digital Ordering     | `*.olo.com`, `olocdn.com`, `olo.express`, Android app package `*.olo.android`                                                                                 |
| **Slice**               | Pizzeria Ordering               | `slicelife.com`, `slicepreview.com`, `slice.com/shop\|restaurant`                                                                                             |
| **ChowNow**             | Commission-Free Ordering        | `direct.chownow.com`, `ordering.chownow.com`, `eat.chownow.com`, `chownowcdn.com`                                                                             |
| **DoorDash Storefront** | White-Label & Marketplace       | `order.online`, `storefront.doordash.com`, `doordash.com/store/*`                                                                                             |
| **Uber Eats**           | Direct & Marketplace            | `order.ubereats.com`, `ubereats.com/store/*`, enabled Toast Uber delivery config                                                                              |

***

### Architecture & Performance

- **100% HTTP by default (`got-scraping` + `cheerio`)**: Uses realistic Chrome TLS fingerprinting with zero Playwright and zero proxies required by default (**256–512 MB memory**).
- **Smart Subpage Discovery (`src/scanner.js`)**: Fetches the homepage, then follows up to 2 high-signal internal links (`/order`, `/order-online`, `/menu`, `/catering`, `/locations`, `/contact`) to catch ordering links hidden behind navigation menus.
- **Anti-False-Positive Precision**: Distinguishes Square Online from Squarespace, Shopify `shop-toast-manager` UI components from Toast POS, Upserve (`app.upserve.com/platform/olo-widget.js`) from Olo Inc., and disabled delivery toggles from active ones.
- **Contact Enrichment**:
  - **E.164 US Phone Normalization** via `libphonenumber-js` (`+15124594121`).
  - **Generic Email Extraction** prioritizing `info@`, `contact@`, `hello@`, `orders@`, `catering@`, and matching restaurant domains while filtering out vendor/SaaS noise (`wixpress.com`, `sentry.io`, `toasttab.com`, `squarespace.com`).
  - **Social Media Profiles**: Instagram, Facebook, TikTok, Twitter/X, and Yelp.
- **Fault-Tolerant Concurrency**: Bounded concurrency pool with short 8s timeouts and clean per-site error reporting (`ENOTFOUND`, TLS cert errors, HTTP 403/404) without crashing the run.
- **Optional Browser Fallback**: Set `enableBrowserFallback: true` (when running with a Playwright-enabled image) to retry 403/JS-challenge pages via headless Chromium.

***

### Input Configuration

Accepts either a plain list of URLs/domains (`urls`) or enriched restaurant objects (`restaurants`, e.g. straight from **Google Maps Scraper**):

```json
{
    "urls": ["https://unionburgerbar.com", "https://www.joespizzanyc.com"],
    "restaurants": [
        {
            "name": "Fonda San Miguel",
            "url": "https://www.fondasanmiguel.com",
            "city": "Austin",
            "state": "TX",
            "phone": "(512) 459-4121"
        }
    ],
    "targetPos": ["Toast", "Square"],
    "onlyWithPos": false,
    "followOrderLinks": true,
    "maxSubpagesPerSite": 2,
    "timeoutMs": 8000,
    "maxConcurrency": 8,
    "enableBrowserFallback": false,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
}
```

#### Competitor Switch Targeting (`targetPos`)

Set `"targetPos": ["Toast"]` (or `["Square", "Clover"]`) to emit **only** restaurants confirmed on those platforms — ideal for sales teams running competitive displacement outreach. Leave `"targetPos": []` to return all scanned restaurants.

***

### Output Schema

Each dataset item conforms to a strict `zod`-validated schema:

```json
{
    "name": "Fonda San Miguel",
    "url": "https://www.fondasanmiguel.com/",
    "domain": "fondasanmiguel.com",
    "city": "Austin",
    "state": "TX",
    "phone": "+15124594121",
    "email": "info@fondasanmiguel.com",
    "emails": ["info@fondasanmiguel.com"],
    "primaryPos": "Toast",
    "detectedPos": ["Toast"],
    "confidence": "high",
    "signals": [
        {
            "pos": "Toast",
            "confidence": "high",
            "signalType": "link",
            "evidence": "https://www.toasttab.com/fonda-san-miguel-2330-west-north-loop-blvd",
            "pageUrl": "https://www.fondasanmiguel.com/"
        }
    ],
    "socialLinks": {
        "instagram": "https://www.instagram.com/fondasanmiguel",
        "facebook": "https://www.facebook.com/fondasanmiguel",
        "tiktok": null,
        "twitter": null,
        "yelp": null
    },
    "subpagesScanned": ["https://www.fondasanmiguel.com/menus/", "https://www.fondasanmiguel.com/contact/"],
    "httpStatus": 200,
    "scanMethod": "http",
    "error": null,
    "scannedAt": "2026-11-13T16:00:00.000Z"
}
```

***

### Pay-Per-Event (PPE) Billing

This Actor implements granular Apify Pay-Per-Event (`Actor.charge`) with `maxTotalChargeUsd` budget protection:

- `site-scanned`: Charged once per restaurant website scanned.
- `pos-detected`: Charged when an emitted restaurant has at least one POS/online ordering system detected.

***

### Clay, Make & n8n Integrations

#### Clay (Google Maps Enrichment Pipeline)

1. Import your US restaurant leads (e.g., from Apify Google Maps Scraper) into a Clay table with `name`, `website`, `city`, `state`, and `phone` columns.
2. Add an **HTTP API** (or **Apify**) enrichment column pointing to:
   `https://api.apify.com/v2/acts/<YOUR_USERNAME>~us-restaurant-pos-detector/run-sync-get-dataset-items?token={{APIFY_TOKEN}}`
3. Send JSON body:
   ```json
   {
       "restaurants": [
           {
               "name": "{{name}}",
               "url": "{{website}}",
               "city": "{{city}}",
               "state": "{{state}}",
               "phone": "{{phone}}"
           }
       ]
   }
   ```
4. Map `primaryPos`, `detectedPos`, `confidence`, `email`, `phone`, and `signals[0].evidence` into Clay columns to personalize outbound copy (e.g., *"Saw you're running Toast on your online ordering..."*).

#### n8n & Make

- **n8n**: Use the **Apify** node (`Run an Actor and get dataset items`) after a Google Maps Scraper node, pass `restaurants`, and route by `primaryPos` (`Toast`, `Square`, `Clover`) into HubSpot, Salesforce, or Smartlead/Instantly.
- **Make**: Connect **Apify -> Run an Actor** with `targetPos` set to your target competitor POS, then use **Apify -> Get Dataset Items** to sync qualified switch leads directly into your CRM or Google Sheets.

***

### Local Development & Verification

```bash
npm install
npm test
npm run lint
npm run format:check
npm start
```

# Actor input Schema

## `urls` (type: `array`):

List of US restaurant website URLs or bare domains (e.g. 'unionburgerbar.com', 'https://www.joespizzanyc.com').

## `restaurants` (type: `array`):

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.

## `targetPos` (type: `array`):

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.

## `onlyWithPos` (type: `boolean`):

When enabled (and targetPos is empty), skips restaurants where no POS or online ordering system was detected.

## `followOrderLinks` (type: `boolean`):

Follow up to maxSubpagesPerSite internal links matching /order, /menu, /contact, /delivery, or /pickup when scanning each restaurant website.

## `maxSubpagesPerSite` (type: `integer`):

Maximum internal subpages (/order, /menu, /contact) to inspect per restaurant homepage.

## `timeoutMs` (type: `integer`):

Per-request HTTP timeout in milliseconds (default 8000ms for fast failure on dead domains).

## `maxConcurrency` (type: `integer`):

Bounded concurrent restaurant scans (recommended 8-12 for 256-512 MB memory).

## `enableBrowserFallback` (type: `boolean`):

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.

## `proxyConfiguration` (type: `object`):

Disabled by default for zero-proxy HTTP execution. Enable Apify Proxy only if needed for high-volume runs.

## Actor input object example

```json
{
  "urls": [
    "https://unionburgerbar.com",
    "https://www.joespizzanyc.com",
    "https://www.fiveguys.com"
  ],
  "restaurants": [],
  "targetPos": [],
  "onlyWithPos": false,
  "followOrderLinks": true,
  "maxSubpagesPerSite": 2,
  "timeoutMs": 8000,
  "maxConcurrency": 10,
  "enableBrowserFallback": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://unionburgerbar.com",
        "https://www.joespizzanyc.com",
        "https://www.fiveguys.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesper_studio/us-restaurant-pos-detector").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://unionburgerbar.com",
        "https://www.joespizzanyc.com",
        "https://www.fiveguys.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("vesper_studio/us-restaurant-pos-detector").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://unionburgerbar.com",
    "https://www.joespizzanyc.com",
    "https://www.fiveguys.com"
  ]
}' |
apify call vesper_studio/us-restaurant-pos-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesper_studio/us-restaurant-pos-detector"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BXonbRU4tLqQW3LzA/builds/I6AvItvEaVz3VLV1M/openapi.json
