{
  "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": "jq5xGuvbA9s1n5Lc9"
  },
  "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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Place URLs or IDs",
            "type": "array",
            "description": "One or more places to scrape photos for. 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)\n• place_id:ChIJ... URL\n• Hex CID (0x...:0x...)\n\nEither this OR the search-term fields below must be provided.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchTerms": {
            "title": "Search keywords (alternative to URLs)",
            "type": "array",
            "description": "Search keywords to find places by. Each keyword runs as a Google Maps search; every matching place gets photos scraped. Combine with 'Location', 'Search circle', or 'Search polygon' below.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "location": {
            "title": "Location (for search keywords)",
            "type": "string",
            "description": "City, region, or country to search in. A city name alone works ('Paris'); add a country for precision ('Paris, France'). Ignored if 'searchCircle' or 'searchPolygon' is also set.",
            "default": ""
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search keyword",
            "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": 20
          },
          "searchCircle": {
            "title": "Search circle (lat / lng / radiusMiles)",
            "type": "object",
            "description": "Limit search keywords to a circular area. Provide JSON like `{ \"lat\": 48.86, \"lng\": 2.35, \"radiusMiles\": 5 }`. Overrides 'Location' when set."
          },
          "searchPolygon": {
            "title": "Search polygon ([lng, lat] pairs)",
            "type": "array",
            "description": "Limit search keywords to a polygon. Provide JSON like `[[2.32, 48.85], [2.40, 48.85], [2.40, 48.90], [2.32, 48.90]]` (≥3 [lng, lat] vertices). Overrides 'Location' and 'Search circle' when set.",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "default": []
          },
          "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 (per category)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop paginating each tab once this many photos have been returned. Set to a small number for previews; raise it (or omit) for full collection.",
            "default": 200
          },
          "imageSize": {
            "title": "Image resolution",
            "enum": [
              "thumbnail",
              "medium",
              "large",
              "original"
            ],
            "type": "string",
            "description": "Suffix applied to the image URL. Larger sizes cost the same in this Actor — Google's CDN serves the resize for free.",
            "default": "large"
          },
          "outputType": {
            "title": "Media type",
            "type": "boolean",
            "description": "Whether the entry is a photo, video, or Street View panorama.",
            "default": true
          },
          "outputCategory": {
            "title": "Category (key + label)",
            "type": "boolean",
            "description": "The Maps tab the photo came from (key like 'food', label like 'Food & drink').",
            "default": true
          },
          "outputThumbnailUrl": {
            "title": "Thumbnail URL",
            "type": "boolean",
            "description": "Small preview URL (~200px), alongside the full-size image URL.",
            "default": true
          },
          "outputDimensions": {
            "title": "Original dimensions (width × height)",
            "type": "boolean",
            "description": "Original pixel dimensions of the photo or video frame.",
            "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 (android / ios / web / owner)",
            "type": "boolean",
            "description": "Normalized source platform the photo was uploaded from.",
            "default": true
          },
          "outputPlaceName": {
            "title": "Place name",
            "type": "boolean",
            "description": "Human-readable place name extracted from the input URL.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}