contact search by hs_additional_emails doesn't find any contacts

Hello,

the request:

{

"limit": 100,

"properties": \["hubspot\_owner\_id","address","zip","city","country","website","ansprechpartner\_id","salutation","email","hs\_additional\_emails","fax","mobilephone","phone","firstname","lastname","c\_entron\_kundennummer","c\_entron\_export"],

"after":0,

"filterGroups":

\[

    {

        "filters":

        \[

            {

                "propertyName": "email",

                "operator": "EQ",

                "value": "p.ketterle@haverboecker.com"

            }

        ]

    },

    {

        "filters":

        \[

            {

                "propertyName": "hs\_additional\_emails",

                "operator": "IN",

                "values": \["p.ketterle@haverboecker.com"]

            }

        ]

    }

]

}

get back

{

"total": 0,

"results": \[]

}

for the contact with the data:

{

"total": 1,

"results": \[

    {

        "id": "125118975904",

        "properties": {

            "address": "Robert-Bosch-Straße 6",

            "ansprechpartner\_id": "22791",

            "c\_entron\_export": null,

            "c\_entron\_kundennummer": "17172",

            "city": "Münster",

            "country": "Deutschland",

            "createdate": "2021-06-24T12:37:53.571Z",

            "email": "p.ketterle@quat2ro.com",

            "fax": null,

            "firstname": "Peer",

            "hs\_additional\_emails": "p.ketterle@haverboecker.com",

            "hs\_object\_id": "125118975904",

            "hubspot\_owner\_id": "80036859",

            "lastmodifieddate": "2025-09-04T08:05:51.449Z",

            "lastname": "Ketterle",

            "mobilephone": "1722102912",

            "phone": "252230783",

            "salutation": "Herr",

            "website": "http://www.quat2ro.com",

            "zip": "48153"

        },

        "createdAt": "2021-06-24T12:37:53.571Z",

        "updatedAt": "2025-09-04T08:05:51.449Z",

        "archived": false

    }

]

}

Hello, Here is a basic .js file that might work for your issue:

const express = require(“express”);

const axios = require(“axios”);

const app = express();

app.use(express.json());

// Replace with your HubSpot Private App Access Token

const HUBSPOT_TOKEN = “PRIVATE_TOKEN”;

// HubSpot CRM Search endpoint

const HUBSPOT_SEARCH_URL =

“https://api.hubapi.com/crm/v3/objects/contacts/search”;

app.get(“/search-contact”, async (req, res) => {

try {

const query = {

limit: 100,

properties: [

“hubspot_owner_id”,

“email”,

“firstname”,

“lastname”

],

filterGroups: [

{

filters: [

{

propertyName: “email”,

operator: “EQ”,

value: “test@testing.com”

}

]

},

{

filters: [

{

propertyName: “hs_additional_emails”,

operator: “EQ”, // Use EQ, not IN (hs_additional_emails is stored as comma-separated string)

value: “test@test.com”

}

]

}

]

};

const response = await axios.post(HUBSPOT_SEARCH_URL, query, {

headers: {

Authorization: `Bearer ${HUBSPOT_TOKEN}`,

“Content-Type”: “application/json”

}

});

res.json(response.data);

} catch (err) {

console.error(err.response?.data || err.message);

res.status(500).json({ error: err.response?.data || err.message });

}

});

const PORT = 3000;

app.listen(PORT, () => {

console.log(`Server listening on http://localhost:${PORT}`);

});
You will want to store the token in an environment variable once you are in production, but this will allow for you to search and filter based on the email and additional email. Here is the example response I got from running this on a test portal:
{“total”:1,“results”:[{“id”:“240211897031”,“properties”:{“createdate":“2025-09-10T13:24:21.326Z”,“email”:"test@testing.com”,“firstname”:“test”,“hs_object_id”:“240211897031”,“hubspot_owner_id”:“79762907”,“lastmodifieddate”:“2025-09-10T13:25:44.664Z”,“lastname”:“Contact”},“createdAt”:“2025-09-10T13:24:21.326Z”,“updatedAt”:“2025-09-10T13:25:44.664Z”,“archived”:false}]}

Let me know if this helps, or if you have any other questions!


:check_mark: Was I able to help answer your question? Help the community by marking it as a solution.

Brandon Woodruff
Senior Software Developer @ PearagonStill have questions? Reach out at brandon@pearagon.com

it doesn’t work either with EQ or IN

Did you test using my example? I tested my example and it worked in a test portal.

I would suggest confirming the following:
- all of the properties you are requesting exist on the contact object, and are spelled correctly

- that a contact has both their email and additional email as p.ketterle@haverboecker.com

- That the app scopes include crm.contact.read

Let me know if any of those are off, or if we need to dive into it further.

the contact doesn’t need to habe the same email in the fields email and hs_additional_emails. Read my original post carefully. And yes - the app has the scope crm.contact.read.

Hey, @nina_pashinina :waving_hand: Please note that folks like @BrandonWoodruff are community members and volunteers. Even if he misunderstood your question, we all try to respond in a friendly and kind way to each other.

Let me know if the approach I suggested in my other reply works for you. Talk soon! — Jaycee

it doesn’t work, thanks

Hey, @nina_pashinina :waving_hand: Have you tried using `CONTAINS_TOKEN` for your second filter? I sent a request using Postman and used your request body with a few small changes, and it returned the expected response.

Request

{
 "limit": 100,
 "properties": [
 "hubspot_owner_id",
 "address",
 "zip",
 "city",
 "country",
 "website",
 "ansprechpartner_id",
 "salutation",
 "email",
 "hs_additional_emails",
 "fax",
 "mobilephone",
 "phone",
 "firstname",
 "lastname"
 ],
 "after": 0,
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "email",
 "operator": "EQ",
 "value": "bob@bobsburgers.com"
 }
 ]
 },
 {
 "filters": [
 {
 "propertyName": "hs_additional_emails",
 "operator": "CONTAINS_TOKEN",
 "value": "bobbobbob3@bobsburgers.com"
 }
 ]
 }
 ]
}

Response

{
 "total": 1,
 "results": [
 {
 "id": "901",
 "properties": {
 "address": null,
 "city": null,
 "country": null,
 "createdate": "2022-11-03T21:42:31.255Z",
 "email": "bob@bobsburgers.com",
 "fax": null,
 "firstname": "Bob",
 "hs_additional_emails": "bobbobbob3@bobsburgers.com;bobbobbob@bobsburgers.com;bobbobbob2@bobsburgers.com;bob2@bobsburgers.com",
 "hs_object_id": "901",
 "hubspot_owner_id": null,
 "lastmodifieddate": "2025-07-25T14:01:20.127Z",
 "lastname": "Belcher",
 "mobilephone": null,
 "phone": "505-555-2323",
 "salutation": null,
 "website": null,
 "zip": "87106"
 },
 "createdAt": "2022-11-03T21:42:31.255Z",
 "updatedAt": "2025-07-25T14:01:20.127Z",
 "archived": false
 }
 ]
}

Talk soon! — Jaycee

This issue just started for me today. Seaching for hs_additional_emails on /crm/v3/objects/contacts/search no longer returns results for confirmed contacts with an email in this field. Anyone have any other ideas for a work around?

{
 "properties": [
 "firstname",
 "lastname",
 "company",
 "email",
 "hs_additional_emails"
 ],
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "hs_additional_emails",
 "operator": "EQ",
 "value": "test123@test123.com"
 }
 ]
 }
 ]
}

@nina_pashinina, You may want to try to use the “CONTAINS_TOKEN” operator again. I tested it last week with no results but I re-ran the same API call today and it’s returning the correct result now.

"operator": "CONTAINS_TOKEN"

It doesn’t work for me either, but my case is somewhat different: if a contact has multiple additional emails, the `get` API returns `hs_additional_emails: “hello@gmail.com;world@gmail.com”` (emails separated by a semicolon).

If I search for contacts that have `hello@gmail.com`, nothing works for me. Not `IN`, not `EQ`, and not `CONTAINS_TOKEN`, so I’m kind of stuck here. Any ideas?

Hey @oshaked - thanks for posting in the Community!
To ensure we can find you the best resources to solving your inquiry, would you mind creating a new thread? I don’t want your conversation to get lost amongst an already-solved issue. From there, we can tag in some experts for assistance with this!
Shane, Community Manager

Hey Shane, the issue was NOT solved.