Retrieves calendarized GHG (greenhouse gas) comparison data for a place between a current period and a historical period
Use this endpoint to compare calendarized GHG emissions between a recent period and a historical baseline.
The current period is calculated by excluding recent months and looking back numMonths.
The previous period is the same date range shifted back by comparisonYearsAgo years.
Results include total GHG and per-commodity breakdowns with intensity (GHG per area) when size data exists.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| placeId | Unique numeric identifier of the place to retrieve comparison data for | integer (int32) | Required |
Query Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| chartMonthsToExclude | Optional number of recent months to exclude from the range. Defaults to system setting or 0. | integer (int32) | Optional |
| numMonths | Optional number of months to include in the comparison range. Defaults to 12. | integer (int32) | Optional |
| comparisonYearsAgo | Number of years back for the comparison period. Defaults to 1. | integer (int32) | Optional |
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
PlaceDigestComparisonResponse
| Property | Description | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| commodities | Comparison values for each commodity | CommodityValueComparison[] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CommodityValueComparison properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| currentPeriodRange | PeriodRange | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PeriodRange properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| floorAreaUnit | UnitChild | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
UnitChild properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| intensity | ValueComparison | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ValueComparison properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| previousPeriodRange | PeriodRange | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PeriodRange properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| total | ValueComparison | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ValueComparison properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Response
{ "commodities": [
{ "commodity": { "commodityCode": "string", "commodityIcon": {}, "commodityId": 1, "commodityInfo": "string"
}, "currentValue": { "unit": {}, "value": 1.0
}, "previousValue": { "unit": {}, "value": 1.0
}
}
], "currentPeriodRange": { "endPeriod": 1, "startPeriod": 1
}, "floorAreaUnit": { "unitCode": "string", "unitId": 1, "unitInfo": "string"
}, "intensity": { "currentValue": { "unit": {}, "value": 1.0
}, "previousValue": { "unit": {}, "value": 1.0
}
}, "previousPeriodRange": { "endPeriod": 1, "startPeriod": 1
}, "total": { "currentValue": { "unit": {}, "value": 1.0
}, "previousValue": { "unit": {}, "value": 1.0
}
}
}