{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Photos API - Bulk Place Photos",
    "description": "Get every photo Google Maps holds for a place as structured JSON: full-size image URLs, thumbnails, gallery position, and a stable photo ID. Filter to menu, food and drink, vibe, by owner, videos, or street view. Chain it from a places search or paste a map URL. Pay per photo, MCP-ready.",
    "version": "0.0",
    "x-build-id": "QnIfY8IJlIba5Hb1F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/johnvc~google-maps-photos-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-johnvc-google-maps-photos-api",
        "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/johnvc~google-maps-photos-api/runs": {
      "post": {
        "operationId": "runs-sync-johnvc-google-maps-photos-api",
        "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/johnvc~google-maps-photos-api/run-sync": {
      "post": {
        "operationId": "run-sync-johnvc-google-maps-photos-api",
        "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": {
          "searchTerm": {
            "title": "Search",
            "type": "string",
            "description": "Find a place by name, or a category and a location. \"Mozart's Coffee Roasters, Austin TX\" returns that one place; \"coffee shops in Austin, TX\" returns several. Each search is one lookup and is billed per search, not per place found."
          },
          "searchTerms": {
            "title": "Searches",
            "type": "array",
            "description": "Run several searches in one go. Each entry is billed as one search.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerSearch": {
            "title": "Places Per Search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many of each search's results to fetch photos for. A search can match up to 20 places, and every place you keep costs photos. Default 3. Raise it for a neighborhood sweep, set it to 1 when you want only the top match.",
            "default": 3
          },
          "placeUrls": {
            "title": "Google Maps URLs",
            "type": "array",
            "description": "Paste Google Maps place URLs and the Actor reads each place identifier out of the link locally. Free: no search charge applies.",
            "items": {
              "type": "string"
            }
          },
          "dataId": {
            "title": "Place ID",
            "type": "string",
            "description": "A place you already have an identifier for. Accepts the hex identifier (0x...:0x...), which is the `dataId` or `fid` field returned by the Google Maps Places API Actor, or a full Google Maps place URL."
          },
          "dataIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "Fetch photos for several places in one run. Each entry is a hex identifier (0x...:0x...) or a Google Maps place URL. Merged with the single Place ID field above and de-duplicated.",
            "items": {
              "type": "string"
            }
          },
          "maxPhotosPerPlace": {
            "title": "Maximum Photos Per Place",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many photos to return for each place. Photos arrive in blocks of 20, so multiples of 20 are the most cost-efficient. Default 20.",
            "default": 20
          },
          "photoCategory": {
            "title": "Photo Category",
            "enum": [
              "all",
              "latest",
              "videos",
              "by_owner",
              "street_view",
              "menu",
              "food_and_drink",
              "vibe"
            ],
            "type": "string",
            "description": "Return only one gallery section instead of all photos. All Photos (default) applies no filter. Menu, Food & Drink, and Vibe apply to food and drink venues; the rest apply to any place.",
            "default": "all"
          },
          "hl": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter interface language code, for example en, es, or fr. Default en.",
            "default": "en"
          },
          "categoryId": {
            "title": "Custom Category ID",
            "type": "string",
            "description": "Filter by a venue-specific gallery category, such as an individual dish. These IDs vary per place; read them from the `place_categories` field on the place summary row of an earlier run. Overrides Photo Category when set."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}