Solar potential + AI roof condition for a property

GET /api/solar/analysis/

4 credits

What it returns

Two coupled analyses in one call:

When to use it

Performance

This is an expensive, slow endpoint — use a 90-second client timeout and cache responses.

Response shape

The response shape varies with the optional query parameters:

If the roof image fails to upload to storage, roof_condition.imagery contains roof_image_base64 (raw base64 PNG) instead of roof_image_url. Individual entries in solar_layers may be missing if a particular data layer was unavailable for the address.

FAQ

Why is agent=true the default?

Without it, the roof condition section is skipped (you get solar potential only). The AI roof analysis is the expensive part but it's what makes the endpoint useful — leave it on unless you specifically need solar-only.

What if the building isn't covered?

Returns a clear error indicating imagery unavailable. Charges 0 credits in that case.

Parameters

Responses

More in AI-Powered Analysis