{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Photos Scraper - All Place Photos & Videos",
    "description": "[💵 $1.2 / 1K] Every photo and video for any Google Maps place, from a search query or a place URL - no second Actor needed. One flat row per image with direct URL, size, caption, upload date, media type, geotag and camera heading.",
    "version": "0.2",
    "x-build-id": "hLkrnYRusSQe9Arl8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/webdata_labs~google-maps-photos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-webdata_labs-google-maps-photos-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/webdata_labs~google-maps-photos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-webdata_labs-google-maps-photos-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/webdata_labs~google-maps-photos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-webdata_labs-google-maps-photos-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Search Google Maps and pull photos for the places it finds - no need to run a separate Maps scraper first. Example: \"pizza in New York\". Combine with maxPlacesPerQuery to control how many places each query contributes.",
            "items": {
              "type": "string"
            }
          },
          "placeUrls": {
            "title": "Place URLs",
            "type": "array",
            "description": "Google Maps place URLs. Full URLs containing a !1s0x…:0x… segment, place_id:ChIJ… URLs, and maps.app.goo.gl / goo.gl/maps share links all work. URLs with only coordinates (@lat,lng,zoom) are not valid - click the place pin first so the URL picks up its place id.",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs (hex CID)",
            "type": "array",
            "description": "Google Maps place identifiers in hex CID form (0x…:0x…). Use this when you already have ids and want to skip URL parsing entirely.",
            "items": {
              "type": "string"
            }
          },
          "photoCategories": {
            "title": "Keep only",
            "type": "array",
            "description": "The Actor always sweeps every photo tab Google composed for the place and deduplicates by photo id; this narrows what ends up in the dataset. \"all\" keeps everything. \"menu\" and \"exterior\" filter on the category tag Google puts on each photo; \"photos\" / \"videos\" split on media type. Every row also carries the raw categoryTag so you can filter further yourself.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "menu",
                "exterior",
                "photos",
                "videos"
              ],
              "enumTitles": [
                "All",
                "Menu",
                "Exterior / storefront",
                "Photos only",
                "Videos only"
              ]
            },
            "default": [
              "all"
            ]
          },
          "maxPhotosPerPlace": {
            "title": "Max photos per place",
            "minimum": 0,
            "type": "integer",
            "description": "Cap photos collected per place. A popular restaurant can hold thousands, so the default keeps a first run cheap and fast. Set 0 for unlimited - there is no hard ceiling.",
            "default": 100
          },
          "maxPlacesPerQuery": {
            "title": "Max places per search query",
            "minimum": 1,
            "type": "integer",
            "description": "How many places each search query contributes. Ignored when you pass place URLs or ids directly.",
            "default": 5
          },
          "imageSize": {
            "title": "Image size",
            "enum": [
              "thumbnail",
              "medium",
              "large",
              "original"
            ],
            "type": "string",
            "description": "Resolution of the returned image URLs. \"original\" returns the full-size file Google stores, which for a phone photo is typically 1-4 MB.",
            "default": "original"
          },
          "outputMode": {
            "title": "Output shape",
            "enum": [
              "photo",
              "place"
            ],
            "type": "string",
            "description": "\"photo\" gives one flat row per image with the place fields on it - drops straight into a CSV or an ML pipeline. \"place\" gives one row per place with the photos nested, which is easier to join back to a places export.",
            "default": "photo"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "pt",
              "it",
              "nl",
              "pl",
              "tr",
              "ru",
              "uk",
              "ar",
              "hi",
              "id",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW"
            ],
            "type": "string",
            "description": "Language for photo captions and labels Google returns.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pt",
              "br",
              "pl",
              "tr",
              "mx",
              "ar",
              "in",
              "id",
              "jp",
              "kr",
              "ae",
              "za"
            ],
            "type": "string",
            "description": "Country whose Google frontend the Actor queries. Affects which places a search returns and how results are localized.",
            "default": "us"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}