Skip to content

Report as JSON, CSV or PDF (read)​

GET
/api/v1/report

Days are local dates. The maximum range is 3660 days. If the range ends today, the report ends yesterday. A range that contains only today gives the error 400.

Authorizations​

or
session
Type
API Key (cookie: pvmon_session)
or
token

API token pvm_<id>_<secret>.

Type
HTTP (bearer)

Parameters​

Query Parameters

from*
Type
string
Required
Format
"date"
to*
Type
string
Required
Format
"date"
compare
Type
string
Valid values
"last_year""previous""none"
granularity

Size of the buckets. Without it, pvmon selects the size from the range.

Type
string
Valid values
"day""month""year"
format
Type
string
Valid values
"json""csv""pdf"
Default
"json"
lang

Language of the PDF.

Type
string
Valid values
"de""en"
Default
"en"

Responses​

The report. CSV and PDF are file downloads.

JSON
{
  
"from": "2024-01-01",
  
"to": "2024-01-01",
  
"granularity": "string",
  
"today_excluded": true,
  
"summary": {
  
  
"days": 0,
  
  
"complete_days": 0,
  
  
"total": {
  
  
  
"pv_kwh": 0,
  
  
  
"consumption_kwh": 0,
  
  
  
"import_kwh": 0,
  
  
  
"export_kwh": 0,
  
  
  
"charge_kwh": 0,
  
  
  
"discharge_kwh": 0
  
  
},
  
  
"per_day": {
  
  
  
"pv_kwh": 0,
  
  
  
"consumption_kwh": 0,
  
  
  
"import_kwh": 0,
  
  
  
"export_kwh": 0,
  
  
  
"charge_kwh": 0,
  
  
  
"discharge_kwh": 0
  
  
},
  
  
"self_sufficiency_pct": 0,
  
  
"self_consumption_pct": 0,
  
  
"grid_charge_est_kwh": 0,
  
  
"sources": {
  
  
  
"solar_est_kwh": 0,
  
  
  
"battery_est_kwh": 0,
  
  
  
"grid_est_kwh": 0,
  
  
  
"solar_pct": 0,
  
  
  
"battery_pct": 0,
  
  
  
"grid_pct": 0
  
  
},
  
  
"pv_split": {
  
  
  
"solar_est_kwh": 0,
  
  
  
"battery_est_kwh": 0,
  
  
  
"grid_est_kwh": 0,
  
  
  
"solar_pct": 0,
  
  
  
"battery_pct": 0,
  
  
  
"grid_pct": 0
  
  
},
  
  
"battery_ratio": 0,
  
  
"balance_diff_kwh": 0,
  
  
"balance_diff_pct": 0,
  
  
"fallback_days": 0
  
},
  
"figures": [
  
  
{
  
  
  
"id": "string",
  
  
  
"kind": "string",
  
  
  
"better": "string",
  
  
  
"value": 0,
  
  
  
"compared": 0,
  
  
  
"base": 0,
  
  
  
"change": 0,
  
  
  
"change_pct": 0
  
  
}
  
],
  
"comparison": {
  
  
"mode": "string",
  
  
"from": "2024-01-01",
  
  
"to": "2024-01-01",
  
  
"days": 0,
  
  
"complete_days": 0,
  
  
"matched": true,
  
  
"matched_days": 0
  
},
  
"buckets": [
  
  
{
  
  
  
"key": "string",
  
  
  
"from": "2024-01-01",
  
  
  
"to": "2024-01-01",
  
  
  
"partial": true,
  
  
  
"days": 0,
  
  
  
"complete_days": 0,
  
  
  
"total": {
  
  
  
  
"pv_kwh": 0,
  
  
  
  
"consumption_kwh": 0,
  
  
  
  
"import_kwh": 0,
  
  
  
  
"export_kwh": 0,
  
  
  
  
"charge_kwh": 0,
  
  
  
  
"discharge_kwh": 0
  
  
  
},
  
  
  
"self_sufficiency_pct": 0
  
  
}
  
],
  
"pv_sources": [
  
  
{
  
  
  
"id": "string",
  
  
  
"label": "string",
  
  
  
"category": "string",
  
  
  
"complete_days": 0,
  
  
  
"in_kwh": 0,
  
  
  
"out_kwh": 0,
  
  
  
"share_pct": 0,
  
  
  
"specific_yield": 0,
  
  
  
"ratio": 0,
  
  
  
"solar_est_kwh": 0,
  
  
  
"solar_pct": 0
  
  
}
  
],
  
"batteries": [
  
  
{
  
  
  
"id": "string",
  
  
  
"label": "string",
  
  
  
"category": "string",
  
  
  
"complete_days": 0,
  
  
  
"in_kwh": 0,
  
  
  
"out_kwh": 0,
  
  
  
"share_pct": 0,
  
  
  
"specific_yield": 0,
  
  
  
"ratio": 0,
  
  
  
"solar_est_kwh": 0,
  
  
  
"solar_pct": 0
  
  
}
  
],
  
"loadpoints": {
  
  
"house_solar_est_kwh": 0,
  
  
"house_solar_pct": 0,
  
  
"house_kwh": 0,
  
  
"meters": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"label": "string",
  
  
  
  
"category": "string",
  
  
  
  
"complete_days": 0,
  
  
  
  
"in_kwh": 0,
  
  
  
  
"out_kwh": 0,
  
  
  
  
"share_pct": 0,
  
  
  
  
"specific_yield": 0,
  
  
  
  
"ratio": 0,
  
  
  
  
"solar_est_kwh": 0,
  
  
  
  
"solar_pct": 0
  
  
  
}
  
  
],
  
  
"categories": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"label": "string",
  
  
  
  
"category": "string",
  
  
  
  
"complete_days": 0,
  
  
  
  
"in_kwh": 0,
  
  
  
  
"out_kwh": 0,
  
  
  
  
"share_pct": 0,
  
  
  
  
"specific_yield": 0,
  
  
  
  
"ratio": 0,
  
  
  
  
"solar_est_kwh": 0,
  
  
  
  
"solar_pct": 0
  
  
  
}
  
  
]
  
},
  
"profile": {
  
  
"mean_w": [
  
  
  
0
  
  
],
  
  
"peak_w": 0,
  
  
"peak_at": "2024-01-01T00:00:00Z"
  
},
  
"patterns": {
  
  
"best_pv": {
  
  
  
"date": "2024-01-01",
  
  
  
"kwh": 0
  
  
},
  
  
"lowest_pv": {
  
  
  
"date": "2024-01-01",
  
  
  
"kwh": 0
  
  
},
  
  
"max_consumption": {
  
  
  
"date": "2024-01-01",
  
  
  
"kwh": 0
  
  
},
  
  
"max_import": {
  
  
  
"date": "2024-01-01",
  
  
  
"kwh": 0
  
  
},
  
  
"weekday_consumption_kwh": 0,
  
  
"weekend_consumption_kwh": 0,
  
  
"low_import_days": 0
  
},
  
"missing_days": [
  
  
"2024-01-01"
  
],
  
"quality": [
  
  
{
  
  
  
"id": "string",
  
  
  
"label": "string",
  
  
  
"missing_days": 0,
  
  
  
"estimated_days": 0
  
  
}
  
]
}

Samples​

Version 0.4.0-66c93c2. MIT license.