{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Street View Panorama & Capture Date Finder",
    "description": "Find the nearest Street View panorama for coordinates, addresses, Place IDs, routes or grid areas. Returns panorama IDs, exact coordinates, capture dates, historical capture timelines, imagery type, contributors, neighbours and ready-to-open Street View links. No API key, browser or cookies.",
    "version": "1.0",
    "x-build-id": "EfGuoVaJrAQDjcuCg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~google-street-view/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-google-street-view",
        "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/crawlyth-forge~google-street-view/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-google-street-view",
        "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/crawlyth-forge~google-street-view/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-google-street-view",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "coordinates",
              "addresses",
              "places",
              "panoramaIds",
              "route",
              "grid"
            ],
            "type": "string",
            "description": "How to choose the locations to look up. Each mode reads its own input block below. Coordinates mode reads 'Coordinates', addresses reads 'Addresses', places reads 'Place IDs and Maps URLs', panoramaIds reads 'Panorama IDs and Street View URLs', route reads the route block, and grid reads the area block.",
            "default": "coordinates"
          },
          "panoramaType": {
            "title": "Panorama type",
            "enum": [
              "official",
              "user",
              "any"
            ],
            "type": "string",
            "description": "Official Google car, trekker and scout coverage, user photo spheres, or both. 'Any' searches official first, then user, and returns the nearer panorama.",
            "default": "official"
          },
          "language": {
            "title": "Label language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "pt-BR",
              "nl",
              "pl",
              "ru",
              "tr",
              "ar",
              "hi",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "th",
              "vi",
              "id",
              "sv",
              "da",
              "fi",
              "no",
              "cs",
              "el",
              "he",
              "uk"
            ],
            "type": "string",
            "description": "Language for street, place and address labels. Panos without a label in this language may omit the label.",
            "default": "en"
          },
          "maxItems": {
            "title": "Maximum panorama records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many panorama or no-panorama records. Route and grid runs stop as soon as this many panoramas are found.",
            "default": 2
          },
          "locations": {
            "title": "Coordinates",
            "type": "array",
            "description": "Latitude,longitude pairs such as 40.758,-73.9855. A Google Maps URL with coordinates is also accepted.",
            "items": {
              "type": "string"
            },
            "default": [
              "40.758,-73.9855"
            ]
          },
          "addresses": {
            "title": "Addresses or place names",
            "type": "array",
            "description": "Street addresses, postcodes, landmarks or queries. Each is geocoded to coordinates before the panorama search.",
            "items": {
              "type": "string"
            }
          },
          "places": {
            "title": "Place IDs, Maps URLs or queries",
            "type": "array",
            "description": "Google Place IDs (ChIJ...), Google Maps place URLs, Street View URLs with a place, or free text. Place IDs are resolved through their public place page.",
            "items": {
              "type": "string"
            }
          },
          "panoramaIds": {
            "title": "Panorama IDs or Street View URLs",
            "type": "array",
            "description": "Panorama IDs such as CIHM0ogKEICAgICqqPa_Kg, or full Street View URLs. Metadata, capture date and the historical capture list are fetched directly for each panorama.",
            "items": {
              "type": "string"
            }
          },
          "routeStart": {
            "title": "Route start",
            "type": "string",
            "description": "Starting coordinates or an address/place that is geocoded."
          },
          "routeEnd": {
            "title": "Route end",
            "type": "string",
            "description": "Ending coordinates or an address/place that is geocoded."
          },
          "routeWaypoints": {
            "title": "Route waypoints",
            "type": "array",
            "description": "Optional ordered points between the start and end. Each is coordinates or a geocoded address.",
            "items": {
              "type": "string"
            }
          },
          "sampleIntervalMeters": {
            "title": "Route sample interval (metres)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Distance between route samples along the straight line through the given points. Smaller values find more panoramas but make more requests.",
            "default": 50
          },
          "gridSouth": {
            "title": "Grid south latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Southern edge of the bounding box. Fill all four edges to use a bounding box, or use the centre and radius below."
          },
          "gridWest": {
            "title": "Grid west longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Western edge of the bounding box."
          },
          "gridNorth": {
            "title": "Grid north latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Northern edge of the bounding box."
          },
          "gridEast": {
            "title": "Grid east longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Eastern edge of the bounding box."
          },
          "gridCenter": {
            "title": "Grid centre (circle)",
            "type": "string",
            "description": "Alternative to the bounding box: a latitude,longitude centre. Requires 'Grid radius'."
          },
          "gridRadiusMeters": {
            "title": "Grid radius (metres)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Radius of the circular area around the grid centre."
          },
          "gridSpacingMeters": {
            "title": "Grid spacing (metres)",
            "minimum": 5,
            "maximum": 5000,
            "type": "integer",
            "description": "Distance between grid sample points. Smaller values cover the area more densely but make more requests.",
            "default": 100
          },
          "gridPolygon": {
            "title": "GeoJSON polygon (optional)",
            "type": "object",
            "description": "A GeoJSON Polygon, MultiPolygon, Feature or FeatureCollection. Samples are kept only inside the polygon. The polygon bounds are used when no bounding box or centre is given."
          },
          "searchRadiusMeters": {
            "title": "Search radius (metres)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How far from each requested point to look for a panorama. The nearest panorama inside this radius is returned.",
            "default": 50
          },
          "minCaptureYear": {
            "title": "Earliest capture year",
            "minimum": 2007,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep the newest capture at each spot whose year is at least this value. When the current panorama is too old or too new, the matching historical panorama is fetched instead."
          },
          "maxCaptureYear": {
            "title": "Latest capture year",
            "minimum": 2007,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep the newest capture at each spot whose year is at most this value."
          },
          "maxSamples": {
            "title": "Maximum sampled points",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound on route and grid samples (and therefore requests) before maxItems is applied.",
            "default": 1000
          },
          "includeHistory": {
            "title": "Include historical captures",
            "type": "boolean",
            "description": "Add every other capture linked at the same spot with its date, panorama ID, coordinates and Street View URL.",
            "default": true
          },
          "maxHistoryEntries": {
            "title": "Maximum historical captures per panorama",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on the historical capture array. The total available count is always reported in historyCount.",
            "default": 20
          },
          "includeNeighbors": {
            "title": "Include neighbouring panoramas",
            "type": "boolean",
            "description": "Add the linked panoramas you can walk to from this one, with coordinates, heading and Street View URLs.",
            "default": false
          },
          "maxNeighbors": {
            "title": "Maximum neighbouring panoramas",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on the neighbours array.",
            "default": 10
          },
          "includeImageUrls": {
            "title": "Include thumbnail and tile URLs",
            "type": "boolean",
            "description": "Add a Google-hosted thumbnail URL and an equirectangular tile URL template. Images are not downloaded.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}