---
title: "Group membership API (Advanced KDP)"
canonical_url: "https://help.klaviyo.com/hc/en-us/sections/49375670819099"
markdown_url: "https://help.klaviyo.com/hc/en-us/sections/49375670819099.md"
locale: "en-us"
type: "section"
category: "Advanced KDP & Personalization"
category_url: "https://help.klaviyo.com/hc/en-us/categories/18073014919195.md"
---

# Group membership API (Advanced KDP)

- [How to personalize onsite content with Klaviyo’s group membership API](https://help.klaviyo.com/hc/en-us/articles/17760675787419.md): Learn how to use the klaviyo JavaScript object’s getGroupMembership method, which can be used to implement onsite personalization on your website. This requires loading the klaviyo object and passing an array of lists or segments to check, which will return an output that you can leverage for onsite personalization.
