Skip to main content
September 5, 2018
Question

Rest API: Is there an API endpoint to get all Leads who are members of a campaign?

  • September 5, 2018
  • 2 replies
  • 1917 views

I would like to be able to get all the leads that are members of a specific campaign.

I found endpoints to get leads from static list and program, but not from campaign.

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SanfordWhiteman
Level 10
September 5, 2018

You could use the Smart List extract endpoint, but if performance and simplicity are important, I wouldn't advise going there.

As far as I know, there's no granular /campaignMembers.json type of ep.

September 5, 2018

Hi Sanford,

To use Smart List extract endpoint I need Smart List Id.  How can I get it from Campaign using API?

Regards,

SanfordWhiteman
Level 10
September 6, 2018

I meant you can create a new Smart List (so you'd know its ID) that filters on Member of Campaign.

Don't think there's a more automated way at this time, unless I've missed something.

It's too bad, because getting the contents of the Campaign Members tab would seemingly be a more direct indexed lookup in the database and wouldn't take all the overhead of computing a Smart List... if we could do it!

September 5, 2018

Hi Sanford,

To use Smart List extract endpoint I need Smart List Id.  How can I get it from Campaign using API?

Regards,