# Get contacts by campaign ID -- REST API

**URL:** <https://integration.keap.com/t/get-contacts-by-campaign-id-rest-api/7973>\
**Category:** API Q&A\
**Created:** [July 31, 2017, 7:12pm UTC](https://integration.keap.com/t/get-contacts-by-campaign-id-rest-api/7973 "2017-07-31T19:12:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach\_stradling](https://avatars.discourse-cdn.com/v4/letter/z/e79b87/32.png) [@zach\_stradling](https://integration.keap.com/u/zach_stradling)\
**Post date:** [July 31, 2017, 7:12pm UTC](https://integration.keap.com/t/get-contacts-by-campaign-id-rest-api/7973/1 "2017-07-31T19:12:15Z")

</div>

I am using ruby on rails, and am able to get a list of all contacts and a list of all campaigns via the rest api, but I can’t seem to find away to associate one with the other. Is there a way to query all contacts based on a campaign ID?

For example, the URL might look something like this:

> [https://api.infusionsoft.com/crm/rest/v1/campaigns/1029/contacts?&access\_token=XXXXXXX](https://api.infusionsoft.com/crm/rest/v1/campaigns/1029/contacts?&access_token=XXXXXXX)

Any help would be appreciated, please let me know if additional information or context is needed.

Thank-you in advance!

---

<div class="post-metadata">

**Author:** ![bradb](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/bradb/32/13_2.png) [@bradb](https://integration.keap.com/u/bradb)\
**Post date:** [August 1, 2017, 5:05am UTC](https://integration.keap.com/t/get-contacts-by-campaign-id-rest-api/7973/2 "2017-08-01T05:05:43Z")

</div>

Not at this time. It is on our list though.

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [August 1, 2017, 5:28am UTC](https://integration.keap.com/t/get-contacts-by-campaign-id-rest-api/7973/3 "2017-08-01T05:28:24Z")

</div>

Raise tags at each sequence or goal or create notes. That will at least give you a way to track it. The other option would be with a saved search created from one or all of the campaign reports in marketing/reports

---

<div class="post-metadata">

**Author:** ![Martin\_Dunford](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/martin_dunford/32/1884_2.png) [@Martin\_Dunford](https://integration.keap.com/u/Martin_Dunford)\
**Post date:** [August 18, 2017, 3:27pm UTC](https://integration.keap.com/t/get-contacts-by-campaign-id-rest-api/7973/4 "2017-08-18T15:27:50Z")

</div>

Any idea of when the feature will become available. It is vital to a project we are working on. We can get by in the short term with adding tags, but it is crazy that you can not retrieve a list of Contacts associated with a Campaign and vice versa.
