{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Review Response Monitor",
    "description": "Monitor Google Maps owner replies over time. Detect new reviews, new or updated owner responses, unanswered reviews, response delays, SLA breaches and response coverage across one or many businesses.",
    "version": "1.0",
    "x-build-id": "s3fKIyygugQc1Ll3f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~google-maps-review-response-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-google-maps-review-response-monitor",
        "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/coregent~google-maps-review-response-monitor/runs": {
      "post": {
        "operationId": "runs-sync-coregent-google-maps-review-response-monitor",
        "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/coregent~google-maps-review-response-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-google-maps-review-response-monitor",
        "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": {
          "places": {
            "title": "Places",
            "type": "array",
            "description": "Google Maps place URLs, short share links (maps.app.goo.gl/…), Place IDs, CIDs, feature IDs (0x…:0x…) or business names — one per line. The sample place is ignored automatically when you set a dataset.",
            "default": [
              "https://www.google.com/maps/place/?q=place_id:ChIJsyWauUOuEmsRlyQeoNBkOXA"
            ],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location for business names",
            "type": "string",
            "description": "Optional location that narrows business-name lookups, e.g. \"Canberra, ACT, Australia\". A name matching several places returns PLACE_NOT_FOUND with the candidates instead of a guess.",
            "default": ""
          },
          "datasetId": {
            "title": "Places from a dataset",
            "type": "string",
            "description": "Optional ID of an existing dataset (e.g. a Coregent Google Maps Reviews Scraper or place-finder run). Every unique placeId / cid / featureId / googleMapsUrl in it is monitored (up to 500 places).",
            "default": ""
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name of this monitor's saved state, e.g. hotel-chain or local-seo-clients. Use the same key on every scheduled run; a different key starts an independent monitor (its own baseline and SLA history) for the same places. Letters, digits, \".\", \"_\" and \"-\".",
            "default": "default"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "MONITOR",
              "BASELINE",
              "COMPARE"
            ],
            "type": "string",
            "description": "MONITOR (recommended for schedules): emit only what changed since the last run. The first run of a new monitorKey always builds a baseline. BASELINE: (re)build state without emitting change events. COMPARE: MONITOR plus prior-period comparison and cross-location rankings.",
            "default": "MONITOR"
          },
          "reviewLookbackDays": {
            "title": "Review lookback (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back each run scans, newest first. Unanswered reviews just older than this are still refreshed (up to 30 extra days); older ones stay tracked in state. Common values: 7, 14, 30, 60, 90, 180, 365.",
            "default": 90
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 1,
            "maximum": 4490,
            "type": "integer",
            "description": "Upper bound on reviews scanned per place per run (the scan normally stops earlier, at the lookback boundary). Up to 4,490.",
            "default": 500
          },
          "ratings": {
            "title": "Ratings to monitor",
            "type": "array",
            "description": "Track only reviews with these star ratings. Empty = all ratings. Out-of-scope reviews are not tracked or reported, but they are still read (and charged as checked reviews) to learn their rating.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "monitorOnlyNegativeReviews": {
            "title": "Monitor only negative reviews",
            "type": "boolean",
            "description": "Track only reviews rated at or below the negative threshold.",
            "default": false
          },
          "negativeRatingThreshold": {
            "title": "Negative rating threshold",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "A review rated at or below this many stars is negative: it uses the negative-review SLA and higher priority.",
            "default": 3
          },
          "responseSlaHours": {
            "title": "Response SLA (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Expected owner-reply time for non-negative reviews. 0 disables the SLA. Common values: 12, 24, 48, 72, 168.",
            "default": 48
          },
          "negativeReviewSlaHours": {
            "title": "Negative-review SLA (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Expected owner-reply time for negative reviews (usually shorter). 0 disables it.",
            "default": 24
          },
          "emitStillUnansweredEveryRun": {
            "title": "Remind about unanswered reviews",
            "type": "boolean",
            "description": "Re-emit REVIEW_STILL_UNANSWERED for reviews that are past their SLA and still unanswered, at most once per reminder interval.",
            "default": false
          },
          "unansweredReminderHours": {
            "title": "Reminder interval (hours)",
            "minimum": 1,
            "maximum": 8760,
            "type": "integer",
            "description": "Minimum time between two reminders for the same review.",
            "default": 72
          },
          "detectResponseUpdates": {
            "title": "Detect edited owner replies",
            "type": "boolean",
            "description": "Emit OWNER_RESPONSE_UPDATED when a reply's text changes (whitespace-only changes are ignored).",
            "default": true
          },
          "detectReviewUpdates": {
            "title": "Detect edited reviews",
            "type": "boolean",
            "description": "Emit REVIEW_UPDATED / REVIEW_RATING_CHANGED when a review's text or rating changes.",
            "default": true
          },
          "emitBaselineReviews": {
            "title": "Emit reviews found on the baseline run",
            "type": "boolean",
            "description": "Off (default): the first run saves state and emits no NEW_REVIEW rows for historical reviews. On: every baseline review is emitted as NEW_REVIEW.",
            "default": false
          },
          "emitExistingSlaBreaches": {
            "title": "Emit SLA breaches found on the baseline run",
            "type": "boolean",
            "description": "Off (default): reviews already past their SLA at baseline are saved without an alert, which prevents an alert flood. On: they are emitted as RESPONSE_SLA_BREACHED.",
            "default": false
          },
          "includePlaceSummary": {
            "title": "Add place KPI summary rows",
            "type": "boolean",
            "description": "Add free response_monitor_summary rows per place and period: response coverage, response times, unanswered backlog. Failed places always get a status row.",
            "default": true
          },
          "comparisonPeriods": {
            "title": "KPI periods",
            "type": "array",
            "description": "Periods for the summary KPIs (by review publish date). PREVIOUS adds the same KPIs from the previous run and the change since.",
            "items": {
              "type": "string",
              "enum": [
                "PREVIOUS",
                "7_DAYS",
                "30_DAYS",
                "90_DAYS"
              ],
              "enumTitles": [
                "Previous run",
                "Last 7 days",
                "Last 30 days",
                "Last 90 days"
              ]
            },
            "default": [
              "PREVIOUS",
              "7_DAYS",
              "30_DAYS"
            ]
          },
          "includeTranslations": {
            "title": "Include translations",
            "type": "boolean",
            "description": "Fill review.translatedText when Google provides a translation. The original text is always kept in review.text.",
            "default": true
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Interface / translation language code, e.g. en, de, fr.",
            "default": "en"
          },
          "saveHistory": {
            "title": "Save event history",
            "type": "boolean",
            "description": "Also append every event to the named dataset google-maps-review-response-history in your account, so the full history survives this run's retention.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Defaults to Apify Datacenter (useApifyProxy: true). Apify Residential is NOT supported — a run that selects it uses Apify Datacenter instead, with a warning; for residential routing supply your own provider via Custom proxy URLs (proxyConfiguration.proxyUrls).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}