# Search a contact by e-mail

**URL:** <https://forum.mautic.org/t/search-a-contact-by-e-mail/7275>\
**Category:** Development\
**Created:** [January 24, 2017, 3:56am UTC](https://forum.mautic.org/t/search-a-contact-by-e-mail/7275 "2017-01-24T03:56:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![italoborges](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@italoborges](https://forum.mautic.org/u/italoborges)\
**Post date:** [January 24, 2017, 3:56am UTC](https://forum.mautic.org/t/search-a-contact-by-e-mail/7275/1 "2017-01-24T03:56:06Z")

</div>

Hello, is there any method to search for a contact by e-mail?  
  
  
  
I’m trying like this:

Code:

$contactApi-\>getList('email:'.$email);

  
The problem is, if I type just 'italo' for example, the API will give me all the e-mails that has 'italo', it's like a 'where' using %LIKE%.  
  
Thanks.

---

<div class="post-metadata">

**Author:** ![italoborges](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@italoborges](https://forum.mautic.org/u/italoborges)\
**Post date:** [January 24, 2017, 3:56am UTC](https://forum.mautic.org/t/search-a-contact-by-e-mail/7275/2 "2017-01-24T03:56:06Z")

</div>

Hello, is there any method to search for a contact by e-mail?

I’m trying like this:

```auto
$contactApi->getList('email:'.$email);
```

The problem is, if I type just ‘italo’ for example, the API will give me all the e-mails that has ‘italo’, it’s like a ‘where’ using %LIKE%.

Thanks.

---

<div class="post-metadata">

**Author:** ![italoborges](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@italoborges](https://forum.mautic.org/u/italoborges)\
**Post date:** [January 24, 2017, 4:13am UTC](https://forum.mautic.org/t/search-a-contact-by-e-mail/7275/3 "2017-01-24T04:13:11Z")

</div>

Looking around Mautic panel I found my answer:

[code]Search Operators:

- (plus sign) - Search for the exact string (i.e. if admin, then administrator will not match)  
! (exclamation mark) - Not equals string  
" " (double quotes) - Search by phrase  
( ) (parentheses) - Group expressions together.  
OR - By default the expressions will be joined as AND statements. Use the OR operator to change that.

Search commands  
is:anonymous  
is:unowned  
is:mine  
email:\*  
segment:{segment\_alias}  
name:\*  
company:\*  
owner:\*  
ip:\*  
ids:ID1,ID2 (comma separated IDs, no spaces)  
common:{segment\_alias} + {segment\_alias} + …[/code]
