# Solar PV Yield API - kWh per Month, Payback, No Key, MCP (`martin10291/solar-pv-yield-api`) Actor

Solar PV yield API, no API key: annual and monthly kWh for any kWp system at any location, optimal tilt and azimuth, roof-face comparison (south/east/west/flat) and payback from your electricity price. EU JRC PVGIS 5.3 satellite data 2005-2023, Europe, Africa, Asia and the Americas, up to 50 locatio

- **URL**: https://apify.com/martin10291/solar-pv-yield-api.md
- **Developed by:** [Martin Petrov](https://apify.com/martin10291) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

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

**Problem:** your solar sales tool, installer CRM, property app or energy report needs "how many kWh will a 5 kWp system make on this roof, per month, at the best angle, and when does it pay back" for one address or a whole lead list. Doing it by hand in the PVGIS web form takes minutes per site, and most solar APIs want an account, a key or a monthly contract.

**This API:** one JSON call, no API key. Annual and monthly production for any system size at any location, the optimal tilt and azimuth, a roof-face comparison (south, east, west, flat) and money values from your own electricity price. Data: EU Joint Research Centre **PVGIS 5.3** (satellite radiation SARAH3 / ERA5, 2005-2023). Coverage: Europe, Africa, Asia and the Americas. Up to 50 locations per call.

- **yield** (default): one row per location with `annualKwh`, `specificYieldKwhPerKwp`, 12 `monthlyKwh`, best/worst month, optimal `tiltDeg` + `azimuthCompassDeg`, irradiation, year-to-year variability, losses and performance ratio.
- **monthly**: 12 rows per location (kWh, daily average, share of the year), ready for charts and spreadsheets.
- **compare**: for one location, rows for optimal, flat and 30-degree south/east/west faces with `vsBestPercent`: tells a homeowner what an east or west roof really costs them.
- **Money:** add `electricityPrice` (+ `currency`) for `annualValue` and `lifetimeValue25y` (0.5%/year degradation); add `systemCost` for `paybackYears` and `costPerKwp`.
- **Settings:** `peakPowerKw`, `systemLossPercent` (default 14), `tilt`, `azimuthCompass` (180 = south), `mounting` (free / building), `technology` (crystSi, CIS, CdTe), `tracking` (none, single-inclined, single-vertical, two-axis).
- **Southern hemisphere and tropics handled:** panels face the equator (north in Sydney), with a sanity check on the optimal angle; the row says which method was used (`anglesMethod`).
- **Sea / no coverage:** that location gets a row with `error` and `errorType: "no-coverage"`, the others still return.
- **Monitor mode:** `onlyNew` + `monitorId` returns only new locations or changed estimates since the last run.

Measured 2026-11-17: 3 new locations in 0.9 s, repeated locations from cache in a few ms.

### Example (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/martin10291~solar-pv-yield-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"locations": ["43.2141,27.9147,Varna", "51.5072,-0.1276,London"], "peakPowerKw": 6, "electricityPrice": 0.25, "systemCost": 7000}'
```

Row (measured 2026-11-17, shortened):

```json
{"label": "Madrid", "lat": 40.4168, "lon": -3.7038, "peakPowerKw": 5, "tiltDeg": 37.0, "azimuthCompassDeg": 175.0,
 "optimizedAngles": true, "annualKwh": 8103.6, "specificYieldKwhPerKwp": 1620.72, "bestMonth": "July",
 "worstMonth": "November", "annualIrradiationKwhM2": 2093.75, "performanceRatioPercent": 77.41,
 "radiationDatabase": "PVGIS-SARAH3", "dataYears": "2005-2023",
 "monthlyKwh": [{"month": 1, "name": "January", "kwh": 548.55}, "..."],
 "source": "PVGIS (c) European Union, 2001-2026, JRC"}
```

### Use from AI agents (MCP)

Add the Apify MCP server and call this Actor as a tool: `https://mcp.apify.com/?actors=martin10291/solar-pv-yield-api`. An agent can answer "how much would 6 kW of panels make in Varna and when do they pay back at 0.25 EUR/kWh?" with real satellite data instead of a guess.

### Input

| Field | Meaning |
|---|---|
| `locations` | `lat,lon` or `lat,lon,label` per line, max 50 |
| `mode` | `yield`, `monthly` or `compare` |
| `peakPowerKw` | system size in kWp (default 5) |
| `systemLossPercent` | losses in % (default 14) |
| `optimize` | best angles when tilt/azimuth are empty (default on) |
| `tilt`, `azimuthCompass` | your own roof angles (180 = south) |
| `mounting`, `technology`, `tracking` | PV system type |
| `electricityPrice`, `currency`, `systemCost` | money fields |
| `onlyNew`, `monitorId` | monitor mode |

### Pricing

$1.00 per 1,000 rows. A 50-location lead list costs 5 cents.

### Data source and limits

EU Joint Research Centre PVGIS 5.3, reuse authorised with the source acknowledged (PVGIS (c) European Union, 2001-2026). Every row names the source and links the exact PVGIS query. Not endorsed by the European Commission. Estimates are long-term averages for a typical year (2005-2023 weather), not a guarantee; local shading by nearby buildings or trees is not included (PVGIS uses terrain horizon only).

# Actor input Schema

## `locations` (type: `array`):

One location per line as 'lat,lon' or 'lat,lon,label' (decimal degrees, e.g. 51.5072,-0.1276,London). Max 50 per run. Points at sea or outside PVGIS coverage get a row with an error field.

## `mode` (type: `string`):

yield = annual kWh, monthly list, best/worst month and money values per location; monthly = 12 rows per location; compare = for the first location only, rows for optimal, flat and 30-degree south/east/west faces with % versus the best.

## `peakPowerKw` (type: `number`):

Installed peak power of the PV system in kWp (e.g. 5 for a home roof, 500 for a commercial roof).

## `systemLossPercent` (type: `number`):

Cable, inverter and dirt losses in percent. PVGIS recommends 14.

## `optimize` (type: `boolean`):

When tilt/azimuth are not given, find the angles with the highest yearly output (equator-facing). Off = 30 degrees facing the equator.

## `tilt` (type: `number`):

Panel tilt from horizontal (0 = flat, 90 = vertical). Leave empty to optimize.

## `azimuthCompass` (type: `number`):

Direction the panels face as a compass bearing: 180 = south, 90 = east, 270 = west, 0 = north. Leave empty to optimize.

## `mounting` (type: `string`):

free = free-standing rack (better cooling); building = integrated in the roof or facade (hotter, a bit less output).

## `technology` (type: `string`):

Module technology: crystSi = crystalline silicon (most panels), CIS, CdTe or Unknown.

## `tracking` (type: `string`):

Fixed panels (none) or a sun-tracking system: single inclined axis, single vertical axis or two-axis.

## `electricityPrice` (type: `number`):

Your price per kWh (e.g. 0.25). Adds annualValue and lifetimeValue25y (0.5%/year panel degradation).

## `currency` (type: `string`):

Currency label for the money fields (e.g. EUR, USD, GBP). No conversion is done.

## `systemCost` (type: `number`):

Total installed cost in the same currency. With an electricity price adds simple paybackYears and costPerKwp.

## `onlyNew` (type: `boolean`):

Return only locations/rows that are new or whose estimate changed since the last run with the same Monitor ID and settings.

## `monitorId` (type: `string`):

Name of this monitor (any text). Each Monitor ID keeps its own memory of rows already returned.

## Actor input object example

```json
{
  "locations": [
    "40.4168,-3.7038,Madrid",
    "43.2141,27.9147,Varna"
  ],
  "mode": "yield",
  "peakPowerKw": 5,
  "systemLossPercent": 14,
  "optimize": true,
  "mounting": "free",
  "technology": "crystSi",
  "tracking": "none",
  "currency": "EUR",
  "onlyNew": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per location (annual kWh, monthly kWh, optimal angles, money values) or one row per month / per roof-face variant.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "40.4168,-3.7038,Madrid",
        "43.2141,27.9147,Varna"
    ],
    "peakPowerKw": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("martin10291/solar-pv-yield-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "locations": [
        "40.4168,-3.7038,Madrid",
        "43.2141,27.9147,Varna",
    ],
    "peakPowerKw": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("martin10291/solar-pv-yield-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "40.4168,-3.7038,Madrid",
    "43.2141,27.9147,Varna"
  ],
  "peakPowerKw": 5
}' |
apify call martin10291/solar-pv-yield-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martin10291/solar-pv-yield-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Zwggi7p9AyqeR2ixB/builds/HIscV2LGPEqLOqxFc/openapi.json
