# MQL to Customer conversion rates via API?

**URL:** <https://community.hubspot.com/t/mql-to-customer-conversion-rates-via-api/11443>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [December 3, 2018, 9:36pm UTC](https://community.hubspot.com/t/mql-to-customer-conversion-rates-via-api/11443 "2018-12-03T21:36:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark1/32/59606_2.png) [@Mark1](https://community.hubspot.com/u/Mark1)\
**Post date:** [December 3, 2018, 9:36pm UTC](https://community.hubspot.com/t/mql-to-customer-conversion-rates-via-api/11443/1 "2018-12-03T21:36:09Z")

</div>

I’d like to be able to extract the number of MQL’s that converted to a Customer (or any other lifecycle stage) in a particular time frame. I can’t see any API’s that facilitate this. Any ideas on how to achieve this? There are 2 API’s that give me the number of MQL’s and Customers separately but I’m after logic that requires a contact was an MQL and then went on to become a customer.

i.e. Out of 4200 MQL’s, 527 of them went on to become a customer at a conversion rate of 12% in the month of October

1. [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/contacts/get-lifecycle-stage-metrics-for-contacts)
2. [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/analytics/get-analytics-data-breakdowns)

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 4, 2018, 4:40pm UTC](https://community.hubspot.com/t/mql-to-customer-conversion-rates-via-api/11443/2 "2018-12-04T16:40:47Z")

</div>

Hi [@Markl](https://community.hubspot.com/u/markl), There isn’t a way to do this out of the box, but you can use the Contacts API with the `property` and `propertyMode` parameters included (example: [https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=hapikey&property=lifecyclestage&propertyMode=value\_and\_history&count=100](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=hapikey&property=lifecyclestage&propertyMode=value_and_history&count=100)) to loop through all contacts, grab only the contacts that have a value of MQL, then grab only the contacts that have both a value of MQL **and** Customer (means they converted at some point), then make that calculation on your own.

Looping though all contacts might be a bit much, but you could try doing the same thing but with the [Get contacts in a list endpoint](https://developers.hubspot.com/docs/methods/lists/get_list_contacts), you’d just need to create the List in HubSpot first if you have access to that tool.

---

<div class="post-metadata">

**Author:** ![Mark1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark1/32/59606_2.png) [@Mark1](https://community.hubspot.com/u/Mark1)\
**Post date:** [December 4, 2018, 6:22pm UTC](https://community.hubspot.com/t/mql-to-customer-conversion-rates-via-api/11443/3 "2018-12-04T18:22:55Z")

</div>

Ok, thanks for the confirmation and work around. I would have thought HubSpot would have catered for this considering this is one of the main drivers for using HubSpot i.e. lifecycle and conversions.
