Get ESG footprint
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/esg_footprint \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/esg_footprint"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/inventory/esg_footprint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "038364d7-abe9-4c69-b18f-5b8b92e109f0",
"data_as_of": null,
"demand_source": {
"source": "order_lines",
"history_complete": false,
"history_as_of": null,
"fallback_reason": "history_not_built"
},
"stale": true,
"total_purchase_spend": 63938036.62,
"estimated_total_kg_co2e": 32455519.4,
"estimated_total_t_co2e": 32455.52,
"transport_kg_co2e": 8640,
"lanes": [
{
"lane": "CN → US",
"origin": "CN",
"destination": "US",
"spend": 4786951.02,
"estimated_kg_co2e": 2392806.76
}
],
"categories": [
{
"category": "SMALL_LEATHER_GOODS",
"spend": 13493586.76,
"emission_factor_kg_per_usd": 0.5,
"estimated_kg_co2e": 6746793.56
}
],
"suppliers": [
{
"external_id": "VEND-000001",
"name": "Ho Chi Minh Leather Works 0001",
"country": "PH",
"items": 14,
"spend": 999016.4,
"estimated_kg_co2e": 494471.78,
"share_of_footprint_pct": 1.5,
"share_of_spend_pct": 1.6,
"intensity_kg_per_usd": 0.495,
"category_avg_kg_per_usd": 0.519,
"intensity_vs_category_pct": -4.7,
"categories": [
"SMALL_LEATHER_GOODS"
],
"default_factor_spend_pct": 56.9
}
],
"supplier_count": 203,
"items": [
{
"external_id": "MAT-00000492",
"name": "MAT-00000492",
"description": "Footwear - Style 00000492",
"category": "Footwear",
"suppliers": 3,
"spend": 772220.96,
"estimated_kg_co2e": 386110.48,
"share_of_footprint_pct": 1.2,
"share_of_spend_pct": 1.2,
"intensity_kg_per_usd": 0.5,
"category_avg_kg_per_usd": 0.5,
"intensity_vs_category_pct": 0,
"categories": [
"FOOTWEAR"
],
"default_factor_spend_pct": 0
}
],
"item_count": 802,
"transport": {
"by_mode": [
{
"mode": "ocean",
"lanes": 329,
"shipped_mass_kg": 180698.7,
"tonne_km": 0,
"estimated_kg_co2e": 0,
"share_of_transport_pct": 0
}
],
"lanes_total": 348,
"lanes_estimated": 1,
"lanes_unknown_mode": 18,
"lanes_without_distance": 329,
"lanes_without_mass": 0,
"lanes": [
{
"id": "72961b79-cd91-4ec3-910d-6763e1629a90",
"supplier": {
"id": "a391513a-fccd-4e8e-92d4-c2e88521e6d5",
"external_id": "SUP-IT-0044",
"name": "Conceria Modello S.p.A.",
"country": "IT"
},
"location": {
"id": "7ffeddbb-b3e9-4fb6-b7d7-3b7fc033d1b1",
"external_id": "1004",
"name": "Store 1004",
"country": "US"
},
"mode": "air",
"distance_km": 7200,
"transit_days_p50": 4,
"open_po_value": 0,
"cross_border": true,
"shipped_mass_kg": 2000,
"tonne_km": 14400,
"estimated_kg_co2e": 8640,
"estimated_cost_usd": 5040,
"basis": "estimated"
}
]
},
"mode_shifts": [
{
"key": "mode_shift:SUP-IT-0044>1004:air>ocean",
"supplier": {
"id": "a391513a-fccd-4e8e-92d4-c2e88521e6d5",
"external_id": "SUP-IT-0044",
"name": "Conceria Modello S.p.A.",
"country": "IT"
},
"location": {
"id": "7ffeddbb-b3e9-4fb6-b7d7-3b7fc033d1b1",
"external_id": "1004",
"name": "Store 1004",
"country": "US"
},
"from_mode": "air",
"to_mode": "ocean",
"alternative": "estimated",
"distance_km": 7200,
"shipped_mass_kg": 2000,
"kg_co2e_before": 8640,
"kg_co2e_after": 230.4,
"kg_co2e_saved": 8409.6,
"cost_before": 5040,
"cost_after": 144,
"cost_saved": 4896,
"transit_days_before": 4,
"transit_days_after": 15,
"transit_days_added": 11,
"priority": 69,
"reason": "Conceria Modello S.p.A. ships 2,000 kg to Store 1004 by air over 7,200 km. Moving it to ocean (modelled from the lane's distance) cuts a...",
"formula": "14400 t·km × (0.6 − 0.016) kgCO2e/t·km = 8410 kgCO2e saved; cost × (0.35 − 0.01) $/t·km",
"recommendation_id": null
}
],
"engagement": [
{
"external_id": "VEND-000001",
"name": "Ho Chi Minh Leather Works 0001",
"country": "PH",
"spend": 999016.4,
"estimated_kg_co2e": 494471.78,
"share_of_footprint_pct": 1.5,
"cumulative_share_pct": 1.5,
"passport_id": "2f4c21b8-40c2-4252-b669-ca8818fb3c1e"
}
],
"trend": {
"months": [
{
"month": "2025-12",
"spend": 0,
"estimated_kg_co2e": 0,
"by_category": {
"OUTERWEAR": 0,
"SMALL_LEATHER_GOODS": 0
}
}
],
"top_categories": [
"OUTERWEAR"
],
"lines_without_date": 7,
"spend_without_date": 1950
},
"coverage": {
"total_spend": 63938036.62,
"default_factor_spend": 23724118.17,
"default_factor_spend_pct": 37.1,
"uncategorised_items": 280,
"no_destination_lines": 9,
"no_destination_spend_pct": 0.1,
"no_date_lines": 7,
"no_date_spend_pct": 0,
"mass_from_item_weight_pct": 0,
"lanes_total": 348,
"lanes_unknown_mode": 18,
"lanes_without_distance": 329,
"lanes_without_mass": 0
},
"supplier_governance_flags": [
{
"supplier": "VEND-000001",
"name": "Ho Chi Minh Leather Works 0001",
"country": "Philippines",
"country_code": "PH",
"risk_level": "ELEVATED",
"sanctioned": false,
"fatf_status": "greylist",
"reasons": [
"FATF greylist"
],
"spend": 999016.4,
"share_of_footprint_pct": 1.5
}
],
"methodology": "Spend-based screening estimate: estimated kgCO2e = purchase spend x sector-average emission factor. Transport leg: shipped mass x lane distance x a tonne-km factor per mode. Suitable for hotspot identification and prioritization, not for reporting measured emissions. Replace with supplier-specific or activity-based data as it becomes available.",
"factors": {
"categories": [
{
"category": "FRAGRANCE",
"kg_per_usd": 0.42,
"source": "Screening default in the range of published sector averages (kgCO2e per USD, purchaser price): perfumes and toiletries"
}
],
"transport": [
{
"mode": "ocean",
"kg_co2e_per_tonne_km": 0.016,
"usd_per_tonne_km": 0.01,
"km_per_day": 800,
"fixed_days": 6,
"source": "Published default freight intensity, well-to-wheel, container vessel deep-sea; cost: indicative 2024 spot rates (order of magnitude); replace with contracted rates; transit: planning rule of thumb (cruise speed plus port, airport or terminal handling)"
}
],
"unit_mass": [
{
"category": "FRAGRANCE",
"kg_per_unit": 0.35,
"source": "Screening default per unit, packaged; the item's own weight (its weight_kg attribute) overrides it"
}
]
},
"duration_ms": 78
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Inventory
Get ESG footprint
Spend-based CO2e footprint by lane, supplier and item, with mode-shift candidates.
Key scope: read (or execute). lanes, suppliers, items and transport.lanes each carry the top limit rows (default 100, at most 200) with no further page; supplier_count, item_count and transport.lanes_total say how many exist
GET
/
v1
/
inventory
/
esg_footprint
Get ESG footprint
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/esg_footprint \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/esg_footprint"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/inventory/esg_footprint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "038364d7-abe9-4c69-b18f-5b8b92e109f0",
"data_as_of": null,
"demand_source": {
"source": "order_lines",
"history_complete": false,
"history_as_of": null,
"fallback_reason": "history_not_built"
},
"stale": true,
"total_purchase_spend": 63938036.62,
"estimated_total_kg_co2e": 32455519.4,
"estimated_total_t_co2e": 32455.52,
"transport_kg_co2e": 8640,
"lanes": [
{
"lane": "CN → US",
"origin": "CN",
"destination": "US",
"spend": 4786951.02,
"estimated_kg_co2e": 2392806.76
}
],
"categories": [
{
"category": "SMALL_LEATHER_GOODS",
"spend": 13493586.76,
"emission_factor_kg_per_usd": 0.5,
"estimated_kg_co2e": 6746793.56
}
],
"suppliers": [
{
"external_id": "VEND-000001",
"name": "Ho Chi Minh Leather Works 0001",
"country": "PH",
"items": 14,
"spend": 999016.4,
"estimated_kg_co2e": 494471.78,
"share_of_footprint_pct": 1.5,
"share_of_spend_pct": 1.6,
"intensity_kg_per_usd": 0.495,
"category_avg_kg_per_usd": 0.519,
"intensity_vs_category_pct": -4.7,
"categories": [
"SMALL_LEATHER_GOODS"
],
"default_factor_spend_pct": 56.9
}
],
"supplier_count": 203,
"items": [
{
"external_id": "MAT-00000492",
"name": "MAT-00000492",
"description": "Footwear - Style 00000492",
"category": "Footwear",
"suppliers": 3,
"spend": 772220.96,
"estimated_kg_co2e": 386110.48,
"share_of_footprint_pct": 1.2,
"share_of_spend_pct": 1.2,
"intensity_kg_per_usd": 0.5,
"category_avg_kg_per_usd": 0.5,
"intensity_vs_category_pct": 0,
"categories": [
"FOOTWEAR"
],
"default_factor_spend_pct": 0
}
],
"item_count": 802,
"transport": {
"by_mode": [
{
"mode": "ocean",
"lanes": 329,
"shipped_mass_kg": 180698.7,
"tonne_km": 0,
"estimated_kg_co2e": 0,
"share_of_transport_pct": 0
}
],
"lanes_total": 348,
"lanes_estimated": 1,
"lanes_unknown_mode": 18,
"lanes_without_distance": 329,
"lanes_without_mass": 0,
"lanes": [
{
"id": "72961b79-cd91-4ec3-910d-6763e1629a90",
"supplier": {
"id": "a391513a-fccd-4e8e-92d4-c2e88521e6d5",
"external_id": "SUP-IT-0044",
"name": "Conceria Modello S.p.A.",
"country": "IT"
},
"location": {
"id": "7ffeddbb-b3e9-4fb6-b7d7-3b7fc033d1b1",
"external_id": "1004",
"name": "Store 1004",
"country": "US"
},
"mode": "air",
"distance_km": 7200,
"transit_days_p50": 4,
"open_po_value": 0,
"cross_border": true,
"shipped_mass_kg": 2000,
"tonne_km": 14400,
"estimated_kg_co2e": 8640,
"estimated_cost_usd": 5040,
"basis": "estimated"
}
]
},
"mode_shifts": [
{
"key": "mode_shift:SUP-IT-0044>1004:air>ocean",
"supplier": {
"id": "a391513a-fccd-4e8e-92d4-c2e88521e6d5",
"external_id": "SUP-IT-0044",
"name": "Conceria Modello S.p.A.",
"country": "IT"
},
"location": {
"id": "7ffeddbb-b3e9-4fb6-b7d7-3b7fc033d1b1",
"external_id": "1004",
"name": "Store 1004",
"country": "US"
},
"from_mode": "air",
"to_mode": "ocean",
"alternative": "estimated",
"distance_km": 7200,
"shipped_mass_kg": 2000,
"kg_co2e_before": 8640,
"kg_co2e_after": 230.4,
"kg_co2e_saved": 8409.6,
"cost_before": 5040,
"cost_after": 144,
"cost_saved": 4896,
"transit_days_before": 4,
"transit_days_after": 15,
"transit_days_added": 11,
"priority": 69,
"reason": "Conceria Modello S.p.A. ships 2,000 kg to Store 1004 by air over 7,200 km. Moving it to ocean (modelled from the lane's distance) cuts a...",
"formula": "14400 t·km × (0.6 − 0.016) kgCO2e/t·km = 8410 kgCO2e saved; cost × (0.35 − 0.01) $/t·km",
"recommendation_id": null
}
],
"engagement": [
{
"external_id": "VEND-000001",
"name": "Ho Chi Minh Leather Works 0001",
"country": "PH",
"spend": 999016.4,
"estimated_kg_co2e": 494471.78,
"share_of_footprint_pct": 1.5,
"cumulative_share_pct": 1.5,
"passport_id": "2f4c21b8-40c2-4252-b669-ca8818fb3c1e"
}
],
"trend": {
"months": [
{
"month": "2025-12",
"spend": 0,
"estimated_kg_co2e": 0,
"by_category": {
"OUTERWEAR": 0,
"SMALL_LEATHER_GOODS": 0
}
}
],
"top_categories": [
"OUTERWEAR"
],
"lines_without_date": 7,
"spend_without_date": 1950
},
"coverage": {
"total_spend": 63938036.62,
"default_factor_spend": 23724118.17,
"default_factor_spend_pct": 37.1,
"uncategorised_items": 280,
"no_destination_lines": 9,
"no_destination_spend_pct": 0.1,
"no_date_lines": 7,
"no_date_spend_pct": 0,
"mass_from_item_weight_pct": 0,
"lanes_total": 348,
"lanes_unknown_mode": 18,
"lanes_without_distance": 329,
"lanes_without_mass": 0
},
"supplier_governance_flags": [
{
"supplier": "VEND-000001",
"name": "Ho Chi Minh Leather Works 0001",
"country": "Philippines",
"country_code": "PH",
"risk_level": "ELEVATED",
"sanctioned": false,
"fatf_status": "greylist",
"reasons": [
"FATF greylist"
],
"spend": 999016.4,
"share_of_footprint_pct": 1.5
}
],
"methodology": "Spend-based screening estimate: estimated kgCO2e = purchase spend x sector-average emission factor. Transport leg: shipped mass x lane distance x a tonne-km factor per mode. Suitable for hotspot identification and prioritization, not for reporting measured emissions. Replace with supplier-specific or activity-based data as it becomes available.",
"factors": {
"categories": [
{
"category": "FRAGRANCE",
"kg_per_usd": 0.42,
"source": "Screening default in the range of published sector averages (kgCO2e per USD, purchaser price): perfumes and toiletries"
}
],
"transport": [
{
"mode": "ocean",
"kg_co2e_per_tonne_km": 0.016,
"usd_per_tonne_km": 0.01,
"km_per_day": 800,
"fixed_days": 6,
"source": "Published default freight intensity, well-to-wheel, container vessel deep-sea; cost: indicative 2024 spot rates (order of magnitude); replace with contracted rates; transit: planning rule of thumb (cruise speed plus port, airport or terminal handling)"
}
],
"unit_mass": [
{
"category": "FRAGRANCE",
"kg_per_unit": 0.35,
"source": "Screening default per unit, packaged; the item's own weight (its weight_kg attribute) overrides it"
}
]
},
"duration_ms": 78
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Query Parameters
Response
OK