{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Street View Scraper",
    "description": "Extract public Street View panorama metadata from Google Maps URLs and coordinate searches.",
    "version": "2.0",
    "x-build-id": "bQVkKWyaEQEMbvzNh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~google-street-view-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-google-street-view-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/googleapi~google-street-view-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-google-street-view-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/googleapi~google-street-view-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-google-street-view-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": {
          "streetViewUrls": {
            "title": "Street View URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Public Google Maps Street View URLs.",
            "items": {
              "type": "string",
              "maxLength": 4000
            }
          },
          "latLonCoordinatesWithRadius": {
            "title": "Latitude/longitude with radius",
            "maxItems": 100,
            "type": "array",
            "description": "Open Google’s documented public panorama URL at each coordinate, accept only the nearest source panorama inside the radius. Does not enumerate all panoramas in a circle.",
            "items": {
              "type": "object",
              "properties": {
                "latitude": {
                  "title": "Latitude",
                  "description": "Decimal latitude.",
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90
                },
                "longitude": {
                  "title": "Longitude",
                  "description": "Decimal longitude.",
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180
                },
                "radius": {
                  "title": "Radius in meters",
                  "description": "Search radius in meters.",
                  "type": "number",
                  "minimum": 1,
                  "maximum": 1000
                }
              },
              "required": [
                "latitude",
                "longitude"
              ],
              "additionalProperties": false
            }
          },
          "queryString": {
            "title": "Location query",
            "maxLength": 300,
            "type": "string",
            "description": "A public location text query resolved through Nominatim before the public Street View search."
          },
          "geoJSON": {
            "title": "GeoJSON points",
            "type": "object",
            "description": "GeoJSON Point, MultiPoint, Polygon, Feature, or FeatureCollection used as coordinate input."
          },
          "scrapePanoramaImages": {
            "title": "Download verified panorama thumbnails",
            "type": "boolean",
            "description": "Default off. Download one identity-matching Google-exposed JPEG per panorama, validate actual bytes/dimensions and save a KVS artifact. Missing or denied imagery is diagnostic; no generated URL is claimed as an image.",
            "default": false
          },
          "panoramaImageResolution": {
            "title": "Panorama thumbnail resolution",
            "enum": [
              "512x256",
              "1024x512",
              "2048x1024",
              "4096x2048",
              "8192x4096"
            ],
            "type": "string",
            "description": "Requested dimensions for a public Street View thumbnail.",
            "default": "512x256"
          },
          "resultLimitPerThread": {
            "title": "Maximum panoramas",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum unique public panoramas emitted across all inputs.",
            "default": 100
          },
          "timeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time allowed for each public request.",
            "default": 30000
          },
          "browserWaitMs": {
            "title": "Browser wait (ms)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Milliseconds to allow the rendered Street View page to populate.",
            "default": 1800
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Additional attempts for transient public request errors.",
            "default": 1
          },
          "includeAddress": {
            "title": "Include reverse-geocoded address",
            "type": "boolean",
            "description": "Look up a public address for coordinate results through Nominatim.",
            "default": false
          },
          "renderJavaScript": {
            "title": "Render Google Maps pages",
            "type": "boolean",
            "description": "Use ordinary Chromium on the documented public Maps panorama route. A captured source panorama is required; generic map shells never emit rows.",
            "default": true
          },
          "urls": {
            "title": "URL alias",
            "maxItems": 100,
            "type": "array",
            "description": "Compatibility alias for streetViewUrls.",
            "items": {
              "type": "string",
              "maxLength": 4000
            }
          },
          "startUrls": {
            "title": "Start URL alias",
            "maxItems": 100,
            "type": "array",
            "description": "Compatibility alias for streetViewUrls.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "description": "Public Google Maps Street View URL.",
                  "type": "string",
                  "maxLength": 4000
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "url": {
            "title": "Single URL alias",
            "maxLength": 4000,
            "type": "string",
            "description": "Compatibility alias for one Street View URL."
          },
          "query": {
            "title": "Query alias",
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for queryString."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Street View has no stable page cursor; only page 1 is supported.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of business records to emit.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Street View has no stable page cursor; use 1. Multiple input coordinates and URLs are processed sequentially.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional permitted proxy for HTTP and ordinary Chromium requests, including the coordinate service and existing geocoder. Residential groups require enabled account access. GOOGLE_SERP supports Search and Shopping pages, not Street View endpoints."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}