# Extracting Contacts data via API

**URL:** <https://community.hubspot.com/t/extracting-contacts-data-via-api/57688>\
**Category:** APIs & Integrations\
**Created:** [May 25, 2022, 1:02pm UTC](https://community.hubspot.com/t/extracting-contacts-data-via-api/57688 "2022-05-25T13:02:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisterM](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@MisterM](https://community.hubspot.com/u/MisterM)\
**Post date:** [May 25, 2022, 1:02pm UTC](https://community.hubspot.com/t/extracting-contacts-data-via-api/57688/1 "2022-05-25T13:02:43Z")

</div>

Hi

We currently extract contacts data via API using Azure Data Factory - just delta changes.

However, due to batch limit of 100, the extract takes a long time (days) especially if we try an extract soon after a bulk update to most of the contacts, as we have in excess 300k contacts .  
Is there an alternative method available that we can use that is quicker?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 26, 2022, 1:43pm UTC](https://community.hubspot.com/t/extracting-contacts-data-via-api/57688/2 "2022-05-26T13:43:23Z")

</div>

[@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) , any thoughts on this pickle?

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [May 26, 2022, 8:39pm UTC](https://community.hubspot.com/t/extracting-contacts-data-via-api/57688/3 "2022-05-26T20:39:05Z")

</div>

Hi @MisterM

We’ve got a recursive function that walks batches of 100 Contacts (with a 150ms sleep to avoid throttling)… unfortunately there’s no real way to avoid it.

Can you use the [Get recently updated and created contacts](https://legacydocs.hubspot.com/docs/methods/contacts/get_recently_updated_contacts) endpoint? So you you’re only working on recently change Contacts?

Or, could you create an [App with a Webhook](https://legacydocs.hubspot.com/docs/methods/webhooks/webhooks-overview) that makes changes in real time as Contacts change?

Curiosly

Mike

p.s. thanks for the mention @dennisedson

---

<div class="post-metadata">

**Author:** ![MisterM](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@MisterM](https://community.hubspot.com/u/MisterM)\
**Post date:** [May 30, 2022, 7:44am UTC](https://community.hubspot.com/t/extracting-contacts-data-via-api/57688/4 "2022-05-30T07:44:16Z")

</div>

Hi [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259)

Thankyou for replying.

What sort of performance do you get from the function? Do you have a similar number of contacts? It would help to know if we can get the runtime from days down to hours or to possibly minutes to help us prioritise.  
Creating an Azure function is an option that we’re considering.  
The alternative API endpoint will definately help.
