{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reputation Lead Scraper — Bad Reviews + Emails",
    "description": "Scrape Google Maps for low-rated local businesses losing customers to bad reviews. Every lead ships with complaint themes, an AI diagnosis and a verified email.",
    "version": "0.1",
    "x-build-id": "dof24ZP0ji7fg9Rpu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jurassic_jove~google-maps-reputation-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jurassic_jove-google-maps-reputation-leads",
        "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/jurassic_jove~google-maps-reputation-leads/runs": {
      "post": {
        "operationId": "runs-sync-jurassic_jove-google-maps-reputation-leads",
        "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/jurassic_jove~google-maps-reputation-leads/run-sync": {
      "post": {
        "operationId": "run-sync-jurassic_jove-google-maps-reputation-leads",
        "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": [
          "searchTerms",
          "location"
        ],
        "properties": {
          "searchTerms": {
            "title": "Business categories",
            "minItems": 1,
            "type": "array",
            "description": "The kinds of business to scrape from Google Maps — one entry per category. Use the words a customer would search, e.g. \"dentists\", \"roofers\", \"auto repair\". Each category is searched separately in the location below. Categories with the most low-rated businesses: moving companies, towing, roofing, auto repair, property management, used car dealers.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, region or ZIP to search in, e.g. \"Tampa, FL\". Be specific — \"Florida\" returns a scattered sample across the whole state, while \"Tampa, FL\" returns a callable local list."
          },
          "maxRating": {
            "title": "Maximum star rating",
            "minimum": 1,
            "maximum": 4.5,
            "type": "number",
            "description": "Only businesses rated AT OR BELOW this many stars qualify as leads. 3.9 is the sweet spot: low enough that the owner knows there is a problem, high enough that the business is still worth saving. Below 3.0 you find businesses in crisis; above 4.2 most owners will not feel the urgency.",
            "default": 3.9
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Ignore businesses with fewer reviews than this. A 2.0-star rating built on 3 reviews is one bad week, not a reputation problem — there is nothing to sell against and the diagnosis would be guesswork. 10 is a sensible floor; raise it to 25+ if you only want established businesses.",
            "default": 10
          },
          "maxLeads": {
            "title": "Maximum leads to process",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard cap on QUALIFYING businesses that get the full treatment (review scrape + AI diagnosis + contact extraction). This is what you pay for. When more businesses qualify than this, the scraper processes the worst-rated and most-reviewed ones first. The Console pre-fills 10 for a cheap trial run (~$1.70); the default for API runs is 50.",
            "default": 50
          },
          "maxScanned": {
            "title": "Maximum businesses to scan",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many businesses to look at while hunting for qualifiers. Scanning is FREE — it only reads the rating and review count Google already shows in the results list. Google ranks well-rated businesses FIRST, so the businesses you are hunting sit deeper in the list — a shallow scan of a healthy category finds almost nothing. Raise this rather than loosening the rating filter: 500-800 is normal for a mid-size city.",
            "default": 500
          },
          "reviewsPerBusiness": {
            "title": "Reviews to read per lead",
            "minimum": 3,
            "maximum": 40,
            "type": "integer",
            "description": "How many reviews to sample for each qualifying business, weighted toward the lowest-rated and most recent. 15 is enough for the complaint themes to be reliable. Raising it improves the diagnosis on businesses with very mixed reviews, at the cost of a slower run — it does NOT change the price per lead.",
            "default": 15
          },
          "extractEmails": {
            "title": "Extract contact emails",
            "type": "boolean",
            "description": "Visit each lead's website to harvest emails, phone numbers and social links — including Linktree and other link-in-bio pages. Charged $0.02 per lead where an email is actually found; leads with no email found are not charged for this. Turn off to get diagnoses only.",
            "default": true
          },
          "requireContact": {
            "title": "Only deliver leads I can contact",
            "type": "boolean",
            "description": "Drop leads where neither an email nor a phone number was found. They are still counted in the run summary. Note: those leads were still fully diagnosed, so they are still charged — filtering happens at delivery, not at processing. Leave off to keep every lead (a phone-only lead is still callable).",
            "default": false
          },
          "fastContactPass": {
            "title": "Fast contact pass",
            "type": "boolean",
            "description": "Try a lightweight page fetch before opening a browser on a lead's website. Roughly ten times cheaper on the sites where it works, with the browser still handling anything JavaScript-rendered or bot-protected. Turn off to force a full browser visit on every website — slower, marginally higher coverage on unusual sites.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential US proxy is ON by default and strongly recommended. Google Maps serves a consent wall or a challenge page to datacenter IPs within a handful of searches, which ends the run early with few leads. Change this only if you know your setup handles Maps another way.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}