enSights Solar API
Solar PV system data, energy generation, and performance analytics
Operations 6
GET
/api/v1/solar/performance-index
Per-system weather-adjusted performance index over a date window
#
Solar PV system data, energy generation, and performance analytics
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ensights:ensights-solar-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: enSights Monitoring Solar API
version: 1.0.0
description: The enSights Monitoring API provides comprehensive access to renewable energy asset data across solar PV systems and battery storage units infrastructure. It enables real-time monitoring, historical performance analysis, and intelligent alerting for distributed energy portfolios — empowering operators and integrators to maximize clean energy yield, optimize self-consumption, and drive the transition to a sustainable grid.
servers:
- url: https://external-api.ensights.ai
security:
- accesstoken: []
tags:
- name: Solar
description: Solar PV system data, energy generation, and performance analytics
paths:
/api/v1/solar/performance-index:
get:
summary: Per-system weather-adjusted performance index over a date window
description: Read-side sum-ratio of solar_daily energy vs weatherAdjustedEnergy. The window is resolved as UTC-midnight timestamps startDate 00:00 <= ts <= endDate 00:00 inclusive (unix seconds), matching solar_daily's plain-UTC-midnight storage - do not reintroduce a timezone offset. PI and coverage use paired days only (both fields present); daysWithActual counts every day with energy. Every allowed (or requested intersect allowed) system appears; no-data systems return null PI/coverage. Empty RBAC intersection returns 200 with systems []. Window cap 92 days.
tags:
- Solar
security:
- accesstoken: []
parameters:
- in: query
name: startDate
required: true
schema:
type: string
format: date
example: '2026-08-25'
description: Inclusive UTC start date (YYYY-MM-DD)
- in: query
name: endDate
required: true
schema:
type: string
format: date
example: '2026-08-31'
description: Inclusive UTC end date (YYYY-MM-DD); must be >= startDate; window <= 92 days
- in: query
name: systems
required: false
schema:
type: string
example: sys_123,sys_456
description: Optional CSV intersected with the RBAC-allowed set by AllowedSystems
responses:
'200':
description: Per-system paired-days performance index
content:
application/json:
schema:
type: object
properties:
startDate:
type: string
example: '2026-08-25'
endDate:
type: string
example: '2026-08-31'
systems:
type: array
items:
type: object
properties:
system:
type: string
actualEnergy:
type: number
weatherAdjustedEnergy:
type: number
performanceIndex:
type:
- number
- 'null'
daysWithActual:
type: integer
daysWithBoth:
type: integer
coverage:
type:
- number
- 'null'
'400':
description: Missing/malformed date, endDate < startDate, or window > 92 days
'401':
description: Unauthorized - missing tenant context
operationId: getApiV1SolarPerformanceIndex
x-operation-id-source: derived
/api/v1/solar/generation/range:
post:
summary: Get aggregatedenergy generation data for a date range
tags:
- Solar
security:
- accesstoken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- from
properties:
from:
type: string
example: 01/01/2026
description: Start date DD/MM/YYYY
to:
type: string
example: 31/01/2026
description: End date DD/MM/YYYY
period:
type: string
enum:
- custom
- daily
- weekly
- monthly
systems:
type: string
example: 11247429,11247865
description: Comma-separated system IDs
responses:
'200':
description: Energy generation data
content:
application/json:
schema:
type: object
properties:
periodicGeneration:
type: object
properties:
data:
type: object
description: Keyed by year, containing monthly data
total:
type: number
example: 181022.83
totalRevenue:
type: number
example: 81460.27
meterTotal:
type: number
example: 0
'400':
description: Bad request — invalid or missing parameters
'401':
description: Unauthorized — missing or invalid access token
'500':
description: Internal server error
operationId: postApiV1SolarGenerationRange
x-operation-id-source: derived
/api/v1/solar/generation:
post:
summary: Get energy generation
description: Get generation data for the given system and dates.
tags:
- Solar
security:
- accesstoken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- period
- from
- to
- systems
properties:
period:
type: string
enum:
- day
- month
- year
example: year
description: Aggregation period
from:
type: string
example: 01/01/2023
description: Start date (DD/MM/YYYY)
to:
type: string
example: 31/12/2024
description: End date (DD/MM/YYYY)
systems:
type: string
example: '11247429'
description: Comma-separated system IDs
responses:
'200':
description: Periodic generation data per system
content:
application/json:
schema:
type: object
properties:
periodicGeneration:
type: object
properties:
data:
type: object
description: Keyed by year, each containing monthly data array
total:
type: number
example: 181022.83
totalRevenue:
type: number
example: 81460.27
meterTotal:
type: number
example: 0
'400':
description: Bad request — invalid or missing parameters
'401':
description: Unauthorized — missing or invalid access token
'500':
description: Internal server error
operationId: postApiV1SolarGeneration
x-operation-id-source: derived
/api/v1/solar/systems:
get:
summary: Get systems metadata
description: Returns all solar systems for the authenticated tenant. Optionally includes an energy summary per system for a given period.
tags:
- Solar
security:
- accesstoken: []
parameters:
- in: query
name: withSummary
schema:
type: boolean
description: When true, includes an energy generation summary for each system
- in: query
name: date
schema:
type: string
example: 01/01/2025
description: Start date for the summary period (DD/MM/YYYY)
- in: query
name: endDate
schema:
type: string
example: 31/01/2025
description: End date for the summary period (DD/MM/YYYY)
- in: query
name: period
schema:
type: string
enum:
- day
- month
- year
description: Aggregation period for the summary
- in: query
name: map
schema:
type: boolean
description: When true, returns the raw systems map keyed by system ID instead of an array
responses:
'200':
description: List of solar systems
content:
application/json:
schema:
type: array
items:
type: object
properties:
system:
type: string
example: '100855'
name:
type: string
example: ABC
displayName:
type: string
example: ABC
capacity:
type: number
example: 372.5
description: Capacity in kWp
address:
type: string
timezone:
type: string
example: Asia/Jerusalem
vendor:
type: string
example: neteco
installationDate:
type: string
example: '2022-05-20'
price:
type: number
example: 0.35
location:
type: object
properties:
lat:
type: number
example: XX.XXX
lng:
type: number
example: YY.YYY
performance:
type: object
properties:
annualYield:
type: number
example: 1650
description: Annual yield in kWh/kWp
annualYieldP90:
type: number
example: 1608.75
description: P90 annual yield (90% probability) in kWh/kWp
yearlyDegradation:
type: number
example: 0.4
description: Annual degradation rate (percentage)
'401':
description: Unauthorized — missing or invalid access token
'500':
description: Internal server error
operationId: getApiV1SolarSystems
x-operation-id-source: derived
/api/v1/solar/systems/page:
post:
summary: Get systems metadata (paginated)
description: Returns a paginated list of solar systems with optional field projection.
tags:
- Solar
security:
- accesstoken: []
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
page:
type: integer
default: 0
example: 0
description: Zero-based page index
limit:
type: integer
default: 1000
maximum: 1000
example: 50
description: Number of systems per page (max 1000)
fields:
type: object
description: MongoDB-style projection — keys are field names, values are 1 (include) or 0 (exclude)
example:
name: 1
capacity: 1
vendor: 1
tags:1: null
responses:
'200':
description: Paginated list of solar systems
content:
application/json:
schema:
type: array
items:
type: object
properties:
system:
type: string
example: '100855'
name:
type: string
example: ABC
displayName:
type: string
example: ABC
capacity:
type: number
example: 372.5
description: Capacity in kWp
address:
type: string
timezone:
type: string
example: Asia/Jerusalem
vendor:
type: string
example: neteco
installationDate:
type: string
example: '2022-05-20'
price:
type: number
example: 0.35
location:
type: object
properties:
lat:
type: number
example: XX.XXX
lng:
type: number
example: YY.YYY
performance:
type: object
properties:
annualYield:
type: number
example: 1650
description: Annual yield in kWh/kWp
annualYieldP90:
type: number
example: 1608.75
description: P90 annual yield (90% probability) in kWh/kWp
yearlyDegradation:
type: number
example: 0.4
description: Annual degradation rate (percentage)
'400':
description: Invalid request body (e.g. page/limit not a number, limit > 1000)
'401':
description: Unauthorized — missing or invalid access token
'500':
description: Internal server error
operationId: postApiV1SolarSystemsPage
x-operation-id-source: derived
/api/v1/solar/rawData:
post:
summary: Get raw solar energy data
description: 'Returns raw solar generation data for one or more systems over a specified date range,
aggregated by the given period.
**Limits:**
- Maximum 1,000 system IDs per request.
- "hourly" period: date range must not exceed 2 days.
- "day" period: date range must not exceed 60 days.
- "month" period: no date-range restriction.'
tags:
- Solar
security:
- accesstoken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- systems
- from
- to
- period
- fields
properties:
systems:
type: string
description: Comma-separated list of system IDs (max 1,000)
example: e8f7dfe0-66c0-464e-822b-73d826c3dc05
from:
type: string
format: date
description: Start date (YYYY-MM-DD)
example: '2026-02-01'
to:
type: string
format: date
description: End date (YYYY-MM-DD)
example: '2026-03-01'
period:
type: string
enum:
- hourly
- day
- month
description: 'Aggregation period. Date-range limits apply: hourly (2 days), day (60 days), month (unlimited).'
example: day
fields:
type: string
description: 'Required. Comma-separated list of fields to include in the response (projection).
Allowed per period — hourly: power, energy, meterData; day: energy, meterData, approximate; month: energy, meterData.
Response always includes system identifier and timestamp in addition to requested fields.
Request "energy,approximate" with period=day to tell computed daily values from the vendor''s.
'
example: energy
responses:
'200':
description: Raw solar data per system and period
content:
application/json:
schema:
type: array
items:
type: object
properties:
system:
type: string
example: e8f7dfe0-66c0-464e-822b-73d826c3dc05
timestamp:
type: number
example: 1712054400
energy:
type: number
description: Energy generated in kWh
example: 42.5
irradiance:
type: number
example: 5
description: Only if sensor or external sensor is available
temperature:
type: number
example: 25
description: Only if sensor or external sensor is available
power:
type: number
example: 265
description: Only if period is day
approximate:
type: boolean
example: true
description: 'Optional, period=day only (request it in "fields"). true when the value was computed by enSights from interval data and has not yet been replaced by the vendor''s daily figure.
Omitted otherwise; treat a missing value as false.
'
'400':
description: 'Validation error. Possible reasons:
- "systems" missing or exceeds 1,000 IDs.
- "period" not one of hourly, day, month.
- "from" or "to" missing or not a valid YYYY-MM-DD date.
- "to" is before "from".
- Date range exceeds the allowed limit for the requested period.
'
'401':
description: Unauthorized - missing or invalid access token
'500':
description: Internal server error
operationId: postApiV1SolarRawData
x-operation-id-source: derived
components:
securitySchemes:
accesstoken:
type: apiKey
in: header
name: accesstoken
description: Access token obtained from POST /app/auth