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.

Not able to add more than 50 contacts

rajanikanth05
Occasional Participant

Not able to add more than 50 contacts

 Hello,


  When I am trying to export hundreds of contacts to the api, it is only exporting 50 contacts. Please help me how to export all contacts.


 


Thanks

3 REPLIES 3
bsoder
Employee

Hello,



Our API system is designed so that it always returns the first 50 items when performing a GET call. In order to receive the next 50 items, you need to page through all the remaining pages by constructing the URI for the next page using the value in <link> element with attribute rel="next".



If you have any questions about this, please let me know.



Regards,

Benjamin Soder
NOC Analyst
Constant Contact
rajanikanth05
Occasional Participant

 Thanks for your reply Ben. I am not getting contacts from constant contacts but trying to add contacts. Can you please tell me how to handle adding morethan 50 contacts at a time?


 


Thanks.

David_J
Employee

The contacts collection can be used to add a single contact, but if you are looking to add approximately 25+ contacts, you would want to use a bulk add/import functionality. This will allow you to add up to 20,000 contacts at a time using an application/x-www-urlencoded request or a multipart/form-data request.  I hope this helps. Please let us know if you have any other questions or concerns regarding this issue. Thanks.

David J

Developer Portal

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

Visit Page