{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews & Sentiment Extractor",
    "description": "Extract every Google Maps review for a place - rating, date, reviewer, like count, photos and the owner's reply - and score each one positive / neutral / negative with built-in sentiment analysis. Feed it Maps URLs, Place IDs or CIDs; export to JSON, CSV, Excel or NDJSON. No login, no API key.",
    "version": "0.0",
    "x-build-id": "eoLFHWfvnOq6u1bWi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~google-maps-reviews-sentiment-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-google-maps-reviews-sentiment-extractor",
        "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/fanndev~google-maps-reviews-sentiment-extractor/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-google-maps-reviews-sentiment-extractor",
        "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/fanndev~google-maps-reviews-sentiment-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-google-maps-reviews-sentiment-extractor",
        "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": "Google Maps URLs to scrape. Open a place in Google Maps and copy the URL from the address bar. Short links (maps.app.goo.gl) are followed automatically. NOTE: a free-text search query is NOT accepted here - Google no longer exposes place search to non-browser clients, so this actor works from place identifiers only.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs / CIDs / feature IDs",
            "type": "array",
            "description": "Alternative to URLs. Accepts a Place ID (ChIJ...), a numeric CID, or a raw feature ID (0x...:0x...). One per line.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "reviews",
              "summary_only",
              "owner_responses"
            ],
            "type": "string",
            "description": "reviews = every review plus a per-place summary row (default). summary_only = one page of reviews, emit only the aggregated sentiment summary (fast and cheap). owner_responses = only reviews the business replied to, for response-rate analysis.",
            "default": "reviews"
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many reviews per place. Google serves up to 60 on the first page and 20 per page after that.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "newest",
              "relevant",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Google applies this server-side. 'relevant' returns a mixed-rating sample; 'newest' is the only order that reliably walks the whole list.",
            "default": "newest"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews rated at or above this value (1-5)."
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews rated at or below this value (1-5). Combine with the minimum to isolate, say, 1-2 star complaints."
          },
          "onlyWithOwnerResponse": {
            "title": "Only reviews with an owner response",
            "type": "boolean",
            "description": "Keep only reviews the business has replied to.",
            "default": false
          },
          "boundingBox": {
            "title": "Bounding box [south, west, north, east]",
            "type": "array",
            "description": "Keep only places inside this box. Requires the input URL to carry coordinates (the !3d/!4d or @lat,lng part of a Maps URL) - see the README on geographic filtering."
          },
          "centerLatitude": {
            "title": "Radius filter - centre latitude",
            "type": "string",
            "description": "Latitude of the centre point, used with centre longitude and radius."
          },
          "centerLongitude": {
            "title": "Radius filter - centre longitude",
            "type": "string",
            "description": "Longitude of the centre point."
          },
          "radiusKm": {
            "title": "Radius filter - radius (km)",
            "type": "string",
            "description": "Keep only places within this many kilometres of the centre point."
          },
          "areaName": {
            "title": "Named area",
            "type": "string",
            "description": "Shorthand for a built-in bounding box, e.g. 'jakarta', 'bali', 'london', 'indonesia'. For anywhere else use an explicit bounding box."
          },
          "onMissingCoordinates": {
            "title": "When a place has no coordinates",
            "enum": [
              "keep",
              "skip"
            ],
            "type": "string",
            "description": "How to treat a place whose input URL carries no coordinates while a geographic filter is active. 'keep' scrapes it anyway and logs a warning; 'skip' emits a SKIPPED record instead.",
            "default": "keep"
          },
          "exportFormats": {
            "title": "Extra export files",
            "type": "array",
            "description": "Also write the run's records to the key-value store in these formats. The Apify dataset is always produced regardless.",
            "items": {
              "type": "string",
              "enum": [
                "json",
                "csv",
                "excel",
                "ndjson"
              ],
              "enumTitles": [
                "JSON",
                "CSV",
                "Excel (.xlsx)",
                "NDJSON"
              ]
            },
            "default": []
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Google interface language. Also decides which language Google translates reviews into.",
            "default": "en"
          },
          "region": {
            "title": "Region (gl)",
            "type": "string",
            "description": "Two-letter country code biasing Google's response, e.g. US, ID, GB.",
            "default": "US"
          },
          "pageSize": {
            "title": "First-page size",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Reviews requested on the first page. Google caps this at 60 and always returns 20 per page afterwards.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default, and that is the recommended setting. These endpoints have no WAF, so the platform's own IP works fine and costs nothing. Enable a proxy only to spread load across IPs at high volume, and leave the group list empty so Apify picks a group your plan has. RESIDENTIAL is NOT recommended here: Google polices residential proxy pools heavily and answers them with a consent or CAPTCHA interstitial, which makes places fail to resolve.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}