---
title: Solar Panel Output Calculator API
slug: solar-panel-output-calculator
url: https://apyhub.com/martin10291/service/solar-panel-output-calculator
provider: Martin Petrov
categories: [Model Kit]
tags: [solar-panel-output, solar-energy-estimate, solar-payback, solar-pv-yield, photovoltaics]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Solar Panel Output Calculator API

Solar panel output API: send locations and system size, get yearly and monthly kWh, best angles and payback. Up to 50 sites per call. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/solar-panel-output-calculator` | What it does Estimates solar PV output for up to 50 locations in one request, using the EU JRC PVGI… | 100 |

## Endpoint reference

### Solar PV Yield API - kWh per Month, Payback, No Key, MCP

`POST https://api.eu.apyhub.com/martin10291/solar-panel-output-calculator` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `mode` | body | string | no | yield = one row per location; monthly = 12 rows per location; compare = 5 orientation rows (optimal, flat, south-30, east-30, west-30) for the first location only. One of: yield, monthly, compare. De… |
| `tilt` | body | number | no | Panel tilt from horizontal (0 = flat, 90 = vertical). Leave empty to optimize. Example: `35`. |
| `currency` | body | string | no | Label for the money fields, e.g. EUR, USD, GBP. No conversion is done. Example: `EUR`. |
| `mounting` | body | string | no | free = free-standing rack; building = built into the roof or facade. One of: free, building. Default: `free`. Example: `free`. |
| `optimize` | body | boolean | no | When tilt and azimuthCompass are not sent, find the angles with the highest yearly output. false = 30 degrees facing the equator. Default: `true`. Example: `true`. |
| `tracking` | body | string | no | Fixed panels (none) or a sun-tracking system. One of: none, single-inclined, single-vertical, two-axis. Default: `none`. Example: `none`. |
| `locations` | body | array of string | yes | Locations as 'lat,lon' or 'lat,lon,label' in decimal degrees, e.g. 40.4168,-3.7038,Madrid. Max 50. Points at sea or outside coverage return a row with an error field. Example: `["40.4168,-3.7038,Madr… |
| `systemCost` | body | number | no | Total installed cost. With electricityPrice, adds paybackYears and costPerKwp. Example: `6000`. |
| `technology` | body | string | no | Panel technology: crystSi = crystalline silicon (most panels), CIS, CdTe or Unknown. One of: crystSi, CIS, CdTe, Unknown. Default: `crystSi`. Example: `crystSi`. |
| `peakPowerKw` | body | number | no | Installed system size in kWp, e.g. 5 for a home roof. Default: `1`. Example: `5`. |
| `azimuthCompass` | body | number | no | Compass bearing the panels face: 180 = south, 90 = east, 270 = west, 0 = north. Leave empty to optimize. Example: `180`. |
| `electricityPrice` | body | number | no | Price per kWh. Adds annualValue and lifetimeValue25y (0.5% yearly panel degradation). Example: `0.25`. |
| `systemLossPercent` | body | number | no | Cable, inverter and dirt losses in percent. Default: `14`. Example: `14`. |

#### Quickstart

Estimate the yearly output and payback of a 5 kWp system in Madrid.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/solar-panel-output-calculator" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"locations": ["40.4168,-3.7038,Madrid"], "peakPowerKw": 5, "systemCost": 6000, "electricityPrice": 0.25, "currency": "EUR"}'
```

#### What you'll get back

Returns a JSON object with `count` and an `items` array, one row per location with yearly and monthly output, the best panel angles and money values. The example below is trimmed: `monthlyKwh` shows 2 of its 12 entries.

```json
{
  "count": 1,
  "items": [
    {
      "anglesMethod": "pvgis-optimal-angles",
      "annualIrradiationKwhM2": 2093.75,
      "annualKwh": 8103.6,
      "annualValue": 2025.9,
      "azimuthCompassDeg": 175,
      "azimuthDeg": -5,
      "bestMonth": "July",
      "bestMonthKwh": 835.85,
      "costPerKwp": 1200,
      "currency": "EUR",
      "dailyAvgKwh": 22.19,
      "dataYears": "2005-2023",
      "electricityPrice": 0.25,
      "elevationM": 665,
      "fetchedAt": "2026-11-25T08:12:47Z",
      "label": "Madrid",
      "lat": 40.4168,
      "lifetimeKwh25y": 190888,
      "lifetimeValue25y": 47722,
      "lon": -3.7038,
      "monthlyKwh": [
        { "kwh": 548.55, "month": 1, "name": "January" },
        { "kwh": 572.45, "month": 2, "name": "February" }
      ],
      "mounting": "free",
      "optimizedAngles": true,
      "paybackYears": 3,
      "peakPowerKw": 5,
      "performanceRatioPercent": 77.41,
      "radiationDatabase": "PVGIS-SARAH3",
      "source": "PVGIS (c) European Union, 2001-2026, JRC",
      "sourceUrl": "https://re.jrc.ec.europa.eu/api/v5_3/PVcalc?lat=40.417&lon=-3.704&peakpower=5&loss=14&mountingplace=free&optimalangles=1&pvtechchoice=crystSi&outputformat=json",
      "specificYieldKwhPerKwp": 1620.72,
      "systemCost": 6000,
      "systemLossPercent": 14,
      "technology": "crystSi",
      "tiltDeg": 37,
      "totalLossPercent": 22.59,
      "tracking": "none",
      "worstMonth": "November",
      "worstMonthKwh": 510.8,
      "yearToYearVariabilityKwh": 252.35
    }
  ]
}
```

## About

## What it does
The Solar Panel Output Calculator API estimates how much electricity a solar panel system will produce at any location. Send up to 50 locations with your system size. For each site, you get back the yearly kWh, a monthly breakdown, the best and worst months, and the best panel angle.

Set `peakPowerKw` to your system size in kWp. Leave `tilt` and `azimuthCompass` empty and the API finds the angles with the highest yearly output. Choose `mode` to shape the answer. `yield` returns one row per site and `monthly` returns 12 rows per site. `compare` shows how an optimal, flat, south, east and west roof perform against each other. You can also set `mounting`, `tracking`, `technology` and `systemLossPercent`.

Add `systemCost` and `electricityPrice` to turn energy into money. Each row then includes yearly savings, the 25-year value, the cost per kWp and a payback time in years. A point at sea comes back as a row with an `error` field instead of failing the call.

Solar installers use the Solar Panel Output Calculator API to quote customers in seconds. Energy comparison sites use this solar panel output API to show savings for an address. Property tools use it to rank roofs by solar potential.

To get coordinates from an address first, use the [Geocode Addresses API](https://apyhub.com/martin10291/service/geocode-official-addresses). To show savings in another currency, pair it with the [Currency Converter API](https://apyhub.com/apyhub/service/convert-currency-pair-for-date).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/solar-panel-output-calculator
