# Solar Potential API

> Solar Potential calculates solar energy potential for any latitude and longitude coordinates. It returns average daily usable sunlight hours and optimal panel orientation, with paid plans adding yearly totals and cloud factors.

**Endpoint:** `GET https://api.apiverve.com/v1/solarpotential`  
**Category:** Weather  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/solarpotential

## Overview

Pass geographic coordinates to receive average daily usable sunlight hours and the optimal compass orientation for photovoltaic panels. Paid plans include raw annual sunlight hours, cloud cover reduction factors, and weather-adjusted yearly totals. Paid plans also return measured solar irradiance from NASA POWER's long-term climatology (public domain, 1-degree grid): peak sun hours per day, monthly peak sun hours, annual irradiance per square metre, an estimated yield per installed kWp and a rule-of-thumb panel tilt. Use peakSunHours to compare sites; the cloud factor and cloud-adjusted hours are a coarse latitude-band heuristic. An estimation disclaimer accompanies each response.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/solarpotential?lat=37.7749&lon=-122.4194" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `lat` | number | Yes | The latitude of the location. range -90-90 |
| `lon` | number | Yes | The longitude of the location. range -180-180 |

## Response fields

- `coordinates` — object
  - `coordinates.latitude` — number · Latitude coordinate of the location analyzed
  - `coordinates.longitude` — number · Longitude coordinate of the location analyzed
- `usableHours` — object
  - `usableHours.avgDailyUsableSunlightHours` — number · Average daily usable sunlight hours for the location
  - `usableHours.yearlyUsableSunlightHoursRaw` — number · Total yearly usable sunlight hours without adjustments · (premium)
  - `usableHours.adjustedYearlyUsableSunlightHours` — number · Adjusted yearly usable sunlight hours accounting for clouds · (premium)
- `bestDirection` — string · Optimal solar panel direction (e.g., South, Southwest)
- `cloudFactor` — number · Cloud cover factor between 0 and 1 reducing solar potential · (premium)
- `disclaimer` — string · Important disclaimer about estimate accuracy and limitations

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "coordinates": {
      "latitude": 37.7749,
      "longitude": -122.4194
    },
    "usableHours": {
      "avgDailyUsableSunlightHours": 12.19,
      "yearlyUsableSunlightHoursRaw": 4448,
      "adjustedYearlyUsableSunlightHours": 1557
    },
    "bestDirection": "South",
    "cloudFactor": 0.35,
    "disclaimer": "This is a rough estimate based on coordinates and general climate patterns. For precise solar potential, consider local weather patterns, obstructions, and professional assessments."
  }
}
```

## Use cases

- **Rooftop Solar Quoting** — Installers compute daily sunlight hours and recommended panel orientation when generating preliminary equipment estimates for homeowner leads.
- **Real Estate Listings** — Property portals display average daily sunlight and optimal panel orientation directly on home profile pages to highlight green energy readiness.
- **Off-Grid Site Selection** — Before deploying remote monitoring hardware, field engineers check local solar exposure to verify whether small solar arrays can sustain battery levels.
- **Building Architecture Design** — To guide passive solar layouts, architects query candidate coordinates for panel headings and daily sunlight availability.

## SDKs

- **npm** — `npm install @apiverve/solarpotential` (https://www.npmjs.com/package/@apiverve/solarpotential)
- **NuGet** — `dotnet add package APIVerve.API.SolarPotential` (https://www.nuget.org/packages/APIVerve.API.SolarPotential)
- **Source** — https://github.com/apiverve/solarpotential-api

## More

- Full reference: https://docs.apiverve.com/ref/solarpotential
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
