Skip to main content
The Emissions API calculates the greenhouse gas emissions of moving cargo along a transport chain – by road, rail, water, and air, including the logistics hubs between them. It returns the emissions of each operation and of the whole chain, together with the distances, transport activity, and the defaults TerraTwin used. New to the Emissions API? Start with the Emissions API quick start.

Endpoints

All endpoints are served from https://api.terratwin.com/api/v1/transportation and need your API key in the x-api-key header.

The request

An emissions request describes the shipment: Each transport operation is one of ROAD, RAIL, WATER, AIR, UNKNOWN, or WEIGHTED_MODES. Hubs add the emissions of handling cargo between operations.

Options

The response

Storing and retrieving results

Set options.storeResult to true and give the request a unique top-level id to keep the result. You can then fetch it with GET /emissions/{id}, or browse stored results with GET /emissions, which pages through them with created_from, created_to, limit, and cursor.

Credits

Emissions API requests are charged to your account’s Emissions API credits, one credit per transport operation – see Credits & usage. Emissions API credits can be bought on the TerraTwin website.

Distance API

Need only the routes and distances, without emissions? The Distance API takes the same transport chain and routes it the same way.

API reference

Every request field, response object, and error code of the Emissions API.