{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Review Velocity & Reply Rate: Maps Lead Scorer",
    "description": "Scores Google Maps businesses from review rows (compass reviews scraper, Google Maps scraper or a sheet): reviews last 90 days vs before, owner reply rate, unanswered bad reviews, rating trend, lead score. Per business. MCP, x402.",
    "version": "0.1",
    "x-build-id": "8Rva30LbPjMxxqvTX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nerolabs~google-review-velocity/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nerolabs-google-review-velocity",
        "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/nerolabs~google-review-velocity/runs": {
      "post": {
        "operationId": "runs-sync-nerolabs-google-review-velocity",
        "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/nerolabs~google-review-velocity/run-sync": {
      "post": {
        "operationId": "run-sync-nerolabs-google-review-velocity",
        "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": {
          "datasetIds": {
            "title": "Datasets",
            "type": "array",
            "description": "One or more Google Maps review datasets: compass/google-maps-reviews-scraper (the biggest), other Google Maps reviews scrapers, or compass/crawler-google-places run with reviews included. One business, a rival list or a whole city and category. In a scraper's Integrations tab, set this to {{resource.defaultDatasetId}}."
          },
          "fileUrl": {
            "title": "File or Google Sheet URL",
            "type": "string",
            "description": "A public link to a CSV, Excel, JSON or JSON Lines file: Google Maps review rows, or your own sheet with a business (or place ID), review date, stars and owner reply column. Google Sheets share links work (set 'Anyone with the link can view')."
          },
          "fileFormat": {
            "title": "File format",
            "enum": [
              "auto",
              "csv",
              "tsv",
              "json",
              "jsonl",
              "xlsx"
            ],
            "type": "string",
            "description": "Leave on 'Detect automatically' unless the link has no file extension.",
            "default": "auto"
          },
          "sheetName": {
            "title": "Excel sheet name",
            "type": "string",
            "description": "Which sheet to read from an Excel workbook. Defaults to the first sheet."
          },
          "data": {
            "title": "Review rows",
            "type": "array",
            "description": "Rows as JSON objects, for a quick run or an AI agent call, e.g. [{\"title\": \"Acme Plumbing\", \"placeId\": \"ChIJ...\", \"publishedAtDate\": \"2026-10-01\", \"stars\": 2, \"responseFromOwnerText\": null}]. Google Maps scraper rows can be passed as they are."
          },
          "windowDays": {
            "title": "Velocity window (days)",
            "minimum": 7,
            "maximum": 365,
            "type": "integer",
            "description": "Reviews in the last N days are compared with the N days before that. 90 is the default; 30 for fast-moving businesses.",
            "default": 90
          },
          "replyLookbackDays": {
            "title": "Owner reply lookback (days)",
            "minimum": 7,
            "maximum": 3650,
            "type": "integer",
            "description": "Owner reply rate and unanswered 1 or 2 star reviews are counted on reviews from the last N days (at least the newest 10 reviews).",
            "default": 180
          },
          "momentum": {
            "title": "Only these momentum levels",
            "type": "array",
            "description": "Keep only businesses with this review momentum (empty = all; the rest are free). Growing: reviews up 50%+ vs the window before. Slowing: down 50%+. Stalled: no review in the window. Quiet: under 3 reviews in both windows. Unknown: the rows do not reach back far enough.",
            "items": {
              "type": "string",
              "enum": [
                "growing",
                "steady",
                "slowing",
                "stalled",
                "quiet",
                "unknown"
              ],
              "enumTitles": [
                "Growing",
                "Steady",
                "Slowing",
                "Stalled",
                "Quiet",
                "Unknown"
              ]
            }
          },
          "requiredTags": {
            "title": "Must have all these tags",
            "type": "array",
            "description": "Keep only businesses that carry every tag picked (the rest are free). 'Neglected' = ignores reviews AND has unanswered bad reviews, slowing reviews or a falling rating: the classic reputation agency lead.",
            "items": {
              "type": "string",
              "enum": [
                "neglected",
                "never_replies",
                "low_reply_rate",
                "unanswered_negative",
                "rating_falling",
                "slowing",
                "stalled",
                "growing",
                "rating_rising",
                "replies_to_reviews",
                "few_reviews"
              ],
              "enumTitles": [
                "Neglected",
                "Never replies (under 10%)",
                "Low reply rate (under 50%)",
                "Unanswered 1 or 2 star review",
                "Rating falling",
                "Slowing",
                "Stalled",
                "Growing",
                "Rating rising",
                "Replies to reviews (80%+)",
                "Few reviews (under 20)"
              ]
            }
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only businesses with at least this lead score, 0 to 100 (the rest are free). 50+ is a strong reputation or marketing lead.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "velocity",
              "reviewsPerMonth",
              "replyRate"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "leadScore"
          },
          "asOfDate": {
            "title": "As of date",
            "type": "string",
            "description": "The date the windows count back from, e.g. 2026-11-01. Leave empty to use the date the rows were scraped."
          },
          "maxItems": {
            "title": "Max rows to read",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Safety cap on review rows read from the input (not on businesses).",
            "default": 500000
          },
          "exportFormats": {
            "title": "Also save as a file",
            "type": "array",
            "description": "Also save the results as CSV and/or Excel in the run's key-value store (charged once per file).",
            "items": {
              "type": "string",
              "enum": [
                "csv",
                "xlsx"
              ],
              "enumTitles": [
                "CSV",
                "Excel (xlsx)"
              ]
            }
          },
          "outputDatasetName": {
            "title": "Also append to a named dataset",
            "type": "string",
            "description": "Also append the rows to a named dataset, for example to build a lead list across runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}