Statistics: Segment type breakdown
This endpoint is used for calculating the emissions for a project by segment type. You can filter which emissions you'd like to sum using our statistics parameters.
Authorization
API Key Your API Key must be provided as a bearer token. To do this, create an 'Authorization' header with a value of 'Bearer {your-api-key}' (e.g. "Authorization: Bearer xcvboy23idvh").
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request format for a Thrust Calculator statistics endpoints.
Response Body
application/json
curl -X GET "https://example.com/projects/string/statistics/metadata" \ -H "Content-Type: application/json" \ -d '{ "start": "2023-01-01", "end": "2023-01-01", "employee_id": "EMP1234", "grouping_type": "cost-center", "grouping": "Marketing", "grouping_include_sub_groups": true }'{ "segment_types": [ { "segment_type": "air", "tonnes_of_co2": 21.677886829839668, "passengers": 45 }, { "segment_type": "hotel", "tonnes_of_co2": 0.9969000000000005, "passengers": 44 }, { "segment_type": "rail", "tonnes_of_co2": 0.4194173561137991, "passengers": 52 }, { "segment_type": "taxi", "tonnes_of_co2": 0.027036010133314824, "passengers": 12 }, { "segment_type": "car", "tonnes_of_co2": 0.0061319624830333, "passengers": 1 } ]}