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
Setoptions.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.Related
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.