Solar API
Solar API.
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Solar API.
Endpoints 3
buildingInsights
- GETLocates the building whose centroid is closest to a query point
/v1/buildingInsights:findClosest?additionalInsights=ADDITIONAL_INSIGHTS_UNSPECIFIED&exactQualityRequired=true&experiments=EXPERIMENT_UNSPECIFIED&location.latitude=0.0&location.longitude=0.0&requiredQuality=IMAGERY_QUALITY_UNSPECIFIEDLocates the building whose centroid is closest to a query point. Returns an error with code NOT_FOUND if there are no buildings within approximately 50m of…
dataLayers
- GETGets solar information for a region surrounding a location
/v1/dataLayers:get?exactQualityRequired=true&experiments=EXPERIMENT_UNSPECIFIED&location.latitude=0.0&location.longitude=0.0&pixelSizeMeters=0.0&radiusMeters=0.0&requiredQuality=IMAGERY_QUALITY_UNSPECIFIED&view=DATA_LAYER_VIEW_UNSPECIFIEDGets solar information for a region surrounding a location. Returns an error with code NOT_FOUND if the location is outside the coverage area.
geoTiff
- GETReturns an image by its ID.
/v1/geoTiff:get?id=stringReturns an image by its ID.
API details
- Base URL
https://solar.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter - Operations
- 3 operations on 3 pathsGET 3
- Main resources
- buildingInsights 1dataLayers 1geoTiff 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Solar API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Solar API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Locates the building whose centroid is closest to a query point” (GET /v1/buildingInsights:findClosest?additionalInsights=ADDITIONAL_INSIGHTS_UNSPECIFIED&exactQualityRequired=true&experiments=EXPERIMENT_UNSPECIFIED&location.latitude=0.0&location.longitude=0.0&requiredQuality=IMAGERY_QUALITY_UNSPECIFIED), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Solar API?
Solar API. It is listed under Maps & location and has 3 endpoints.
Who publishes the Solar API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Solar API?
Requests go to https://solar.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Solar API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.
How many endpoints does the Solar API have?
3 operations on 3 paths (3 GET). The largest groups are buildingInsights, dataLayers, geoTiff.
Is forking the Solar API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.