{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews + Risk Flags — Reply Drafts, $3/1k",
    "description": "Google Maps reviews scraper with sentiment, urgency, risk flags and a suggested reply per review. No login. $3 per 1,000 reviews.",
    "version": "0.2",
    "x-build-id": "oZqBsFmkSg8FKFxae"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadharbor~local-review-booster/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadharbor-local-review-booster",
        "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/leadharbor~local-review-booster/runs": {
      "post": {
        "operationId": "runs-sync-leadharbor-local-review-booster",
        "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/leadharbor~local-review-booster/run-sync": {
      "post": {
        "operationId": "run-sync-leadharbor-local-review-booster",
        "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": {
          "businesses": {
            "title": "Businesses",
            "type": "array",
            "description": "Google Maps URLs, or \"Business Name, City\" queries — one per line. Leave empty if you use a dataset ID below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Maps URLs (alternative)",
            "type": "array",
            "description": "Google Maps place links, in the same format as the leading Google Maps scrapers (a list of {\"url\": \"...\"}). Same effect as pasting links into Businesses.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs (alternative)",
            "type": "array",
            "description": "Google place IDs, 27 characters starting with ChIJ or GhIJ, e.g. ChIJreV9aqYWdkgROM_boL6YbwA.",
            "items": {
              "type": "string"
            }
          },
          "inputDatasetId": {
            "title": "Or: dataset ID from another Google Maps scraper",
            "type": "string",
            "description": "Already scraped Google Maps reviews with another actor? Paste that run's dataset ID and we add sentiment, topic, urgency, risk flags and reply drafts — no re-scraping. Picked from your datasets, it is read with your own run permissions; a dataset by ID that is not yours needs General access set to \"Anyone with the link can view\". Works with place rows that contain a reviews list, or one row per review. Only the first 20,000 rows are read."
          },
          "apifyToken": {
            "title": "Your Apify API token (only for a private dataset)",
            "type": "string",
            "description": "Optional. Lets this actor read a private dataset you own, so you don't have to make it public. Find it in Console > Settings > API & Integrations. Used only to read that dataset."
          },
          "maxReviews": {
            "title": "Reviews per business",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many reviews to pull per business (1 to 500; 0 pulls none and is only useful with a dataset). Higher numbers are cut to 500.",
            "default": 30
          },
          "reviewsSort": {
            "title": "Sort reviews by",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRanking",
              "lowestRanking"
            ],
            "type": "string",
            "description": "Order used by the Google Maps step. \"newest\" is required when you set a start date.",
            "default": "newest"
          },
          "reviewsStartDate": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Either an absolute date (2026-10-01, UTC) or a relative one (8 days, 3 months). Older reviews are dropped and not charged. Needs the newest sort."
          },
          "reviewsFilterString": {
            "title": "Only reviews mentioning",
            "type": "string",
            "description": "Comma-separated words, for example: rude, cold, refund. A review is kept when its text contains any of them. Applied by this actor, so it also works on a dataset you bring. Up to 500 bytes."
          },
          "reviewsOrigin": {
            "title": "Review source",
            "enum": [
              "all",
              "google"
            ],
            "type": "string",
            "description": "All sources shown on the place, or Google reviews only.",
            "default": "all"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "af",
              "az",
              "id",
              "ms",
              "bs",
              "ca",
              "cs",
              "da",
              "de",
              "et",
              "es",
              "es-419",
              "eu",
              "fil",
              "fr",
              "gl",
              "hr",
              "zu",
              "is",
              "it",
              "sw",
              "lv",
              "lt",
              "hu",
              "nl",
              "no",
              "uz",
              "pl",
              "pt-BR",
              "pt-PT",
              "ro",
              "sq",
              "sk",
              "sl",
              "fi",
              "sv",
              "vi",
              "tr",
              "el",
              "bg",
              "ky",
              "kk",
              "mk",
              "mn",
              "ru",
              "sr",
              "uk",
              "ka",
              "hy",
              "iw",
              "ur",
              "ar",
              "fa",
              "am",
              "ne",
              "hi",
              "mr",
              "bn",
              "pa",
              "gu",
              "ta",
              "te",
              "kn",
              "ml",
              "si",
              "th",
              "lo",
              "my",
              "km",
              "ko",
              "ja",
              "zh-CN",
              "zh-TW"
            ],
            "type": "string",
            "description": "Language the Google Maps step asks for, for example en, ar, de, fr, pt-BR.",
            "default": "en"
          },
          "onlyNeedsAttention": {
            "title": "Only urgent reviews",
            "type": "boolean",
            "description": "Only surface unanswered reviews of 3★ or lower, plus unanswered reviews that AI triage (when switched on) flags as risky or high urgency.",
            "default": false
          },
          "aiTriage": {
            "title": "AI triage (sends review text to TypeSafe)",
            "type": "boolean",
            "description": "Off by default. When on, the business name, star rating and review text (not the reviewer name, link or photos) of each review are sent to TypeSafe (typesafe.ai) to fill aiTopic, aiUrgency, aiUrgencyScore and aiRiskFlag, and to catch risky 4-5 star reviews. When off, nothing leaves Apify for triage and needsAttention uses the star rating only.",
            "default": false
          },
          "replyTone": {
            "title": "Reply tone",
            "enum": [
              "warm",
              "professional",
              "brief"
            ],
            "type": "string",
            "description": "Style for drafted replies.",
            "default": "warm"
          },
          "businessNameForReply": {
            "title": "Business name (for reply signature)",
            "type": "string",
            "description": "Optional — name to sign replies with."
          },
          "openaiApiKey": {
            "title": "OpenAI API key (optional)",
            "type": "string",
            "description": "Optional — for AI-written replies. Leave blank to use built-in smart templates (free)."
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Used only if an API key is provided.",
            "default": "gpt-4o-mini"
          },
          "mapsActorId": {
            "title": "Reviews source actor (advanced)",
            "type": "string",
            "description": "Maintained Google Maps actor used to fetch reviews. Leave as default.",
            "default": "compass/crawler-google-places"
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "POST the urgent (needs-attention) reviews here as JSON."
          },
          "notionConnector": {
            "title": "Notion connector (optional)",
            "type": "string",
            "description": "Send the reviews into your own Notion. Authorize Notion once in Apify Console > Settings > API & Integrations > MCP connectors, then pick it here. This Actor never sees your Notion login."
          },
          "notionParentPage": {
            "title": "Notion page to create the table in",
            "type": "string",
            "description": "Link of a Notion page. The first run creates a 'Google reviews' table inside it."
          },
          "notionDataSourceId": {
            "title": "Existing Notion table ID (optional)",
            "type": "string",
            "description": "To keep adding to the same table, paste the data source ID printed in the log (and saved in the run's OUTPUT record) by the first run."
          },
          "notionAllReviews": {
            "title": "Send every review, not only urgent ones",
            "type": "boolean",
            "description": "Off = only reviews that need attention (unanswered low-star, or AI-flagged) go to Notion.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}