About this endpoint
What it does
Estimates solar PV output for up to 50 locations in one request, using the EU JRC PVGIS 5.3 solar database. Returns one summary row per location, 12 monthly rows per location, or 5 orientation-comparison rows for the first location, depending on mode.
Request Body
| Parameter | Type | Description |
|---|---|---|
| locations | String Array | Required. Locations as "lat,lon" or "lat,lon,label" in decimal degrees, for example "40.4168,-3.7038,Madrid". Max 50 items. A point at sea or outside coverage returns a row with error. |
| mode | ENUM | Allowed values: yield, monthly, compare. Default: yield. yield: one row per location. monthly: 12 rows per location. compare: 5 rows for the first location only (optimal, flat, south-30, east-30, west-30); other locations are ignored. |
| peakPowerKw | Number | Installed system size in kWp. Default: 1. Range: 0.1 to 100000. |
| tilt | Number | Panel tilt from horizontal: 0 is flat, 90 is vertical. Range: 0 to 90. Leave empty to optimize. |
| azimuthCompass | Number | Direction the panels face as a compass bearing: 180 south, 90 east, 270 west, 0 north. Range: 0 to 360. Leave empty to optimize. |
| optimize | Boolean | When tilt and azimuthCompass are not sent, find the angles with the highest yearly output. false uses 30 degrees facing the equator. Default: true. |
| mounting | ENUM | Allowed values: free, building. Default: free. free: free-standing rack. building: built into the roof or facade (runs hotter, slightly less output). |
| tracking | ENUM | Allowed values: none, single-inclined, single-vertical, two-axis. Default: none (fixed panels). |
| technology | ENUM | Panel technology. Allowed values: crystSi, CIS, CdTe, Unknown. Default: crystSi. |
| systemLossPercent | Number | Cable, inverter and dirt losses in percent. Default: 14. Range: 0 to 50. |
| systemCost | Number | Total installed cost. Minimum: 0. With electricityPrice, adds paybackYears and costPerKwp. |
| electricityPrice | Number | Price per kWh. Minimum: 0. Adds annualValue and lifetimeValue25y (assumes 0.5% yearly panel degradation). |
| currency | String | Label for the money fields, for example EUR, USD, GBP. No conversion is done. |
Response
Returns a JSON object with count and an items array. The fields in each row depend on mode and on whether money inputs were sent.
| Parameter | Type | Description |
|---|---|---|
| count | Integer | Number of rows in items. |
| items | Object Array | One row per location (yield), 12 per location (monthly) or 5 (compare). |
| items[].lat | Number | Latitude sent. |
| items[].lon | Number | Longitude sent. |
| items[].label | String | Label sent, or the coordinates when no label was given. |
| items[].peakPowerKw | Number | System size used. |
| items[].annualKwh | Number | Estimated yearly output in kWh. |
| items[].specificYieldKwhPerKwp | Number | Yearly kWh per installed kWp. |
| items[].dailyAvgKwh | Number | Average daily output in kWh. |
| items[].monthlyKwh | Object Array | yield and compare rows: 12 entries, each with month (Integer, 1 to 12), name (String) and kwh (Number). |
| items[].bestMonth | String | Month with the highest output. |
| items[].bestMonthKwh | Number | Output of the best month in kWh. |
| items[].worstMonth | String | Month with the lowest output. |
| items[].worstMonthKwh | Number | Output of the worst month in kWh. |
| items[].lifetimeKwh25y | Number | Expected output over 25 years. |
| items[].yearToYearVariabilityKwh | Number | Typical variation between years in kWh. |
| items[].annualIrradiationKwhM2 | Number | Yearly sunlight on the panel in kWh/m². |
| items[].performanceRatioPercent | Number | Share of the sunlight energy delivered as electricity after losses. |
| items[].totalLossPercent | Number | All losses combined, in percent. |
| items[].systemLossPercent | Number | System loss used. |
| items[].tiltDeg | Number | Tilt used. null for two-axis tracking. |
| items[].azimuthCompassDeg | Number | Compass direction used. null for tracking systems. |
| items[].azimuthDeg | Number | Same direction in PVGIS style, where 0 faces the equator. null for tracking systems. |
| items[].optimizedAngles | Boolean | true when the angles were optimized. |
| items[].anglesMethod | String | How the angles were chosen, for example pvgis-optimal-angles, user, preset. |
| items[].mounting | String | Mounting used. |
| items[].tracking | String | Tracking used. |
| items[].technology | String | Panel technology used. |
| items[].elevationM | Number | Ground elevation in metres. |
| items[].radiationDatabase | String | Solar database used, for example PVGIS-SARAH3. |
| items[].dataYears | String | Years of weather data used, for example 2005-2023. |
| items[].month | Integer | monthly rows only: month number, 1 to 12. |
| items[].monthName | String | monthly rows only: month name. |
| items[].kwh | Number | monthly rows only: output of that month in kWh. |
| items[].irradiationKwhM2 | Number | monthly rows only: sunlight of that month in kWh/m². |
| items[].shareOfYearPercent | Number | monthly rows only: that month's share of the yearly output. |
| items[].variant | ENUM | compare rows only. Allowed values: optimal, flat, south-30, east-30, west-30. |
| items[].isBest | Boolean | compare rows only: true for the best option. |
| items[].vsBestPercent | Number | compare rows only: percent difference to the best option (0 for the best). |
| items[].annualValue | Number | With electricityPrice: yearly value of the electricity. |
| items[].lifetimeValue25y | Number | With electricityPrice: value over 25 years. |
| items[].paybackYears | Number | With systemCost and electricityPrice: simple payback time in years. |
| items[].costPerKwp | Number | With systemCost and electricityPrice: cost per installed kWp. |
| items[].systemCost | Number | Echo of systemCost, when sent. |
| items[].electricityPrice | Number | Echo of electricityPrice, when sent. |
| items[].currency | String | Echo of currency, when sent. |
| items[].error | String | Failed rows only, for example a location at sea. Yield fields are left out on these rows. |
| items[].errorType | String | Failed rows only, for example no-coverage. |
| items[].source | String | Data credit: PVGIS (c) European Union, JRC. Keep it for attribution. |
| items[].sourceUrl | String | Link to the source calculation. |
| items[].fetchedAt | String | Time of calculation, ISO 8601 UTC. |
Notes
- A request with no
locations, an empty list, or more than 50 locations returns400. - Values outside the stated ranges or allowed values return
400with a message such asField tilt must be between 0 and 90, got 91. - Points at sea or outside PVGIS coverage do not fail the request; they come back as a row with
erroranderrorType: no-coverage. - In the southern hemisphere, optimized panels face north (
azimuthCompassDeg0). - Errors use one shape:
{"code": "invalid_input", "error": "...", "message": "..."}.



