# How to retrieve productivity campaign through API

**URL:** <https://community.hubspot.com/t/how-to-retrieve-productivity-campaign-through-api/11540>\
**Category:** APIs & Integrations\
**Created:** [November 21, 2018, 1:07pm UTC](https://community.hubspot.com/t/how-to-retrieve-productivity-campaign-through-api/11540 "2018-11-21T13:07:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_ha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark_ha/32/9373_2.png) [@mark\_ha](https://community.hubspot.com/u/mark_ha)\
**Post date:** [November 21, 2018, 1:07pm UTC](https://community.hubspot.com/t/how-to-retrieve-productivity-campaign-through-api/11540/1 "2018-11-21T13:07:45Z")

</div>

In the web UI, users can filter email campaigns by productivity campaign (see screenshot). When a user applies a filter, the URL is changed to [https://app.hubspot.com/email/xxxxxx/manage/state/all?campaign=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx](https://app.hubspot.com/email/xxxxxx/manage/state/all?campaign=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

Is there a way to retrieve this productivity campaign through the API / DB? And if so, how can I associate it with the email campaign ID so that I can create a similar filter in a report outside the Hubspot UI?

This question was raised previously, but the answers are more than 2 years old, so was hoping it had been added in meantime:

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/4/84fca4e94c3aa5a3d1dca5fc2eccf9c0cd0d51de.png) [HubSpot Campaign](https://integrate.hubspot.com/t/hubspot-campaign/545)

> Hello! Is there a way to get the list of Campaigns? I am trying to use the “Get all campaign IDs for a portal” API but I do not get the list. What could be causing the problem, did I miss some settings, associations, or values? TIA! Ross

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/d/5d988ef299e3ebbf9411491d9829f27ed5def698.png) [Clarifying the meaning of ContentID vs CampaignID vs AppID](https://integrate.hubspot.com/t/clarifying-the-meaning-of-contentid-vs-campaignid-vs-appid/1903/5)

> @dadams Hi, any updates here?

[

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/1/015802e5a76da9f0ce531cb5ed8c499e58e13851.jpeg)

productivity campaign filter.jpg876x546 40.5 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/0/015802e5a76da9f0ce531cb5ed8c499e58e13851.jpeg](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/0/015802e5a76da9f0ce531cb5ed8c499e58e13851.jpeg))

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 26, 2018, 10:05pm UTC](https://community.hubspot.com/t/how-to-retrieve-productivity-campaign-through-api/11540/2 "2018-11-26T22:05:05Z")

</div>

Welcome, [@mark\_ha](https://community.hubspot.com/u/mark_ha)!

Unfortunately, it is still not possible to access campaign objects via the API. Here are some more recent related topics:

- [Way to get campaign performance via API](https://integrate.hubspot.com/t/way-to-get-campaign-performance-via-api/10590)
- [Not able to get the Campaign details and list](https://integrate.hubspot.com/t/not-able-to-get-the-campaign-details-and-list/13615)

If you would like a public API for campaigns published, please upvote and comment on [this HubSpot Community Idea](https://community.hubspot.com/t5/HubSpot-Ideas/Complete-Hubspot-Campaigns-API/idi-p/20184). This information is sent directly to our product teams and helps prioritize feature requests that have the greatest impact on our customers. I’ve already upvoted the idea and will also do my part and pass your feedback along through internal channels.

---

<div class="post-metadata">

**Author:** ![mark\_ha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark_ha/32/9373_2.png) [@mark\_ha](https://community.hubspot.com/u/mark_ha)\
**Post date:** [November 27, 2018, 8:57am UTC](https://community.hubspot.com/t/how-to-retrieve-productivity-campaign-through-api/11540/3 "2018-11-27T08:57:48Z")

</div>

Thanks for the confirmation. That’s indeed what I expected.

Upvoted the community idea. Hope it gets some priority.
