Analytics
Get cumulative analytics
GET to /v1/analytics/cumulative-per-bundleQuery parameters
fromstring (date)
The start date of the custom date range. Defaults to 30 days ago if not specified.
throughstring (date)
The to (inclusive) date of the custom date range. Defaults to the current date if not specified.
Response
array
An array of analytics by bundle objects.
object
An array of analytics by bundle objects.
bundle_idstringrequired
The bundle's unique identifier
bundle_namestringrequired
The bundle's name
timeseriesarrayrequired
A timeseries of quantities and values.
object
datestring (date)required
valuestringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
quantitystringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
Quantity of CO2 offsets linked to this activity (tonnes CO2)
Errors
This API operation can return the following errors:400api_version_invalid400bundle_selection_ratios_invalid400bundle_selection_bundle_invalid400order_value_invalid400bundle_id_invalid400id_invalid400distance_invalid400test_account_name_update_disallowed400bundle_selection_ratios_invalid_format400address_not_foundGet emission calculation metrics
GET to /v1/analytics/emission-calculationsQuery parameters
fromstring (date)
The start date of the custom date range. Defaults to 30 days ago if not specified.
throughstring (date)
The to (inclusive) date of the custom date range. Defaults to the current date if not specified.
intervalstring
The time interval over which metrics should be aggregated. Defaults to day if not specified.
daymonthall_accountsstring
When true, metrics will include data from all accounts in the organisation. When false, metrics will only include data from the API Key's default account. Defaults to false.
Response
timeseriesarrayrequired
A timeseries representing counters.
object
datestring (date)required
countnumberrequired
Errors
This API operation can return the following errors:400api_version_invalid400bundle_selection_ratios_invalid400bundle_selection_bundle_invalid400order_value_invalid400bundle_id_invalid400id_invalid400distance_invalid400test_account_name_update_disallowed400bundle_selection_ratios_invalid_format400address_not_foundGet metrics
GET to /v1/analytics/metricsQuery parameters
fromstring (date)
The start date of the custom date range. Defaults to 30 days ago if not specified.
throughstring (date)
The to (inclusive) date of the custom date range. Defaults to the current date if not specified.
Response
number_of_un_sdgsnumberrequired
The number of supported UN Sustainable Development Goals (SDGs).
number_of_projectsnumberrequired
The number of supported carbon offset projects.
un_sdgarrayrequirednullable
The list of supported UN Sustainable Development Goals (SDGs).
The array is sorted by the goal number (the un_sdg_number property), ascending.
object
un_sdg_numbernumberrequired
The number which identifies the specific UN SDG.
occurrencesnumberrequired
The total number of projects supporting this UN SDG.
Errors
This API operation can return the following errors:400api_version_invalid400bundle_selection_ratios_invalid400bundle_selection_bundle_invalid400order_value_invalid400bundle_id_invalid400id_invalid400distance_invalid400test_account_name_update_disallowed400bundle_selection_ratios_invalid_format400address_not_foundGet aggregated analytics by property
GET to /v1/analytics/aggregated-by-propertyQuery parameters
fromstring (date)
The start date of the custom date range. Defaults to 30 days ago if not specified.
throughstring (date)
The to (inclusive) date of the custom date range. Defaults to the current date if not specified.
Response
bundlearrayrequired
An array of objects describing a bundle's aggregated orders.
object
bundle_idstringrequired
The bundle's unique identifier.
bundle_namestringrequired
The bundle's name.
quantitystringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
Quantity of CO2 offsets linked to this activity (tonnes CO2).
valuestringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
CO2 offsets' monetary value.
locationarrayrequired
An array of objects describing a location's aggregated orders.
object
locationstringrequired
Project location (continent). If a project has yet to be assigned 'Not yet allocated' is returned instead.
quantitystringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
Quantity of CO2 offsets linked to this activity (tonnes CO2).
valuestringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
CO2 offsets' monetary value
registryarrayrequired
An array of objects describing a registry's aggregated orders.
object
registry_nameoneOfrequired​
The project's Verification Standard Entity name or equivalent organization. If a project has no registry, 'Not certified' is returned. If a project has yet to be assigned, 'Not yet allocated' is returned.
quantitystringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
Quantity of CO2 offsets linked to this activity (tonnes CO2).
valuestringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
CO2 offsets' monetary value.
oxford_offsetting_principlesarrayrequired
An array of objects describing aggregated orders for each Oxford Offsetting Principle's type.
object
typenumberrequired
Oxford Offsetting Principles' type.
https://lune.co/blog/the-oxford-offsetting-principles-a-framework-to-maximise-the-impact-of-business-carbon-offsetting/.
quantitystringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
Quantity of CO2 offsets linked to this activity (tonnes CO2)
valuestringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
CO2 offsets' monetary value
offset_typearrayrequired
An array of objects describing aggregated orders by offset type.
object
offset_typestringrequirednullable
Offset type classification
emissions_reductioncarbon_removalquantitystringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
Quantity of CO2 offsets linked to this activity (tonnes CO2)
valuestringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
CO2 offsets' monetary value
Errors
This API operation can return the following errors:400api_version_invalid400bundle_selection_ratios_invalid400bundle_selection_bundle_invalid400order_value_invalid400bundle_id_invalid400id_invalid400distance_invalid400test_account_name_update_disallowed400bundle_selection_ratios_invalid_format400address_not_foundGet business emissions analytics
GET to /v1/analytics/businessGet business emissions analytics.Business analytics are calculated for transactions, transaction documents, passenger transportation and activity estimates that have their is_transaction, is_transaction_document, is_passenger_transportation properties set to true respectively.Query parameters
fromstring (date)
The start date of the custom date range. Defaults to the date of the first estimate if not specified.
throughstring (date)
The to (inclusive) date of the custom date range. Defaults to the current date if not specified.
Response
massobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtnumber_of_estimatesnumberrequired
The number of estimates
categoriesobjectrequired
Emissions breakdown by business category
agricultureobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtcontractorsobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtairlinesobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtcar_rentalsobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgthotelsobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgttransportationobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtutilitiesobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtretailobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtclothingobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtother_shopsobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtbusiness_servicesobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtprofessional_servicesobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtgovernmentobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtuncategorizedobjectrequired
amountstringrequired
Pattern: ^[0-9]+(\.[0-9]+)?$
unitstringrequired
Unit, t for tonne, kg for kilogram, g for gram, mg for milligram
mggkgtErrors
This API operation can return the following errors:400api_version_invalid400bundle_selection_ratios_invalid400bundle_selection_bundle_invalid400order_value_invalid400bundle_id_invalid400id_invalid400distance_invalid400test_account_name_update_disallowed400bundle_selection_ratios_invalid_format400address_not_found