How to retrieve productivity campaign through API

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

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:

HubSpot Campaign

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

Clarifying the meaning of ContentID vs CampaignID vs AppID

@dadams Hi, any updates here?

[

productivity campaign filter.jpg876x546 40.5 KB

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

Welcome, @mark_ha!

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

If you would like a public API for campaigns published, please upvote and comment on this HubSpot Community Idea. 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.

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

Upvoted the community idea. Hope it gets some priority.