# Search endpoint returning empty arrary for emails containing underscore

**URL:** <https://community.hubspot.com/t/search-endpoint-returning-empty-arrary-for-emails-containing-underscore/98560>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [January 24, 2024, 2:52pm UTC](https://community.hubspot.com/t/search-endpoint-returning-empty-arrary-for-emails-containing-underscore/98560 "2024-01-24T14:52:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FIntegration](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@FIntegration](https://community.hubspot.com/u/FIntegration)\
**Post date:** [January 24, 2024, 2:52pm UTC](https://community.hubspot.com/t/search-endpoint-returning-empty-arrary-for-emails-containing-underscore/98560/1 "2024-01-24T14:52:17Z")

</div>

I’m using the search endpoint /crm/v3/objects/contacts/search to fetch contact data but noticed it returns an empty array if the email (query param) contains an underscore. For example, [abc@gmail.com](mailto:abc@gmail.com) will return a result but fail for [ab\_c@gmail.com](mailto:ab_c@gmail.com) even when both contacts exist in my account.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 24, 2024, 10:10pm UTC](https://community.hubspot.com/t/search-endpoint-returning-empty-arrary-for-emails-containing-underscore/98560/2 "2024-01-24T22:10:44Z")

</div>

Hey, @FIntegration Can you share an example request, please? This will make reproducing the issue and getting additional assistance, if needed, quicker.

Thanks! — Jaycee
