Skip to main content
Solved

Improve your GET PROFILE API

  • January 14, 2025
  • 9 replies
  • 127 views

Devphoenix
Active Contributor II
Forum|alt.badge.img+3

Hi Team,

I hope you're doing well.

Could you please consider improving the GET Profile API? Currently, it does not provide the total number of profiles, which is a critical piece of information for many business use cases. Most CRM platforms include this feature, making it easier to retrieve the total count of items without additional computation.

At the moment, the endpoint https://a.klaviyo.com/api/profiles only provides pagination links, which isn't the most efficient solution for retrieving the total profile count.

Could you prioritize adding this enhancement? It is required for implementing business logic across various areas effectively.

Thank you for your attention to this matter!

Best answer by chloe.strange

@Devphoenix

Adding to this, I had reached out to our product team with this feedback - our pagination is based on cursors, and unlikely to change, however we are investigating ways to surface the underlying profile counts in ways that don't involve paginating through these APIs. 

Thank you again for sharing this - feedback is helpful to better vouch for prioritization.

~Chloe

View original

9 replies

KeviSunshine
Expert Problem Solver III
Forum|alt.badge.img+8
  • Expert Problem Solver III
  • 159 replies
  • January 14, 2025

Just want to say that I agree with this. Adding a total number of pages to the standard `links` response object for all paginated endpoints would be a good improvement!


Forum|alt.badge.img+7
  • Klaviyo Employee
  • 169 replies
  • January 14, 2025

The easiest way to do this right now would be to make a segment that contains all profiles — e.g. defined as, “email or phone number exists” — and then call Get Segment (https://developers.klaviyo.com/en/reference/get_segment).

The response includes a profile_count property.


Devphoenix
Active Contributor II
Forum|alt.badge.img+3
  • Author
  • Active Contributor II
  • 18 replies
  • January 15, 2025

Thanks for your response. However, don’t you think it would be more logical and aligned with business use cases to include the total profile count directly within the GET Profile API? Many other platforms like Google, HubSpot, Mailchimp, etc., provide this information as a primary feature without any second thoughts. Requesting a simple count shouldn’t be overly complex.

Creating a segment to achieve this functionality doesn’t seem practical, as not all users would prefer to create segments just to retrieve a count. If I only need the total profile count, creating a segment feels like an unnecessary step.

As Klaviyo is a platform designed to cater to diverse needs, I would expect this feature to be inherently available.

Thanks for considering this suggestion!


Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • January 15, 2025

I recommend implementing meaningful pagination links in the API navigation rather than using tokens. This enhancement will enable developers to easily navigate to a specific page number, streamlining the process of pagination.


Devphoenix
Active Contributor II
Forum|alt.badge.img+3
  • Author
  • Active Contributor II
  • 18 replies
  • January 17, 2025

Pagination is an area that needs improvement, but having a count is a must-have feature. Team, please plan this enhancement. The product team should consider this as it’s essential for other business requirements.


Devphoenix
Active Contributor II
Forum|alt.badge.img+3
  • Author
  • Active Contributor II
  • 18 replies
  • February 5, 2025

Hi Team,

Is there any update on this? As per the business logic, this is a crucial requirement. You may also refer to other platforms for validation.

Looking forward to your response.

Thanks!


Byrne C
Community Manager
Forum|alt.badge.img+14
  • Community Manager
  • 98 replies
  • February 12, 2025

Hi ​@Devphoenix,

I see how having this feature would be super useful, and would cut down on extra steps/time to find this info. I’ll reach out to our product team and recommend that they implement this feature, so it’s more likely this gets developed in the future. 

I unfortunately won’t be able to provide a timeline or guarantee regarding this feature’s release, but I’ll definitely stress it’s importance to our team that designs the product.

-Byrne


chloe.strange
Community Manager
Forum|alt.badge.img+42
  • Community Manager
  • 433 replies
  • Answer
  • February 13, 2025

@Devphoenix

Adding to this, I had reached out to our product team with this feedback - our pagination is based on cursors, and unlikely to change, however we are investigating ways to surface the underlying profile counts in ways that don't involve paginating through these APIs. 

Thank you again for sharing this - feedback is helpful to better vouch for prioritization.

~Chloe


Devphoenix
Active Contributor II
Forum|alt.badge.img+3
  • Author
  • Active Contributor II
  • 18 replies
  • February 14, 2025

Hi @chole.strange.

Please let me know asap

Thank you.