{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews",
    "description": "Scrap Google maps reviews with the place detail information.",
    "version": "0.5",
    "x-build-id": "kyzNFmt1lAQ0vMiHh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stable_crawl~google-maps-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stable_crawl-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/stable_crawl~google-maps-reviews/runs": {
      "post": {
        "operationId": "runs-sync-stable_crawl-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/stable_crawl~google-maps-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-stable_crawl-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": {
          "scrapeMode": {
            "title": "Scrape mode",
            "enum": [
              "place",
              "reviews",
              "all"
            ],
            "type": "string",
            "description": "Choose what data to collect from each place.",
            "default": "all"
          },
          "places": {
            "title": "Places to scrape",
            "type": "object",
            "description": "Provide places via URLs, Place IDs, decimal CIDs, or CID strings. You can combine these methods.",
            "properties": {
              "startUrls": {
                "title": "Google Maps URLs",
                "type": "array",
                "description": "Add one or more Google Maps place URLs. You can paste URLs directly from your browser's address bar.",
                "editor": "requestListSources",
                "prefill": [
                  {
                    "url": "https://www.google.com/maps/place/Gwanghwamun+Square/@37.5723718,126.9767087,17z/data=!4m6!3m5!1s0x357ca2eb421c44ad:0xe955a50c118085f8!8m2!3d37.5723718!4d126.9767087!16s%2Fg%2F11bwg77qn1"
                  }
                ]
              },
              "placeIds": {
                "title": "Place IDs",
                "type": "array",
                "description": "Add Google Maps Place IDs, one per line. Example: ChIJLwiGVMKifDURzGJnUMCMSx8. You can find a place's ID in its Google Maps URL after the '1s' parameter.",
                "editor": "stringList",
                "items": {
                  "type": "string"
                }
              },
              "cids": {
                "title": "CIDs",
                "type": "array",
                "description": "Add Google Maps decimal CIDs, one per line. Example: 16813526255109441016.",
                "editor": "stringList",
                "items": {
                  "type": "string"
                }
              },
              "cidStrs": {
                "title": "CID strings (cid_str)",
                "type": "array",
                "description": "Add Google Maps cid_str values, one per line. Example: 0x357ca2eb421c44ad:0xe955a50c118085f8.",
                "editor": "stringList",
                "items": {
                  "type": "string"
                }
              }
            },
            "default": {}
          },
          "sort": {
            "title": "Review sort order",
            "enum": [
              "relevant",
              "newest",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "How to sort the reviews before collecting them.",
            "default": "newest"
          },
          "maxReviews": {
            "title": "Max reviews per place",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of reviews to collect per place. Leave empty to collect all available reviews."
          },
          "reviewsSince": {
            "title": "Reviews since date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Only collect reviews published on or after this date. This filter only works when review sort order is set to 'Newest first'."
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ko",
              "ja",
              "zh-CN",
              "zh-TW",
              "es",
              "fr",
              "de",
              "pt",
              "it",
              "ru",
              "ar",
              "hi",
              "tr",
              "nl"
            ],
            "type": "string",
            "description": "Language for place details and review translations. For unlisted languages, use the JSON input editor to enter any BCP-47 code (e.g., 'th', 'vi', 'pl').",
            "default": "en"
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "flat",
              "nested"
            ],
            "type": "string",
            "description": "Flat format puts all fields at the top level, ideal for CSV and Excel export. Nested format groups fields under 'place' and 'review' objects, better for JSON processing.",
            "default": "flat"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}