{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Photos & Videos Scraper",
    "description": "Extract every photo and video for any Google Maps place, categorized as Menu, Food & drink, Vibe, By owner, Latest, Videos, and Street View.",
    "version": "0.0",
    "x-build-id": "5LprD5nHI3QFpoRgh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lurkapi~google-maps-photos-and-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lurkapi-google-maps-photos-and-videos-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/lurkapi~google-maps-photos-and-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lurkapi-google-maps-photos-and-videos-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/lurkapi~google-maps-photos-and-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lurkapi-google-maps-photos-and-videos-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": {
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 10,
            "type": "array",
            "description": "Keywords to search on Google Maps. One per line. Each is paired with the Location field below. Every matching place gets photos scraped.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, region, or country to search in. A city name alone works (e.g. 'Paris'); add a country for precision (e.g. 'Paris, France'). Ignored when a Search circle or Search polygon is set."
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Cap on how many places one search keyword surfaces before photo scraping begins. Google's hard cap is ~120 per query.",
            "default": 5
          },
          "googleMapsUrls": {
            "title": "Google Maps URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Paste up to 100 Google Maps URLs. These combine with Place IDs and keyword searches in the same run. Supported shapes:\n• Full Google Maps URL (paste from the address bar or 'Copy link')\n• Share link (maps.app.goo.gl / goo.gl/maps)",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs or CIDs",
            "maxItems": 100,
            "type": "array",
            "description": "Paste one identifier per line. Accepted formats:\n• Google Place ID (e.g. ChIJD7fiBh9u5kcRYJSMaMOCCwQ)\n• place_id:ChIJ... prefix\n• Hex CID (0x47e66e2964e34e2d:0x8ddca9ee380ef7e0)\n\nCombines with Google Maps URLs above; either or both work.",
            "items": {
              "type": "string"
            }
          },
          "searchCircle": {
            "title": "Search circle (lat / lng / radius miles)",
            "type": "object",
            "description": "Limit search to a circular area. Provide { \"lat\": <number>, \"lng\": <number>, \"radiusMiles\": <number> }. Centers the Maps viewport here and drops places outside the radius. Combine with Search terms; Location is ignored when this is set."
          },
          "searchPolygon": {
            "title": "Search polygon (GeoJSON ring)",
            "type": "array",
            "description": "Limit search to an arbitrary polygon. Provide an array of [lng, lat] pairs (GeoJSON convention; first and last point can match; ≥3 vertices). Takes precedence over Search circle when both are set.",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "categories": {
            "title": "Categories to scrape",
            "uniqueItems": true,
            "type": "array",
            "description": "Which photo tabs to include. Pick 'all' to scrape every tab. Tabs not present on a given place are skipped automatically.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "menu",
                "food",
                "vibe",
                "by_owner",
                "latest",
                "videos",
                "street_view"
              ],
              "enumTitles": [
                "All photos",
                "Menu",
                "Food & drink",
                "Vibe",
                "By owner",
                "Latest",
                "Videos",
                "Street View & 360°"
              ]
            },
            "default": [
              "all"
            ]
          },
          "maxPhotosPerPlace": {
            "title": "Max photos per place (total)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on how many photos are returned per place, summed across every selected category. Tabs are drained in order — the cap stops the whole place once reached. Lower it for cheap previews; raise it for full collection.",
            "default": 200
          },
          "imageSize": {
            "title": "Image resolution",
            "enum": [
              "thumbnail",
              "medium",
              "large",
              "original"
            ],
            "type": "string",
            "description": "Requested image resolution. Standard photos use Google's CDN resizing; Street View images are rendered and saved to this run's storage. Original uses the largest supported Street View render.",
            "default": "large"
          },
          "outputThumbnailUrl": {
            "title": "Thumbnail URL",
            "type": "boolean",
            "description": "Preview URL alongside the full-size image URL. Street View rows use their stored-image URL for both fields.",
            "default": true
          },
          "outputDimensions": {
            "title": "Dimensions (width × height)",
            "type": "boolean",
            "description": "Original dimensions for standard photos and videos; stored-image dimensions for Street View rows.",
            "default": true
          },
          "outputGps": {
            "title": "GPS coordinates (latitude / longitude)",
            "type": "boolean",
            "description": "GPS EXIF data when present. Stripped from ~70% of user uploads.",
            "default": true
          },
          "outputUploadDate": {
            "title": "Upload date (ISO 8601)",
            "type": "boolean",
            "description": "Date the photo was posted to Google Maps.",
            "default": true
          },
          "outputUploadedByOwner": {
            "title": "Uploaded-by-owner flag",
            "type": "boolean",
            "description": "True when the place owner posted the photo via Google My Business.",
            "default": true
          },
          "outputSource": {
            "title": "Upload source",
            "type": "boolean",
            "description": "Normalized source: android, ios, web, owner, or street_view.",
            "default": true
          },
          "outputPlaceName": {
            "title": "Place name",
            "type": "boolean",
            "description": "Human-readable place name resolved from Google Maps.",
            "default": true
          },
          "outputPlaceUrl": {
            "title": "Place URL (input)",
            "type": "boolean",
            "description": "The original URL the user provided for this place.",
            "default": true
          },
          "outputPlaceIds": {
            "title": "Place identifiers (FID + KG entity + place_id)",
            "type": "boolean",
            "description": "Stable Google identifiers for the place. Useful when feeding rows into other Maps tools.",
            "default": true
          },
          "outputSearchKeyword": {
            "title": "Source search keyword",
            "type": "boolean",
            "description": "When the place was surfaced from a search keyword (not a direct URL), include which keyword produced it.",
            "default": true
          },
          "outputInternalCategoryCode": {
            "title": "Internal category code (advanced)",
            "type": "boolean",
            "description": "Google's numeric per-photo category tag. Mostly useful for debugging.",
            "default": false
          },
          "outputScrapedAt": {
            "title": "Scrape timestamp",
            "type": "boolean",
            "description": "ISO 8601 timestamp of when the row was extracted.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}