Skip to content

How to Integrate GoodAPI with Klaviyo

Connect your GoodAPI account to Klaviyo to surface your brand’s environmental impact — trees planted, plastic removed — directly inside your Klaviyo email campaigns.

Watch the video below or follow the step-by-step instructions to start sharing your impact automatically.

How to integrate GoodAPI with Klaviyo

Step 1: Access the Klaviyo Setup in GoodAPI

Section titled “Step 1: Access the Klaviyo Setup in GoodAPI”
  1. Log in to your GoodAPI dashboard.
  2. Navigate to the Advanced section.
  3. Locate the Klaviyo subsection.
  4. Click Setup Instructions to open the integration guide. You’ll see a feed URL provided by GoodAPI — this is what Klaviyo will use to pull your environmental impact data.
  1. Log in to your Klaviyo account.
  2. Go to Profile → Settings → Other → Web Feeds.
  3. Click Add Web Feed. Then fill in the following details: | Field | Value | | ---- | ---- | | Feed Name | GoodAPI | | Feed URL | Copy from your GoodAPI setup screen | | Request Type | GET | | Feed Format | JSON |
  4. Click Add Web Feed to save.

Step 3: Add GoodAPI Data to Your Email Templates

Section titled “Step 3: Add GoodAPI Data to Your Email Templates”

Now that your feed is set up, you can access the data in any Klaviyo campaign or template.

  1. Open your desired email campaign or template.
  2. Insert the variable where you want your impact data to appear. For example: We’ve planted ({{feeds.goodapi.total_trees_planted_merchant}}) trees 🌳
  3. To confirm your variable works, return to the GoodAPI app and compare the Feed URL you copied to the one listed there — they should match.
  4. For plastic bottles, use \{\{ feeds.goodapi.total_bottles_registered_merchant \}\}.
  1. Click Preview & Test in Klaviyo.
  2. When the email renders, your variable ({{ feeds.goodapi.total_trees_planted }}) will automatically be replaced with the live total from GoodAPI. Example preview:

We’ve planted 12,345 trees 🌳 with GoodAPI.

Your Klaviyo emails now include real-time sustainability data from GoodAPI — share your positive impact directly with your customers.