Skip to main content

Get Profiles not returning lists


Forum|alt.badge.img+2

Hello,
/api/profiles?filter=equals(email,"johnsmith@domain.com")
api does not return lists hes been on 
Is there any problem ?

 

Did this topic or the replies in the thread help you find an answer to your question?

2 replies

chloe.strange
Community Manager
Forum|alt.badge.img+41
  • Community Manager
  • 429 replies
  • March 27, 2023

Hi @developer

Thanks for being a part of our community! In this situation, with the link that is provided, you’ll want to use a get request to the link - request the result at that URL (relationships.lists.links.self). I hope this helps!

~Chloe


Forum|alt.badge.img+2
  • Contributor III
  • 6 replies
  • November 27, 2023

Would it be possible to add the lists to the profile? Perhaps as additional-fields, requested by the user?

Imagine a scenario when we need to pull 1M profiles, but only keep only those in a specific list. Currently, the only way to do it is:

  • Pull profiles (paginated, bulk pull)
  • Then for each profile, get lists. Filter out those profiles we don’t want and keep only those we want

The problem with this is that we’d have to make X paginated calls (this is OK) and then 1M requests, one per profile, not ideal, this is very slow.

If we could include the lists in the profile, we wouldn’t have to make those 1M extra calls, but only check the lists in the response returned by the get-profiles call.