# Need Api to get only latest contact logs

**URL:** https://forum.mautic.org/t/need-api-to-get-only-latest-contact-logs/12068
**Category:** Product Support
**Tags:** community, discussion
**Created:** [December 18, 2019, 12:14pm UTC](https://forum.mautic.org/t/need-api-to-get-only-latest-contact-logs/12068 "2019-12-18T12:14:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gbenhorin1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gbenhorin1/32/935_2.png) [@gbenhorin1](https://forum.mautic.org/u/gbenhorin1)
#### Post date: [December 18, 2019, 12:14pm UTC](https://forum.mautic.org/t/need-api-to-get-only-latest-contact-logs/12068/1 "2019-12-18T12:14:34Z")

</div>

Hello team Mautic,

Need your help on an issue, first of all I wanna tell that I have more than 1,00,000 records/contacts in mautic. And my main requirement is that I want to get the event logs of the contacts. As I have many records so please tell me, how can I get latest event logs of these contacts.

Is there any api to get this?

Right now, I am fetching records in loop of 100 records each using cron job, but it takes too much time(5 days) to complete.  
Please give some better solution than this so that it makes my work easy.

I am waiting for your valuable response on this. Hope you will revert me as soon as possible.

Thanks

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 25, 2021, 8:52pm UTC](https://forum.mautic.org/t/need-api-to-get-only-latest-contact-logs/12068/2 "2021-01-25T20:52:48Z")

</div>


