Get analytics for shipping estimates
Path Parameters
The account identifier the analytics belongs to.
Query Parameters
The start date of the custom date range. Defaults to 30 days ago if not specified.
The to (inclusive) date of the custom date range. Defaults to the current date if not specified.
The time interval over which metrics should be aggregated. Defaults to day if not specified.
- day
- month
Returns
Timeseries containing the total emissions (tCO₂e) for the various shipping methods. Each element refers to a particular timeframe as seen on date
.
Timeseries containing the mean value of the carbon intensities (gCO₂e/tkm) for shipping estimates. The value represents the emission per tonnes transported per kilometer traveled.
Total carbon intensity for the returned timeframe.
Information about the account the analytics are associated with.
curl 'https://api.lune.co/v1/analytics/shipping/public/ljmkOq7vXd239gAE9WALWQ8ZGVD5ExNz' \
-H 'Authorization: Bearer <API_KEY>'
{
"emission_timeseries": [
[
{
"date": "2022-06-25",
"air": 231,
"sea": 127,
"road": 730,
"rail": 52,
"inland_waterway": 0,
"logistic_site": 2
},
{
"date": "2022-06-27",
"air": 500,
"sea": 321,
"road": 338,
"rail": 17,
"inland_waterway": 49,
"logistic_site": 8
}
]
],
"carbon_intensity_timeseries": [
[
{
"date": "2022-06-25",
"average": 500
},
{
"date": "2022-06-26",
"average": 550
},
{
"date": "2022-06-27",
"average": 800
}
]
],
"carbon_intensity_total": 1,
"name": "name",
"type": "live",
"logo": "https://client-assets.lune.co/XheugMiTUHynItnaYSvCF.png"
}