{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews Scraper with Owner Replies & AI Insights",
    "description": "Extract Google Maps reviews with owner replies, translations, photos and reviewer profiles from any place URL, Place ID or search. Optional AI summaries and per-review sentiment. Pay per result.",
    "version": "0.1",
    "x-build-id": "l5IZNHbuzJ4eelvKU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maxencebernerd~google-maps-reviews-ai-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maxencebernerd-google-maps-reviews-ai-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/maxencebernerd~google-maps-reviews-ai-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maxencebernerd-google-maps-reviews-ai-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/maxencebernerd~google-maps-reviews-ai-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maxencebernerd-google-maps-reviews-ai-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": {
          "placeUrls": {
            "title": "Google Maps place URLs",
            "type": "array",
            "description": "Links to Google Maps places. Accepts full place URLs (`https://www.google.com/maps/place/...`), short links (`https://maps.app.goo.gl/...`, `https://goo.gl/maps/...`), `?cid=` links and `place_id:` links. Search-result URLs (`/maps/search/...`) are also accepted and expanded into places.",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "Google Place IDs (e.g. `ChIJLU7jZClu5kcR4PcOOm6E87A`). You can get them from the Google Places API, the Places ID Finder, or the output of other Google Maps scrapers.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Free-text searches such as `dentist in Lyon` or `italian restaurant near Times Square`. Each query is run on Google Maps and the first `maxPlacesPerQuery` places are scraped. Combine with `location` to anchor the search.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Search location",
            "type": "string",
            "description": "Optional city, region or address appended to every search query (e.g. `Paris, France`). Ignored when no search queries are provided."
          },
          "maxPlacesPerQuery": {
            "title": "Max places per search query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many places to scrape for each search query.",
            "default": 10
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of reviews scraped for each place. Set `0` for all reviews. Cost scales with the number of reviews returned.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "newest",
              "most_relevant",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Order in which Google returns reviews. Use `newest` together with `reviewsNewerThan` to fetch only recent reviews.",
            "default": "newest"
          },
          "reviewsNewerThan": {
            "title": "Only reviews newer than",
            "type": "string",
            "description": "Skip reviews published before this date. Accepts an absolute date (`2025-01-31`) or a relative period (`30 days`, `6 months`, `1 year`). Works best with `sortBy: newest`, where scraping stops as soon as older reviews are reached."
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep reviews with at least this many stars (1-5). Leave empty to keep all ratings."
          },
          "language": {
            "title": "Language",
            "pattern": "^[a-z]{2}(-[A-Za-z]{2,4})?$",
            "type": "string",
            "description": "Language code for the Google Maps interface (`hl` parameter). Reviews written in other languages also include Google's translation into this language in `textTranslated`.",
            "default": "en"
          },
          "includeOwnerReplies": {
            "title": "Include owner replies",
            "type": "boolean",
            "description": "Add the business owner's public response (`ownerReplyText`, `ownerReplyAt`) to each review.",
            "default": true
          },
          "includeReviewerProfile": {
            "title": "Include reviewer profile details",
            "type": "boolean",
            "description": "Add public reviewer profile data: profile URL, total review count and Local Guide status. Reviewer names are always included. No e-mails or phone numbers are ever collected.",
            "default": false
          },
          "enableAiInsights": {
            "title": "Generate AI summary per place",
            "type": "boolean",
            "description": "For each place, produce an AI summary: overall sentiment, top 5 positive and negative themes, representative quotes and a 12-month trend. Output as one extra dataset row with `rowType: \"place-summary\"`. Charged once per place (event `place-summary`).",
            "default": false
          },
          "enableReviewClassification": {
            "title": "Classify each review with AI",
            "type": "boolean",
            "description": "Adds `aiSentiment`, `aiMainTheme` and `aiMentions` (price, service, cleanliness, waiting time, staff) to every review. Charged per review (event `review-classified`).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Google Maps blocks datacenter IPs quickly: residential Apify Proxy is the default. Pinning the proxy to a European country (default: France) gives the most stable sessions, because Google serves EU visitors a consent page that establishes a regular browsing session. You can pick any country.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "FR"
            }
          },
          "debugDumpRaw": {
            "title": "Debug: store raw Google payloads",
            "type": "boolean",
            "description": "Support option. Saves the raw review payloads into the key-value store (RAW-* records).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of places processed in parallel (one browser tab each). Higher values are faster but use more memory and proxy sessions.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}