APIs & Integrations

SSundar1
Member

get total count of contacts based on lifecyclestages in hubspot api

Hi 

i have been using the "Get Lifecycle Stage metrics for Contacts(v1)" api endpoint to get the total number of contacts at each lifecycle. But recently I Modified and also deleted some default lifecycles and added new ones and doing so my api stops sendng me correct data as well as the updated lifecycles are not being sent via api
so my doubt is how can i get the same feature (Get Lifecycle Stage metrics for Contacts v1) with the new api version v3
0 Upvotes
3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

get total count of contacts based on lifecyclestages in hubspot api

@SSundar1 ,

How did you edit the lifecycle stage property?  You shouldn't be able to update that.

Property_settings.png

There is not an equivalent to that endpoint, yet, but CRM Search should do the job with multiple calls

You will need to make a call for each lifecycle stage.  Example:

{
    "filterGroups":[
      {
        "filters":[
          {
            "propertyName": "lifecyclestage",
            "operator": "EQ",
            "value": "subscriber"
          }
        ]
      }
    ]
  }
0 Upvotes
SSundar1
Member

get total count of contacts based on lifecyclestages in hubspot api

Hi @dennisedson , I have edited the stages here

SSundar1_0-1652156800940.png

 

 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

get total count of contacts based on lifecyclestages in hubspot api

Ah!  Totally forgot about this!  Let me do some testing and get back to you!

0 Upvotes