When I search for one email address using the below syntax I get back the email entry.
When I search adding additional email addresses I get no entries only the outer wrapper <feed> like I do with a single email search minus the <entry>
Using the below does not work. (sample below is not url encoded)
I am encoding the email addesses and verifying it is lower case.
If I send no email I get all the entries with next chunk, etc. Just when I search for more than one email it returns nothing.
The search by email address function does not accept a secondary parameter and if no parameter is passed it will act as if you just used .../contacts. That is why you are getting all the contacts and the next links.
Please let me know if this helps.
The doc page was a little misleading as it says you could search for multiple emails by using
If a contact with that email exists, the query will return the contact's <entry>, the same way it would be returned when you query the contacts collection. In order to get the contact details, you need to query the contact resource itself. If no Contact with that email address exists, the API will return either a 500 error (Server Error) code or will return an empty feed (i.e. a feed with no entries).
You can find multiple contacts with a single query by simply adding additional parameters:
If this is not the case is there any way yo search for multiple email addresses in a single query?
If I have 50 to createI would like to know if they exisit or not before creatiing them without having to make 50 calls to search.
You are correct, the API does support searching for up to 50 exact search email searches per GET request with these parameters. I did confirm this is working against my account and you have the correct format. Please be aware, the email addresses must be URL encoded in order for the search to work correctly.
Not sure what to try anymore
and this works
But not this
Would it be possible for you to reproduce this using a RESTClient, save the request and then send the request to our email support at email@example.com? If we can reproduce the error you're seeing, we can look into what isn't working for you.