Using DitchCarbon with Zapier

At DitchCarbon, we’re making it possible to use carbon data with any application, and that includes Zapier!

Follow the guide below if you want to calculate the carbon footprint for following types of inbound Zapier data:

  1. Spend at a company
  2. Products
  3. Companies

1. The carbon footprint of spend at a company

Say you’ve connected your accounting software as the Trigger to one of your Zaps and you get inbound data whenever a new expense is created. The inbound data contains:

  1. The company name
  2. The total spend

To find the carbon footprint (in kilograms of CO2-equivalent emissions), choose the “Custom Request in Webhooks by Zapier” Action.

On the “App & event” section, choose “Custom Request” on the “Event” dropdown. Click “Continue”.

On the “Action” section, choose:

  • “GET” for the “Method” dropdown
  • “https://api.ditchcarbon.com/v1.0/calculate” for the “URL” dropdown
  • “False” for the “Data Pass-Through” dropdown
  • “Yes” for the “Unflatten” dropdown

Then, insert the following into the “Data” field:

{“supplier”:,”amount”:}

Place your cursor after the colon following “supplier”. An “Insert Data” dropdown should automatically open. Select the field of data from the Trigger of the Zap that represents the company name of your expense.

Repeat this process for the “amount” field, selecting the field of data from the Trigger of the Zap that represents the total spend of your expense.

Next, pay attention to the “Headers” section. You’ll need to create two:

  1. Key: “Authorization”, Value: “Bearer ”
  2. Key: “Content-Type”, Value: “application/json”

Replace with your DitchCarbon API token, which you should be able to access from your account dashboard. Leave the other fields untouched.

Once you press “Continue”, Zapier gives you the chance to test the Action. Press “Test Action” to have Zapier send an API request to our database containing a company name and your total spend at this company. You’ll see the carbon footprint (in kilograms of CO2-equivalent emissions) appear as the result.

That’s it, you’re all done!

Of course, you can specify more options alongside the company and your spend when you configure the Action. If you’re dealing with more than one currency, for example, change the value of the “Data” field to the following:

{“supplier”:,”amount”:,”amount_currency”:}

Then, as aforementioned, click through each field and select the appropriate data source from the “Insert Data” dropdown that should automatically open.

For a full list of options for this API endpoint, visit https://docs.ditchcarbon.com/reference/runcalculation.

In sustainable procurement, numbers matter.

Give customers the emissions data they’re looking for.
Try DitchCarbon for free.


Get a free API key

2. The carbon footprint of a product I’ve bought or am buying

Say you’ve connected your ToDo list app as a Trigger to one of your Zaps and you get inbound data whenever a new item is added to your “To-Buy” list. The inbound data contains:

  1. A manufacturer name
  2. A product name

To find the carbon footprint if a purchase was made (in kilograms of CO2-equivalent emissions), choose the “Custom Request in Webhooks by Zapier” Action.

On the “App & event” section, choose “Custom Request” on the “Event” dropdown. Click “Continue”.

On the “Action” section, choose:

  • “GET” for the “Method” dropdown
  • “https://api.ditchcarbon.com/v1.0/product” for the “URL” dropdown
  • “False” for the “Data Pass-Through” dropdown
  • “Yes” for the “Unflatten” dropdown

Then, insert the following into the “Data” field:

{“manufacturer”:,”name”:}

Place your cursor after the colon following “manufacturer”. An “Insert Data” dropdown should automatically open. Select the field of data from the Trigger of the Zap that represents the manufacturer name of your “To-Buy” list item.

Repeat this process for the “name” field, selecting the field of data from the Trigger of the Zap that represents the product name of your “To-Buy” list item.

Next, pay attention to the “Headers” section. You’ll need to create two:

  1. Key: “Authorization”, Value: “Bearer ”
  2. Key: “Content-Type”, Value: “application/json”

Replace with your DitchCarbon API token, which you should be able to access from your account dashboard. Leave the other fields untouched.

Once you press “Continue”, Zapier gives you the chance to test the Action. Press “Test Action” to have Zapier send an API request to our database containing the manufacturer and product name. You’ll see the carbon footprint (in kilograms of CO2-equivalent emissions) appear as the result.

That’s it, you’re all done!

Of course, you can specify more options alongside the manufacturer and product name when you configure the Action. If you want to specify how many months the product would be used for, for example, change the value of the “Data” field to the following:

{“manufacturer”:,”name”:,”months”}

Then, as aforementioned, click through each field and select the appropriate data source from the “Insert Data” dropdown that should automatically open.

For a full list of options for this API endpoint, visit https://docs.ditchcarbon.com/reference/lookupproduct.

3. The carbon footprint per ÂŁ1 spent at a company

Say you’ve connected your accounting software as the Trigger to one of your Zaps and you get inbound data whenever a new company is added as a supplier. The inbound data contains:

  1. A company name

To find the carbon footprint (in kilograms of CO2-equivalent emissions) created by this company for every £1 spent, choose the “Custom Request in Webhooks by Zapier” Action.

On the “App & event” section, choose “Custom Request” on the “Event” dropdown. Click “Continue”.

On the “Action” section, choose:

  • “GET” for the “Method” dropdown
  • “https://api.ditchcarbon.com/v1.0/supplier” for the “URL” dropdown
  • “False” for the “Data Pass-Through” dropdown
  • “Yes” for the “Unflatten” dropdown

Then, insert the following into the “Data” field:

{“name”:}

Place your cursor after the colon following “name”. An “Insert Data” dropdown should automatically open. Select the field of data from the Trigger of the Zap that represents the company name of your supplier item.

Next, pay attention to the “Headers” section. You’ll need to create two:

  1. Key: “Authorization”, Value: “Bearer ”
  2. Key: “Content-Type”, Value: “application/json”

Replace with your DitchCarbon API token, which you should be able to access from your account dashboard. Leave the other fields untouched.

Once you press “Continue”, Zapier gives you the chance to test the Action. Press “Test Action” to have Zapier send an API request to our database containing the company name. You’ll see the carbon footprint (in kilograms of CO2-equivalent emissions) per £1 spent appear as the result.

That’s it, you’re all done!

Of course, you can specify more options alongside the company name when you configure the Action. If you’re dealing with more than one currency, for example, change the value of the “Data” field to the following:

{“name”:,”currency”:}

Then, as aforementioned, click through each field and select the appropriate data source from the “Insert Data” dropdown that should automatically open.

For a full list of options for this API endpoint, visit https://docs.ditchcarbon.com/reference/lookupsupplier.

Get total coverage of your supply chain​

Reduce emissions with actionable insights on all your suppliers, embedded seamlessly into your procurement stack

Get the emissions intelligence you need, no surveys required​

Scope 3 emissions insight on every supplier, integrated in the tools you already use. Accurate, reliable and actionable.