post https://a.klaviyo.com/api/segment-values-reports
Returns the requested segment analytics values data.
Rate limits:
Burst: 1/s
Steady: 2/m
Daily: 225/d
Scopes:
segments:read
Responses
Returns the requested segment analytics values data.
Rate limits:
Burst: 1/s
Steady: 2/m
Daily: 225/d
Scopes:
segments:read
xxxxxxxxxx
18curl --request POST \
--url https://a.klaviyo.com/api/segment-values-reports \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/vnd.api+json' \
--header 'content-type: application/vnd.api+json' \
--header 'revision: 2025-01-15' \
--data '
{
"data": {
"type": "segment-values-report",
"attributes": {
"timeframe": {
"key": "last_12_months"
}
}
}
}
'
xxxxxxxxxx
27}
{
"data": {
"type": "segment-values-report",
"attributes": {
"results": [
{
"groupings": {
"segment_id": "abc123"
},
"statistics": {
"total_members": 120,
"net_members_changed": 53
}
},
{
"groupings": {
"segment_id": "def123"
},
"statistics": {
"total_members": 250,
"net_members_changed": 113
}