We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

API Search by Custom Field

BrettW2
Participant

API Search by Custom Field

Hello,

I want to do an API search for a contact using  the custom field 1.  Currently I use the following call to search for a contact using their email address:

https://api.constantcontact.com/ws/customers/{username}/contacts?email={email-address}

so thinking by just replacing 'email' with 'custom_field_1' the call would seach the custom field 1.  That happens not to be the case.  I do get a reponse back with a record but it's not the record that I was looking for.  Any help or suggestions would be great.

 

Thank you

1 REPLY 1
Nick_G
Moderator

Hey Brett,

 

Our API search function currently only works with email and last updated date. Right now, anything further than that would require a custom script to parse and search through all the results of a GET to each contact. I understand how this function could be useful, so I'll be sure to bring this up to the development team as an idea to implement.

Nick Galbraith
Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page