Filter contacts or companies


#1

Hi,
Is there any Api to filter contacts or companies based on a property value.
That is,If I want contacts where company is xyz and modified on 25-07-2018.

Thanks,
Swetha


#2

Hi @swetha.salaskar,

There is a contacts search endpoint which allows you to search by name, email, company name, and phone number:

And a company search endpoint that allows you to search by company domain:

https://developers.hubspot.com/docs/methods/companies/search_companies_by_domain

Other than these endpoints, it's not currently possible to filter contacts/companies based on properties. If you have access to the Lists tool, you could create an active list with the filters you want and request only those contacts, but this would not work for companies.