Solar & Roof Analysis

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

Response fields

FieldTypeExample
addressstring4411 E Hidden Oak St, Springfield, MO, 6…
imagery_quality.qualitystringHIGH
imagery_quality.descriptionstringSolar data is derived from aerial imager…
imagery_datestring2022-06-17
solar_potential.max_sunshine_hours_per_yearnumber1690.1926
solar_potential.summary.panels_countnumber77
solar_potential.summary.installation_size_kwnumber30.8
solar_potential.summary.yearly_energy_kwhnumber41792.2
solar_potential.summary.energy_covered_percentnumber99.4
solar_potential.summary.installation_cost_usdnumber56122
solar_potential.summary.federal_incentive_usdnumber24052
solar_potential.summary.cost_without_solar_usdnumber105549
solar_potential.summary.cost_with_solar_usdnumber52441
solar_potential.summary.savings_usdnumber53108
solar_potential.summary.break_even_yearnumber9
solar_potential.summary.cost_analysis[].yearnumber1
solar_potential.summary.cost_analysis[].cost_with_solar_usdnumber49.14
solar_potential.summary.cost_analysis[].cost_without_solar_usdnumber4200
solar_potential.summary.cost_analysis[].cumulative_with_solar_usdnumber32119.14
solar_potential.summary.cost_analysis[].cumulative_without_solar_usdnumber4200
solar_potential.summary.defaults_used.dc_to_ac_deratenumber0.85
solar_potential.summary.defaults_used.efficiency_depreciation_factornumber0.995
solar_potential.summary.defaults_used.cost_increase_factornumber1.022
solar_potential.summary.defaults_used.discount_ratenumber1.04
solar_potential.summary.defaults_used.installation_lifespan_yearsnumber20
solar_potential.summary.defaults_used.monthly_bill_usdnumber350
solar_potential.summary.defaults_used.energy_cost_per_kwh_usdnumber0.0993
solar_potential.summary.defaults_used.installation_cost_per_watt_usdnumber1.82
solar_potential.summary.defaults_used.panel_capacity_wattsnumber400
roof_condition.agentbooleantrue
roof_condition.imagery.roof_image_urlstringhttps://files.example.com/solar/roof-ima…
roof_condition.analysis.condition_scorenumber9
roof_condition.analysis.condition_categorystringGood
roof_condition.analysis.material_identifiedstringAsphalt Shingles
roof_condition.analysis.structural_integrity_flagbooleanfalse
roof_condition.analysis.structural_integrity_notesstring
roof_condition.analysis.uv_damage_riskstringHigh
roof_condition.analysis.uv_damage_risk_summarystringThe roof receives significant direct sun…
roof_condition.analysis.moisture_rot_riskstringMedium
roof_condition.analysis.moisture_rot_risk_summarystringWhile some sections of the roof receive …
solar_layers.annual_flux.urlstringhttps://files.example.com/solar/layer-im…
solar_layers.annual_flux.typestringimage/png
solar_layers.monthly_flux.urlstringhttps://files.example.com/solar/layer-im…
solar_layers.monthly_flux.typestringimage/gif
solar_layers.hourly_shade.urlstringhttps://files.example.com/solar/layer-im…
solar_layers.hourly_shade.typestringimage/gif
solar_layers.dsm_height_map.urlstringhttps://files.example.com/solar/layer-im…
solar_layers.dsm_height_map.typestringimage/png

Sample response

{
  "address": "4411 E Hidden Oak St, Springfield, MO, 65802",
  "imagery_quality": {
    "quality": "HIGH",
    "description": "Solar data is derived from aerial imagery captured at low-altitude"
  },
  "imagery_date": "2022-06-17",
  "solar_potential": {
    "max_sunshine_hours_per_year": 1690.1926,
    "summary": {
      "panels_count": 77,
      "installation_size_kw": 30.8,
      "yearly_energy_kwh": 41792.2,
      "energy_covered_percent": 99.4,
      "installation_cost_usd": 56122,
      "federal_incentive_usd": 24052,
      "cost_without_solar_usd": 105549,
      "cost_with_solar_usd": 52441,
      "savings_usd": 53108,
      "break_even_year": 9,
      "cost_analysis": [
        {
          "year": 1,
          "cost_with_solar_usd": 49.14,
          "cost_without_solar_usd": 4200,
          "cumulative_with_solar_usd": 32119.14,
          "cumulative_without_solar_usd": 4200
        }
      ],
      "defaults_used": {
        "dc_to_ac_derate": 0.85,
        "efficiency_depreciation_factor": 0.995,
        "cost_increase_factor": 1.022,
        "discount_rate": 1.04,
        "installation_lifespan_years": 20,
        "monthly_bill_usd": 350,
        "energy_cost_per_kwh_usd": 0.0993,
        "installation_cost_per_watt_usd": 1.82,
        "panel_capacity_watts": 400
      }
    }
  },
  "roof_condition": {
    "agent": true,
    "imagery": {
      "roof_image_url": "https://files.example.com/solar/roof-images/example-roof.png"
    },
    "analysis": {
      "condition_score": 9,
      "condition_category": "Good",
      "visible_damage_indicators": [],
      "material_identified": "Asphalt Shingles",
      "structural_integrity_flag": false,
      "structural_integrity_notes": "",
      "uv_damage_risk": "High",
      "uv_damage_risk_summary": "The roof receives significant direct sunlight, especially on its primary slopes which are exposed to the sun throughout …",
      "moisture_rot_risk": "Medium",
      "moisture_rot_risk_summary": "While some sections of the roof receive less direct sunlight, which could potentially retain moisture longer, the overal…"
    }
  },
  "solar_layers": {
    "annual_flux": {
      "url": "https://files.example.com/solar/layer-images/example-annual-flux.png",
      "type": "image/png"
    },
    "monthly_flux": {
      "url": "https://files.example.com/solar/layer-images/example-monthly-flux.gif",
      "type": "image/gif"
    },
    "hourly_shade": {
      "url": "https://files.example.com/solar/layer-images/example-hourly-shade.gif",
      "type": "image/gif"
    },
    "dsm_height_map": {
      "url": "https://files.example.com/solar/layer-images/example-dsm-height-map.png",
      "type": "image/png"
    }
  }
}

Use it through the MCP

Connect the Homesage.ai MCP to Claude, ChatGPT or Cursor, and your assistant calls this as the get_solar_analysis tool. Set up the MCP.

More in AI-Powered Analysis