APIs & Integrations

prasad
Member

Query by more than one parameters

I am using search for contact api for to get the desired contact. But according to customer requirement, I want to get contacts satisfying two or more query parameters.
In short, I expect a person having name ABC and he/she working in PQR company. OR
a person with first name ABC and last name XYZ. Can I do it? How do I write the query?
Consider different use case and let me expected query. TIA

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Query by more than one parameters

Hi @Prasad_Satalkar,

It’s not currently possible to include multiple search terms in requests to the ‘Search for contact’ endpoint. If you need to get contacts that meet multiple criteria, you can use the Contact Lists API to create smart lists that include all of your parameters:

0 Upvotes