Approximate search of a contact


#1

Is it possible to search for contacts by name approximately? I meant, when you type something like "Andrii", on the main site it makes a request "/contacts/4060248/contacts/list/view/all?query=Andrii" and I got reply with a score

{id: "245604899", score: 5.6816273, resultType: "DEAL", label: "Andrii Yermolenko", description: null,…}
{id: "242517124", score: 0.8463263, resultType: "DEAL", label: "Andrei But", description: null,…}
{id: "303825067", score: 0.7169031, resultType: "DEAL", label: "Andrei Bondarenco", description: null,…}
{id: "297927268", score: 0.6955077, resultType: "DEAL", label: "Andrei Tsytsarkin", description: null,…}
{id: "244036701", score: 0.6685407, resultType: "DEAL", label: "Andrei Koriakovtsev",…}

You see? It can automatically search for AndrEi, when I made a typo in his name.
But how can I do the same with API? I didn't find something like that here https://developers.hubspot.com/docs/methods/contacts/search_contacts or https://developers.hubspot.com/docs/methods/contacts/get_contacts


#2

Hi @Pavel_Bragin,

It's not currently possible to run an approximate search; the in-app search is built on a different infrastructure than the Contacts Search API. I can totally see the use case for that, though; If you have the inclination, I would encourage you to check out the Ideas Forum on the HubSpot Community. There, you can create a post including your use case that product and other customers can see.