# Getting Campaign Goal Completion with API

**URL:** <https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032>\
**Category:** API Q&A\
**Created:** [May 2, 2018, 2:49pm UTC](https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032 "2018-05-02T14:49:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdirin\_Dirin](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sdirin\_Dirin](https://integration.keap.com/u/sdirin_Dirin)\
**Post date:** [May 2, 2018, 2:49pm UTC](https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032/1 "2018-05-02T14:49:34Z")

</div>

Is there a way to get Campaign Goal Completion using API?  
It seams like [this List Campaigns](https://developer.infusionsoft.com/docs/rest/#!/Campaign/listCampaignsUsingGET) has only the list of campaigns without goals.  
The Campaign table from [Table Schema](https://developer.infusionsoft.com/docs/table-schema/) is showing something totally different.  
is there such a table that I can get info about Campaign Goal Completion?

---

<div class="post-metadata">

**Author:** ![Nicholas\_Trecina](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/nicholas_trecina/32/5338_2.png) [@Nicholas\_Trecina](https://integration.keap.com/u/Nicholas_Trecina)\
**Post date:** [May 2, 2018, 6:13pm UTC](https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032/2 "2018-05-02T18:13:09Z")

</div>

Hi @sdirin_Dirin, you can retrieve campaign goals on individual campaigns by using the [retrieve a campaign endpoint](https://developer.infusionsoft.com/docs/rest/#!/Campaign/getCampaignUsingGET). Goals and sequences are optional properties so you will need to add the optional properties parameter in order to get goals like this: `GET /campaigns/{campaignId}?optional_properties=goals `.

---

<div class="post-metadata">

**Author:** ![sdirin\_Dirin](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sdirin\_Dirin](https://integration.keap.com/u/sdirin_Dirin)\
**Post date:** [May 2, 2018, 6:39pm UTC](https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032/3 "2018-05-02T18:39:07Z")

</div>

Awesome thank you.  
Now I need the completion date for each person and each goal that he completed.  
How do I get that?

---

<div class="post-metadata">

**Author:** ![Nicholas\_Trecina](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/nicholas_trecina/32/5338_2.png) [@Nicholas\_Trecina](https://integration.keap.com/u/Nicholas_Trecina)\
**Post date:** [May 2, 2018, 10:17pm UTC](https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032/4 "2018-05-02T22:17:24Z")

</div>

There isn’t a specific endpoint exposing that data. However, there is a report in the application called “Campaign Goal Completion” which should give you the data you need. It can be found under the Infusionsoft logo \> Marketing \> Reports \> Campaign Goal Completion.

Once you have a version of the report saved with your criteria of choice, you can use the XML-RPC [`SearchService.getSavedSearchResults`](https://developer.infusionsoft.com/docs/xml-rpc/#search-retrieve-a-partial-report-from-a-saved-search) to get the results.

---

<div class="post-metadata">

**Author:** ![sdirin\_Dirin](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sdirin\_Dirin](https://integration.keap.com/u/sdirin_Dirin)\
**Post date:** [May 3, 2018, 3:23am UTC](https://integration.keap.com/t/getting-campaign-goal-completion-with-api/39032/5 "2018-05-03T03:23:59Z")

</div>

Yes but there is no way to choose dates of the report there. I can not change dates of saved report. That means that I have to correct the dates every time before new report. It would be easier to just get the data from web site.
