{
  "openapi": "3.0.1",
  "info": {
    "title": "Solar PV Yield API - kWh per Month, Payback, No Key, MCP",
    "description": "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",
    "version": "0.1",
    "x-build-id": "HIscV2LGPEqLOqxFc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/martin10291~solar-pv-yield-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-martin10291-solar-pv-yield-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/martin10291~solar-pv-yield-api/runs": {
      "post": {
        "operationId": "runs-sync-martin10291-solar-pv-yield-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/martin10291~solar-pv-yield-api/run-sync": {
      "post": {
        "operationId": "run-sync-martin10291-solar-pv-yield-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "yield",
              "monthly",
              "compare"
            ],
            "type": "string",
            "description": "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.",
            "default": "yield"
          },
          "peakPowerKw": {
            "title": "System size (kWp)",
            "minimum": 0.1,
            "maximum": 100000,
            "type": "number",
            "description": "Installed peak power of the PV system in kWp (e.g. 5 for a home roof, 500 for a commercial roof).",
            "default": 5
          },
          "systemLossPercent": {
            "title": "System losses (%)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "Cable, inverter and dirt losses in percent. PVGIS recommends 14.",
            "default": 14
          },
          "optimize": {
            "title": "Use optimal tilt and azimuth",
            "type": "boolean",
            "description": "When tilt/azimuth are not given, find the angles with the highest yearly output (equator-facing). Off = 30 degrees facing the equator.",
            "default": true
          },
          "tilt": {
            "title": "Tilt (degrees)",
            "minimum": 0,
            "maximum": 90,
            "type": "number",
            "description": "Panel tilt from horizontal (0 = flat, 90 = vertical). Leave empty to optimize."
          },
          "azimuthCompass": {
            "title": "Azimuth (compass degrees)",
            "minimum": 0,
            "maximum": 360,
            "type": "number",
            "description": "Direction the panels face as a compass bearing: 180 = south, 90 = east, 270 = west, 0 = north. Leave empty to optimize."
          },
          "mounting": {
            "title": "Mounting",
            "enum": [
              "free",
              "building"
            ],
            "type": "string",
            "description": "free = free-standing rack (better cooling); building = integrated in the roof or facade (hotter, a bit less output).",
            "default": "free"
          },
          "technology": {
            "title": "PV technology",
            "enum": [
              "crystSi",
              "CIS",
              "CdTe",
              "Unknown"
            ],
            "type": "string",
            "description": "Module technology: crystSi = crystalline silicon (most panels), CIS, CdTe or Unknown.",
            "default": "crystSi"
          },
          "tracking": {
            "title": "Tracking",
            "enum": [
              "none",
              "single-inclined",
              "single-vertical",
              "two-axis"
            ],
            "type": "string",
            "description": "Fixed panels (none) or a sun-tracking system: single inclined axis, single vertical axis or two-axis.",
            "default": "none"
          },
          "electricityPrice": {
            "title": "Electricity price per kWh",
            "minimum": 0,
            "type": "number",
            "description": "Your price per kWh (e.g. 0.25). Adds annualValue and lifetimeValue25y (0.5%/year panel degradation)."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency label for the money fields (e.g. EUR, USD, GBP). No conversion is done.",
            "default": "EUR"
          },
          "systemCost": {
            "title": "System cost (total)",
            "minimum": 0,
            "type": "number",
            "description": "Total installed cost in the same currency. With an electricity price adds simple paybackYears and costPerKwp."
          },
          "onlyNew": {
            "title": "Only new or changed rows (monitor)",
            "type": "boolean",
            "description": "Return only locations/rows that are new or whose estimate changed since the last run with the same Monitor ID and settings.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of this monitor (any text). Each Monitor ID keeps its own memory of rows already returned."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}