{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Contributor Reviews Scraper (Local Guides)",
    "description": "⚡ Fast & Cheap ($1.20/1k): Monitor & scrape Google Maps contributor reviews, profiles & Local Guide histories. Paste any Place URL, query or contributor link for ratings & photos.",
    "version": "1.0",
    "x-build-id": "nZeTbf4rd5Wx07MgJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unitbytes~google-maps-contributor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unitbytes-google-maps-contributor-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/unitbytes~google-maps-contributor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unitbytes-google-maps-contributor-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/unitbytes~google-maps-contributor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unitbytes-google-maps-contributor-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",
        "properties": {
          "contributors": {
            "title": "Business Search Queries, Place URLs, Contributor URLs, Review Links, or User IDs",
            "type": "array",
            "description": "Type any Business Search Query (e.g. `Katz's Delicatessen New York`), Area/Neighborhood Query (`Juhu`), or paste a Google Maps Business Place URL, Direct Review Link, Contributor Profile URL, Google Search `#lrd=` Link, `writereview?placeid=` Link, `g.page/r/...` Link, Place ID (`ChIJ...`), or 21-digit User ID.\n\n**Supported formats (mix & match):**\n• **Business Search Query or Area/Neighborhood Query:** `Katz's Delicatessen New York` or `Juhu`\n• **Business Place URL (`/maps/place/...`):** `https://www.google.com/maps/place/...`\n• **Raw Google Place ID (`ChIJ...`), Decimal CID (`?cid=...`), or Feature ID (`0x...:0x...`):** `ChIJ6xTXncarw4kRfLnQ-2vdHd4`\n• **Google Search `#lrd=` Modal, `writereview?placeid=`, or `g.page/r/<CODE>/review` Link:** `https://g.page/r/CeqMy1fnRzUxEBM/review`\n• **Direct Review Permalink or Contributor Place Review Link:** `https://www.google.com/maps/reviews/data=...` or `https://www.google.com/maps/contrib/.../place/ChIJ...`\n• **Contributor Profile URL, 21-Digit User ID, or Mobile Share Shortlink:** `https://www.google.com/maps/contrib/102520373756565203865`, `102520373756565203865`, or `https://maps.app.goo.gl/...`",
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "Max Reviews per Contributor",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "How many reviews to extract per contributor (0 to 200). Prefilled at 50 for rich review history auditing; set up to 200 for complete review history (200 is Google Maps' maximum per contributor query).",
            "default": 10
          },
          "scrapeReviews": {
            "title": "Extract Reviews List",
            "type": "boolean",
            "description": "If enabled, extracts full reviews written by the contributor, including stars, full text, direct review permalinks, place info, and owner replies.",
            "default": true
          },
          "placeSort": {
            "title": "Place / Search Reviewer Filter (when using Business Search Queries or Place URLs)",
            "enum": [
              "negative_and_newest",
              "negative",
              "newest",
              "all"
            ],
            "type": "string",
            "description": "When entering a Business Search Query or Business Place URL (`/maps/place/...`), choose which reviewers to discover and audit:\n• **Negative (1★/2★) + Newest (Default):** Prioritizes 1-star & 2-star negative reviewers first, followed by newest reviewers.\n• **Negative Only (1★ & 2★):** Strictly discovers only 1-star and 2-star reviewers to audit review bombers.\n• **Newest Only:** Discovers the most recent reviewers in chronological order (ideal for daily scheduled monitoring).\n• **All Reviewers:** Discovers reviewers across negative, newest, and most relevant.",
            "default": "negative_and_newest"
          },
          "maxReviewersPerPlace": {
            "title": "Max Reviewers per Business Place / Search Query",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of unique reviewers to discover when a Business Search Query or Business Place URL (`/maps/place/...`) is provided (1 to 10,000, default 20).",
            "default": 20
          },
          "keyword": {
            "title": "Review Keyword Filter (Optional — for Business Search Queries & Place URLs)",
            "type": "string",
            "description": "Optional server-side keyword filter (e.g. `pastrami`, `scam`, `rude`, `manager`, `refund`, `wait time`). When discovering contributors from a Business Place URL or Business Search Query, Google Maps filters the business's reviews to only those mentioning this keyword and audits those contributors' full profiles and review histories."
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "flattened",
              "nested"
            ],
            "type": "string",
            "description": "Choose dataset layout: 'flattened' produces 1 row per review (best for Excel, CSV, Google Sheets), while 'nested' outputs 1 complete record per contributor profile with a reviews array (best for JSON/API integrations).",
            "default": "flattened"
          },
          "language": {
            "title": "Language Code (hl)",
            "type": "string",
            "description": "Language code for Google Maps results (e.g. 'en', 'es', 'fr', 'de'). Default is 'en'.",
            "default": "en"
          },
          "country": {
            "title": "Country Code (gl)",
            "type": "string",
            "description": "Two-letter country code for regional formatting and location bias (e.g. 'us', 'gb', 'fr', 'de'). Default is 'us'.",
            "default": "us"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxies to use. Apify Residential Proxies are enabled by default to prevent Google rate limits and 429/403 blocks.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of profiles to scrape concurrently (1 to 10).",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}