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”- Log in to your GoodAPI dashboard.
- Navigate to the Advanced section.
- Locate the Klaviyo subsection.
- 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.
Step 2: Create a Web Feed in Klaviyo
Section titled “Step 2: Create a Web Feed in Klaviyo”- Log in to your Klaviyo account.
- Go to Profile → Settings → Other → Web Feeds.
- 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| - 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.
- Open your desired email campaign or template.
- Insert the variable where you want your impact data to appear.
For example:
We’ve planted (
{{feeds.goodapi.total_trees_planted_merchant}}) trees 🌳 - 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.
- For plastic bottles, use
\{\{ feeds.goodapi.total_bottles_registered_merchant \}\}.
Step 4: Preview and Test Your Email
Section titled “Step 4: Preview and Test Your Email”- Click Preview & Test in Klaviyo.
- 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.
Step 5: Share Your Impact
Section titled “Step 5: Share Your Impact”Your Klaviyo emails now include real-time sustainability data from GoodAPI — share your positive impact directly with your customers.