Getting delete contacts from API

Hi, there,

I’m trying to figure out why I’m not seeing delete/archived records return from API, I’m using GitHub - HubSpot/hubspot-api-nodejs: HubSpot API NodeJS Client Libraries for V3 version of the API · GitHub, and doSearch capability,

The use case is, I need to pick up delete contact for example, and then sync and delete those from our system. Is it possible using the `doSearch` capability?

If not, could you recommend couple alternative solutions?

Thanks!

Hello @wuyue15

Wondering if @quentin_lamamy or @louischausse might be able to help here!

Hello,

I think this maybe your solution: https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/td-p/288316#:~:text=Currently%2C%20it%20is%20not%20possible,on%20the%20contact%20object%20ID.

Don’t forget to mark my reply as a solution if you are satisfied. If not, do not hesitate to ask me anything!