{
  "openapi": "3.1.0",
  "info": {
    "title": "Utility-Scale Solar PV + Grid BESS Co-Location LCOE, LCOS, Negative-Price Curtailment & PPA IRR Calculator",
    "version": "1.0.0",
    "description": "Renewable Energy & Project Finance FinOps / PVGIS Solar Yield, BESS Arbitrage, Capture-Price Cannibalization & Corporate PPA",
    "x-polar-products": {
      "portal_tiers": [
        {
          "sku_key": "solar_bess_pvgis_tb4_dataset",
          "product_id": "8ac0ea4d-4f08-4b04-8861-0e41cf292d34",
          "name": "PVGIS Solar Yields & TB2/TB4 Spot Dataset",
          "price_usd": null,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_gB5F9SZD6sUQKXx3d0X85plF3PTQeeM6Jyo9L142Yue"
        },
        {
          "sku_key": "ipp_ppa_pro_license",
          "product_id": "6b3a1456-07dc-4605-bbea-7a6d8ddd56ea",
          "name": "Pro 8760 Solar+BESS Dispatch & IRR Key",
          "price_usd": null,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_zp2mB0IRnH4ohZ88f8am6CxGzRR5eVOxZEAQK1crF5k"
        },
        {
          "sku_key": "renewable_pe_investment_committee_pack",
          "product_id": "9bf58dfb-a2bc-4b83-9762-5d1c3cd954f5",
          "name": "IPP & Corporate PPA IC Workbook Pack",
          "price_usd": null,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_eNZFbXh1zzVG1WZwImV0L9hNwYbvY7aGT0LFv09vxWi"
        }
      ],
      "master_all_portals_pass": {
        "master_all_portals_pro_monthly": {
          "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
          "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
          "price_usd": 79,
          "billing": "monthly",
          "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
        },
        "enterprise_annual_data_pass": {
          "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
          "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
          "price_usd": 499,
          "billing": "yearly",
          "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
        }
      }
    }
  },
  "externalDocs": {
    "description": "AI-Agent & MCP Tool Discovery Catalog",
    "url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev/agent-catalog.json"
  },
  "servers": [
    {
      "url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev",
      "description": "Public static Pages dataset & discovery server"
    },
    {
      "url": "https://p2-core-api.evsmtoken.workers.dev",
      "description": "Authenticated P2 Core Pro API"
    }
  ],
  "paths": {
    "/data/meta.json": {
      "get": {
        "operationId": "getPortalMeta",
        "summary": "Get live dataset freshness metadata and upstream source list",
        "servers": [
          {
            "url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Metadata JSON with fetched_at, record_count, and sources",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Get LLM-readable portal summary and endpoint directory",
        "servers": [
          {
            "url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Plain text discovery guide",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/license/verify": {
      "post": {
        "operationId": "verifyPolarLicense",
        "summary": "Verify a Polar.sh Pro License Key via p2-core-api",
        "servers": [
          {
            "url": "https://p2-core-api.evsmtoken.workers.dev"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "key"
                ],
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "portal": {
                    "type": "string",
                    "default": "p2-solar-bess-lcoe-ppa-calc"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "License verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pro/p2-solar-bess-lcoe-ppa-calc/dataset": {
      "get": {
        "operationId": "getProDataset",
        "summary": "Fetch authenticated full Pro JSON dataset for p2-solar-bess-lcoe-ppa-calc",
        "servers": [
          {
            "url": "https://p2-core-api.evsmtoken.workers.dev"
          }
        ],
        "security": [
          {
            "PolarBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Full Pro dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Polar License Key"
          }
        }
      }
    },
    "/data/solar-bess-pvgis-yields.json": {
      "get": {
        "operationId": "getPublic_solar_bess_pvgis_yields_json",
        "summary": "Get public live open-data benchmark JSON (solar-bess-pvgis-yields.json)",
        "servers": [
          {
            "url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/tb2-tb4-spot-arbitrage.json": {
      "get": {
        "operationId": "getPublic_tb2_tb4_spot_arbitrage_json",
        "summary": "Get public live open-data benchmark JSON (tb2-tb4-spot-arbitrage.json)",
        "servers": [
          {
            "url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "PolarBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Polar License Key"
      }
    }
  }
}