{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews Scraper",
    "description": "Scrape Google Maps reviews for any business link, place ID or search: stars, full text, date, owner reply, likes, food/service/atmosphere scores and visit details. Each business also gets a star breakdown, review topics and reply rate. Date and star filters. No login. $0.30 per 1,000 reviews.",
    "version": "0.1",
    "x-build-id": "Eah3etzsKjacAnr5a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~google-maps-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-google-maps-reviews",
        "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/locaihost~google-maps-reviews/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-google-maps-reviews",
        "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/locaihost~google-maps-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-google-maps-reviews",
        "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": {
          "startUrls": {
            "title": "Google Maps links",
            "type": "array",
            "description": "Paste the Google Maps link of each business whose reviews you want (the link in your browser bar or from Share). Short maps.app.goo.gl links work too, and so do search links (google.com/maps/search/…/@lat,lng,13z): every business the search finds gets its reviews read.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs (optional)",
            "type": "array",
            "description": "Google place IDs (ChIJ…), CIDs or feature IDs (0x…:0x…), one per line.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (optional)",
            "type": "array",
            "description": "Find businesses by search, e.g. \"dentist\" or \"coffee shop\". Needs at least one location. Each term is searched in each location.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (optional)",
            "type": "array",
            "description": "Where to search, e.g. \"Austin, TX\" or \"Leeds, UK\". Add the region or country so Google finds the right place.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerPlace": {
            "title": "Reviews per business",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Up to this many reviews for each business, one row each (charged per review). Up to 5,000. Each business also gets one summary row with its star breakdown, review topics, owner reply rate and the average rating of the last 90 days.",
            "default": 100
          },
          "reviewsSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "most-relevant",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Which reviews come first. Newest first suits \"since\" dates and schedules.",
            "default": "newest"
          },
          "maxPlacesPerQuery": {
            "title": "Businesses per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many businesses each search term returns in each location (1 to 200). Every business returned has its reviews read.",
            "default": 10
          },
          "reviewsSince": {
            "title": "Only reviews since (optional)",
            "type": "string",
            "description": "A date like 2026-01-31, or a span like \"30 days\", \"3 months\" or \"1 year\". With newest first, reading stops at the first older review, so you pay for nothing older."
          },
          "reviewsUntil": {
            "title": "Only reviews until (optional)",
            "type": "string",
            "description": "The latest review date to keep, same wording as \"since\": a date like 2026-06-30 (that whole day is included) or a span like \"30 days\" (reviews at least 30 days old). Newer reviews are skipped and not charged."
          },
          "reviewKeywords": {
            "title": "Only reviews that mention (optional)",
            "type": "array",
            "description": "Words or phrases, e.g. \"parking\" or \"slow service\". A review is kept when its text, or Google's translation of it, contains any of them (case and accents ignored). Reviews left out are not charged.",
            "items": {
              "type": "string"
            }
          },
          "reviewRatings": {
            "title": "Only these star ratings (optional)",
            "type": "array",
            "description": "e.g. 1 and 2 for complaints only. Leave empty for every rating. Pair with \"Lowest rating first\" so reading stops at the first higher rating.",
            "items": {
              "type": "string"
            }
          },
          "includeReviewerNames": {
            "title": "Include reviewer display names",
            "type": "boolean",
            "description": "Off by default: review rows carry no reviewer name. On adds the public display name only, never profile links or photos.",
            "default": false
          },
          "onlyNew": {
            "title": "Only reviews new since the last run",
            "type": "boolean",
            "description": "Remembers every review this saved task already returned and skips it, so a daily or weekly schedule returns just the new reviews. Businesses already returned are not returned or charged again. Off by default so the first run returns everything.",
            "default": false
          },
          "minRating": {
            "title": "Minimum Google rating (optional)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Leave out businesses rated below this many stars, e.g. 4.5. Businesses with no rating yet are left out too. Applied before any review is read, so a business it drops costs nothing."
          },
          "categoryFilter": {
            "title": "Only these categories (optional)",
            "type": "array",
            "description": "Keep only businesses with a Google category containing one of these words, e.g. \"dentist\" keeps \"Dentist\" and \"Cosmetic dentist\" but not \"Dental clinic\". Not case-sensitive. Google returns nearby businesses of other kinds for many searches; this drops them before any website is checked, so they cost nothing.",
            "items": {
              "type": "string"
            }
          },
          "skipClosed": {
            "title": "Skip permanently closed businesses",
            "type": "boolean",
            "description": "Closed businesses are never a lead.",
            "default": true
          },
          "excludePlaceIds": {
            "title": "Already have these places (optional)",
            "type": "array",
            "description": "Businesses to leave out: place IDs, CIDs, feature IDs or Maps links. They are never looked up, returned or charged.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Results language",
            "type": "string",
            "description": "Language for Google's wording and translations, e.g. \"en\", \"de\", \"es\". Each review keeps its original text; when Google offers a translation into this language, it is added as textTranslated.",
            "default": "en"
          },
          "countryCode": {
            "title": "Search from country",
            "type": "string",
            "description": "Two-letter country code Google searches from, e.g. \"us\", \"gb\", \"sg\". Affects which results are shown.",
            "default": "us"
          },
          "checkWebsites": {
            "title": "Check each business's website ($)",
            "type": "boolean",
            "description": "Fetch each website and report HTTPS, mobile-readiness, speed, CMS, footer copyright year, SSL expiry, DMARC and email provider. This is what produces the lead score. Businesses with no website are never charged a check.",
            "default": false
          },
          "websiteCheckSample": {
            "title": "Price first: check only a random sample of websites",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "0 (the default) checks every website. Set 10–500 to check only that many websites, picked at random (the same search always picks the same ones). The run then returns and charges ONLY those businesses, one place plus one website check each, so its price is known before it starts. It reports how many of them are hits, the estimated hits in the whole list and what the full run would cost. Businesses with no website or only a social page are counted, not returned. Needs website checks on; onlyNew is ignored.",
            "default": 0
          },
          "sampleSeed": {
            "title": "Sample seed (optional)",
            "type": "string",
            "description": "Leave empty and the same search always picks the same random sample. Enter any word or number to draw a different random sample of the same search; the same seed always gives the same sample again."
          },
          "includeContacts": {
            "title": "Add contact details from each business's own website ($)",
            "type": "boolean",
            "description": "Off by default. Needs website checks on. Reads the homepage the check already fetched plus at most 2 more pages on the same site (the contact page, then the about page, found from its links; robots.txt is respected) and adds emails (shared business mailboxes such as info@ or bookings@ only; addresses that look like a person's are dropped), Facebook, Instagram, LinkedIn company, X, TikTok and YouTube links, and the contact page URL. Charged as one contact-details event per business, only when its website gives at least one email or social profile.",
            "default": false
          },
          "leadProfile": {
            "title": "Score leads for",
            "type": "string",
            "description": "Which problems count as a reason to call. The same business scores differently for different sellers: a missing DMARC record matters to an IT provider and not to a web designer.",
            "default": "web-design"
          },
          "websiteFilter": {
            "title": "Only return businesses whose website is…",
            "type": "string",
            "description": "\"A problem\" covers no website, social-only, unreachable, parked, broken or no HTTPS: the ones worth calling.",
            "default": "any"
          },
          "skipPreviouslyReturned": {
            "title": "Skip businesses any earlier run returned",
            "type": "boolean",
            "description": "Remembers every business this run returns under the memory name below and skips them in later runs, whatever those runs searched for. Works across tasks that share the memory name, so overlapping lists never charge you twice. Off by default.",
            "default": false
          },
          "memoryName": {
            "title": "Memory name",
            "type": "string",
            "description": "Runs with the same name share one list of returned businesses. Leave empty to use one shared list called \"default\".",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}