The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

API Search by Custom Field

Highlighted
Member

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
Highlighted
Moderator

Re: API Search by Custom Field

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

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured