{
  "openapi": "3.0.1",
  "info": {
    "title": "Yelp Business Analyzer | $3/1K | Reviews, Hours, Tech Stack",
    "description": "Deep intelligence on any Yelp business: real-time ratings & reviews, structured weekly hours with is-open-now, geo coordinates, business listing age, website tech stack (20+ platforms), popularity score, customer segment, chain detection. 5 public data sources combined. Pay-per-use $3/1K.",
    "version": "1.4",
    "x-build-id": "Yseri7FDU8PZSnTeE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~yelp-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-yelp-business-scraper",
        "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/apivault_labs~yelp-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-yelp-business-scraper",
        "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/apivault_labs~yelp-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-yelp-business-scraper",
        "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",
        "required": [
          "businessUrls"
        ],
        "properties": {
          "businessUrls": {
            "title": "Yelp Business URLs",
            "type": "array",
            "description": "Yelp business pages to analyze (e.g. https://www.yelp.com/biz/business-name-city).",
            "items": {
              "type": "string"
            }
          },
          "extractCore": {
            "title": "Core fields (Thunderbit)",
            "type": "boolean",
            "description": "Name, rating, reviews count, phone, address, website, hours, categories, price range, neighborhood, image, amenities.",
            "default": true
          },
          "extractHoursIntel": {
            "title": "Hours intelligence",
            "type": "boolean",
            "description": "Structured weekly schedule, total hours per week, days open count, weekend coverage, 24h-day flag, real-time is-open-now check.",
            "default": true
          },
          "extractWebsite": {
            "title": "Website tech stack",
            "type": "boolean",
            "description": "If business has a website: detect 50+ platforms (Shopify/WP/Wix/Webflow/OpenTable/Resy/Toast/Tock/SevenRooms/DoorDash/UberEats/Stripe/Square/Klaviyo/HubSpot…), alive check, server, HSTS, SEO + mobile-friendliness audit.",
            "default": true
          },
          "websiteDiscoveryFallback": {
            "title": "Website discovery fallback (DuckDuckGo)",
            "type": "boolean",
            "description": "When Yelp doesn't expose the business website (Yelp/Thunderbit sometimes returns empty website field), search DuckDuckGo for `<business name> <city> official site` and pick the first non-aggregator result. Adds ~2s per business; recovers websites for ~70% of listings where Yelp hid the URL.",
            "default": true
          },
          "extractContactEnrichment": {
            "title": "Contact enrichment (emails, phones, socials)",
            "type": "boolean",
            "description": "From the website HTML extract: emails (with CloudFlare email decoder + TLD whitelist), phones (E.164 + click-to-call), social profiles (Instagram/Facebook/Twitter/TikTok/YouTube/LinkedIn/Pinterest), menu/booking/delivery URLs.",
            "default": true
          },
          "extractAmenities": {
            "title": "Structured amenities",
            "type": "boolean",
            "description": "Parse free-text amenities into 28 boolean flags: has_outdoor_seating, accepts_reservations, offers_delivery, wifi_available, wheelchair_accessible, vegan_options, dog_friendly, etc.",
            "default": true
          },
          "extractAge": {
            "title": "Listing age (Wayback)",
            "type": "boolean",
            "description": "Earliest Wayback snapshot of the Yelp listing → years on Yelp + first listed year.",
            "default": true
          },
          "extractDomainAge": {
            "title": "Website domain age (crt.sh SSL history)",
            "type": "boolean",
            "description": "Earliest SSL certificate issuance for the discovered website → website_domain_age_years (legitimacy signal). Adds ~10-30s per business — disabled by default.",
            "default": false
          },
          "extractAddressParts": {
            "title": "Parse address into street/city/state/zip",
            "type": "boolean",
            "description": "Split the free-text address into structured fields (street, city, state, zipCode, country). Also derives `timezone` from US state code, used for accurate `is_open_now` in PST/EST/CST/MST.",
            "default": true
          },
          "guessEmailPatterns": {
            "title": "Guess common email patterns",
            "type": "boolean",
            "description": "When the website has no extractable email, generate likely contact addresses (info@, hello@, contact@, support@, sales@, team@, office@, admin@, inquiries@, reservations@, bookings@) for the discovered domain. Returned as `emails_guessed[]` with a warning to verify before sending.",
            "default": true
          },
          "extractGeocoding": {
            "title": "Geocoding (lat/lng)",
            "type": "boolean",
            "description": "Resolve address to latitude/longitude via Nominatim (OpenStreetMap). Disabled by default — Nominatim is rate-limited (~1 req/sec).",
            "default": false
          },
          "extractDerivedSignals": {
            "title": "Derived signals",
            "type": "boolean",
            "description": "popularity_score (0-100), customer_segment (budget/mid/upscale/luxury), quality_tier, online_presence_score, chain_likelihood_score, service_offerings_count.",
            "default": true
          },
          "extractLeadScore": {
            "title": "Lead score + best contact",
            "type": "boolean",
            "description": "B2B prospecting score (0-100) with reasons, lead tier (cold/warm/hot/scorching), and bestContact picker (highest-priority channel: email > phone > IG > FB).",
            "default": true
          },
          "extractOutreachPitch": {
            "title": "Industry-specific outreach pitch",
            "type": "boolean",
            "description": "Ready-to-paste cold-outreach message tailored to the business category. 15 industry templates (restaurant, salon, dentist, auto, plumber, lawyer, real estate, fitness, hotel, retail, pet care, events, cleaning, education, finance) + generic fallback.",
            "default": true
          },
          "extractOutreachLinks": {
            "title": "One-click outreach links",
            "type": "boolean",
            "description": "Build mailto:, tel:, sms:, WhatsApp, LinkedIn-people-search, Google-search and Yelp-competitors URLs ready for direct use in CRMs. mailto includes the auto-generated outreach pitch as the body.",
            "default": true
          },
          "thunderbitRetries": {
            "title": "Thunderbit retries on transient block",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Yelp periodically blocks Thunderbit's pool (5-30s). When a 'Failed to fetch website content' is returned, retry this many times with linear backoff (8s, 16s).",
            "default": 2
          },
          "slugFallbackOnFail": {
            "title": "Slug-derived fallback when Thunderbit fails",
            "type": "boolean",
            "description": "When all Thunderbit attempts fail (Yelp throttle), reverse-engineer business name + city from the URL slug (e.g. 'tartine-bakery-san-francisco' → 'Tartine Bakery' + city: 'San Francisco') and run the website-discovery + enrichment layers anyway. Recovers ~60% of failed runs into partial-but-useful records (website, tech stack, emails, lead score) instead of `success: false`.",
            "default": true
          },
          "excludeChains": {
            "title": "Exclude chains / franchises",
            "type": "boolean",
            "description": "Skip businesses with chain_likelihood_score ≥ 50 (Starbucks, McDonald's, etc.). Useful when prospecting independent SMBs only.",
            "default": false
          },
          "exportFormat": {
            "title": "Export format",
            "enum": [
              "default",
              "csv"
            ],
            "type": "string",
            "description": "default = full JSON (all fields). csv = flattened sales-friendly CSV with one row per business (best for Google Sheets / Hubspot / Pipedrive imports).",
            "default": "default"
          },
          "writeSummary": {
            "title": "Write aggregate summary to KV store",
            "type": "boolean",
            "description": "On runs with multiple businesses, write a SUMMARY record to the run's key-value store with avg metrics, segment distribution, top tech detected, etc. Free — doesn't add to dataset.",
            "default": true
          },
          "extractName": {
            "title": "Business Name",
            "type": "boolean",
            "description": "Business name (Thunderbit field).",
            "default": true
          },
          "extractRating": {
            "title": "Rating",
            "type": "boolean",
            "description": "Star rating (Thunderbit field).",
            "default": true
          },
          "extractReviews": {
            "title": "Reviews Count",
            "type": "boolean",
            "description": "Number of reviews (Thunderbit field).",
            "default": true
          },
          "extractPriceRange": {
            "title": "Price Range",
            "type": "boolean",
            "description": "Price range $/$$/$$$/$$$$ (Thunderbit field).",
            "default": true
          },
          "extractCategories": {
            "title": "Categories",
            "type": "boolean",
            "description": "Business categories (Thunderbit field).",
            "default": true
          },
          "extractAddress": {
            "title": "Address",
            "type": "boolean",
            "description": "Full address (Thunderbit field).",
            "default": true
          },
          "extractPhone": {
            "title": "Phone",
            "type": "boolean",
            "description": "Phone number (Thunderbit field).",
            "default": true
          },
          "extractWebsiteField": {
            "title": "Website URL",
            "type": "boolean",
            "description": "Business website URL (Thunderbit field).",
            "default": true
          },
          "extractHours": {
            "title": "Business Hours (raw)",
            "type": "boolean",
            "description": "Free-text business hours (Thunderbit field).",
            "default": true
          },
          "extractLocation": {
            "title": "Neighborhood",
            "type": "boolean",
            "description": "Neighborhood / area (Thunderbit field).",
            "default": true
          },
          "extractImage": {
            "title": "Profile Image",
            "type": "boolean",
            "description": "Main profile image (Thunderbit field).",
            "default": true
          },
          "extractMetadata": {
            "title": "Other Metadata",
            "type": "boolean",
            "description": "Amenities, health score, etc. (Thunderbit field).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Parallel businesses to analyze.",
            "default": 2
          },
          "timeout": {
            "title": "Timeout per business (seconds)",
            "minimum": 60,
            "maximum": 300,
            "type": "integer",
            "description": "Max wait time per business.",
            "default": 180
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}