Google Maps Platform Street View Publish Photo API

The Street View Publish Photo API from Google Maps Platform — 3 operation(s) for street view publish photo.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /v1/photo/{photoId} Delete one Street View photo · Delete photo #
Ask an LLM
“How do I take down a single photo I published to Street View?”
“Can I remove one 360 photo and its details?”
Tell an agent destructive · confirm first
Delete Street View photo {photoId}.
Remove photo {photoId} from Street View.
GET /v1/photo/{photoId} Look up one of my Street View photos · Get photo #
Ask an LLM
“How do I check the details of a Street View photo I published?”
“Can I see a single photo's view count and publish status?”
Tell an agent
Show Street View photo {photoId}.
Get metadata for photo {photoId} with the download URL view {view}.
PUT /v1/photo/{photoId} Edit one Street View photo's details · Update photo #
Ask an LLM
“Can I change the place or position tagged on a single Street View photo?”
“How do I connect one of my 360 photos to another?”
Tell an agent
Update the place on photo {photoId} to {places}.
Set the pose of Street View photo {photoId} to {pose}.
POST /v1/photo:startUpload Start uploading a single Street View photo · Start upload photo #
Ask an LLM
“What's the first step to upload one 360 photo to Street View?”
“Where do I send the image bytes for a single new photo?”
Tell an agent
Start an upload session for one new Street View photo.
Get me an upload link for a single 360 photo.
POST /v1/photo Publish an uploaded Street View photo · Create photo #
Ask an LLM
“How do I publish a 360 photo after it's uploaded?”
“Can I set the capture time and place when publishing a photo?”
Tell an agent
Publish the uploaded photo {uploadReference}.
Publish photo {uploadReference} at place {places} taken at {captureTime}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-maps:google-maps-street-view-publish-photo-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-maps-street-view-publish-photo-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Street View Publish API Photo Street View Publish Photo API
  version: v1
  description: Generated from Google's published Discovery document for Street View Publish API (streetviewpublish v1, revision 20261110). 5 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://streetviewpublish.googleapis.com
tags:
- name: Street View Publish Photo
paths:
  /v1/photo/{photoId}:
    delete:
      operationId: streetviewpublish.photo.delete
      summary: Delete photo
      description: 'Deletes a Photo and its metadata. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does not exist.'
      parameters:
      - name: photoId
        in: path
        required: true
        description: Required. ID of the Photo.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Empty'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/streetviewpublish
      - apiKey: []
      tags:
      - Street View Publish Photo
    get:
      operationId: streetviewpublish.photo.get
      summary: Get photo
      description: 'Gets the metadata of the specified Photo. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.'
      parameters:
      - name: photoId
        in: path
        required: true
        description: Required. ID of the Photo.
        schema:
          type: string
      - name: languageCode
        in: query
        required: false
        description: The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user's language preference for Google services is used.
        schema:
          type: string
      - name: view
        in: query
        required: false
        description: Required. Specifies if a download URL for the photo bytes should be returned in the Photo response.
        schema:
          enum:
          - BASIC
          - INCLUDE_DOWNLOAD_URL
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Photo'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/streetviewpublish
      - apiKey: []
      tags:
      - Street View Publish Photo
    put:
      operationId: streetviewpublish.photo.update
      summary: Update photo
      description: 'Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the updateMask field are used. If `updateMask` is not present, the update applies to all fields. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.'
      parameters:
      - name: photoId
        in: path
        required: true
        description: A unique identifier for a photo.
        schema:
          type: string
      - name: updateMask
        in: query
        required: false
        description: 'Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` > Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.'
        schema:
          format: google-fieldmask
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Photo'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Photo'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/streetviewpublish
      - apiKey: []
      tags:
      - Street View Publish Photo
  /v1/photo:startUpload:
    post:
      operationId: streetviewpublish.photo.startUpload
      summary: Start upload photo
      description: 'Creates an upload session to start uploading photo bytes. The method uses the upload URL of the returned UploadRef to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo must meet the following requirements: * Photo Sphere XMP metadata must be included in the photo metadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload completes, the method uses UploadRef with CreatePhoto to create the Photo object entry.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Empty'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadRef'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/streetviewpublish
      - apiKey: []
      tags:
      - Street View Publish Photo
  /v1/photo:
    post:
      operationId: streetviewpublish.photo.create
      summary: Create photo
      description: 'After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the Photo Sphere XMP metadata in the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Photo'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Photo'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/streetviewpublish
      - apiKey: []
      tags:
      - Street View Publish Photo
components:
  schemas:
    PhotoId:
      type: object
      description: Identifier for a Photo.
      properties:
        id:
          description: A unique identifier for a photo.
          type: string
    Level:
      type: object
      description: Level information containing level number and its corresponding name.
      properties:
        number:
          description: Optional. Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK.
          type: number
          format: double
        name:
          description: Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator.
          type: string
    Photo:
      description: Photo is used to store 360 photos along with photo metadata.
      type: object
      properties:
        downloadUrl:
          type: string
          readOnly: true
          description: Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
        pose:
          $ref: '#/components/schemas/Pose'
          description: Optional. Pose of the photo.
        places:
          type: array
          items:
            $ref: '#/components/schemas/Place'
          description: Optional. Places where this photo belongs.
        connections:
          items:
            $ref: '#/components/schemas/Connection'
          type: array
          description: Optional. Connections to other photos. A connection represents the link from this photo to another photo.
        uploadReference:
          $ref: '#/components/schemas/UploadRef'
          description: Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
        photoId:
          $ref: '#/components/schemas/PhotoId'
          description: Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
        thumbnailUrl:
          type: string
          description: Output only. The thumbnail URL for showing a preview of the given photo.
          readOnly: true
        shareLink:
          readOnly: true
          description: Output only. The share link for the photo.
          type: string
        captureTime:
          type: string
          format: google-datetime
          description: Optional. Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
        viewCount:
          type: string
          readOnly: true
          description: Output only. View count of the photo.
          format: int64
        uploadTime:
          format: google-datetime
          type: string
          description: Output only. Time when the image was uploaded.
          readOnly: true
        mapsPublishStatus:
          description: Output only. Status in Google Maps, whether this photo was published or rejected.
          readOnly: true
          enum:
          - UNSPECIFIED_MAPS_PUBLISH_STATUS
          - PUBLISHED
          - REJECTED_UNKNOWN
          type: string
        transferStatus:
          readOnly: true
          enum:
          - TRANSFER_STATUS_UNKNOWN
          - NEVER_TRANSFERRED
          - PENDING
          - COMPLETED
          - REJECTED
          - EXPIRED
          - CANCELLED
          - RECEIVED_VIA_TRANSFER
          description: Output only. Status of rights transfer on this photo.
          type: string
    LatLng:
      description: An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
      type: object
      properties:
        longitude:
          type: number
          description: The longitude in degrees. It must be in the range [-180.0, +180.0].
          format: double
        latitude:
          type: number
          format: double
          description: The latitude in degrees. It must be in the range [-90.0, +90.0].
    Connection:
      properties:
        target:
          $ref: '#/components/schemas/PhotoId'
          description: Required. The destination of the connection from the containing photo to another photo.
      description: A connection is the link from a source photo to a destination photo.
      type: object
    Place:
      properties:
        name:
          description: Output only. The name of the place, localized to the language_code.
          readOnly: true
          type: string
        languageCode:
          description: Output only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback.
          type: string
          readOnly: true
        placeId:
          description: Place identifier, as described in https://developers.google.com/places/place-id.
          type: string
      type: object
      description: Place metadata for an entity.
    Empty:
      description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
      type: object
      properties: {}
    Pose:
      properties:
        roll:
          type: number
          description: Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
          format: double
        latLngPair:
          $ref: '#/components/schemas/LatLng'
          description: 'Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail.'
        heading:
          type: number
          format: double
          description: The following pose parameters pertain to the center of the photo. They match https://developers.google.com/streetview/spherical-metadata. Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity.
        level:
          $ref: '#/components/schemas/Level'
          description: Level (the floor in a building) used to configure vertical navigation.
        pitch:
          description: Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
          type: number
          format: double
        accuracyMeters:
          format: float
          description: 'The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations.'
          type: number
        gpsRecordTimestampUnixEpoch:
          description: Time of the GPS record since UTC epoch.
          type: string
          format: google-datetime
        altitude:
          type: number
          description: Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
          format: double
      type: object
      description: Raw pose measurement for an entity.
    UploadRef:
      description: Upload reference for media files.
      properties:
        uploadUrl:
          type: string
          description: 'An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}"'
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/streetviewpublish: Publish and manage your 360 photos on Google Street View
externalDocs:
  url: https://developers.google.com/streetview/publish/
x-provenance:
  method: harvested
  publisher: Google
  source: https://streetviewpublish.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)