# filter by View ID not working in Analytics API

**URL:** <https://community.hubspot.com/t/filter-by-view-id-not-working-in-analytics-api/64406>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [September 2, 2022, 8:18pm UTC](https://community.hubspot.com/t/filter-by-view-id-not-working-in-analytics-api/64406 "2022-09-02T20:18:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkgomezisa](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rkgomezisa](https://community.hubspot.com/u/rkgomezisa)\
**Post date:** [September 2, 2022, 8:18pm UTC](https://community.hubspot.com/t/filter-by-view-id-not-working-in-analytics-api/64406/1 "2022-09-02T20:18:02Z")

</div>

Hi!

I’m having a problem using the [Get analytics data for HubSpot hosted content](https://legacydocs.hubspot.com/docs/methods/analytics/get-data-for-hubspot-content) endpoint.

I have no problems using the following URL:

/analytics/v2/reports/{content\_type}/{time\_period}?f={blog\_post\_id}

The problem comes when I want to use the optional parameter “Analytics View ID”: &filterID={view\_id}. When I make the API request I receive an empty response.

I have checked the View ID using the [Get all analytics views](https://legacydocs.hubspot.com/docs/methods/analytics-views/get-views) endpoint.

I don’t know if it’s related but the /content-group/:blog\_id/sources/ aggregate in the URL also doesn’t work.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 6, 2022, 8:22pm UTC](https://community.hubspot.com/t/filter-by-view-id-not-working-in-analytics-api/64406/2 "2022-09-06T20:22:08Z")

</div>

Hey, @rkgomezisa 👋 Thanks for reaching out. Hey, @JBeatty @jpsanchez, do you happen to have a test account with blog posts and views that are also part of a custom analytics view? (whew, that’s a mouthful 🤣)  
Hey, @rkgomezisa, to confirm, does the portal you were making these API requests to have the correct product level? “Note: Access to the data from this endpoint will require a Marketing Hub Professional or Enterprise subscription”. I assume the answer is yes, and guessing is never my first troubleshooting technique if I can avoid it 😊

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![rkgomezisa](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rkgomezisa](https://community.hubspot.com/u/rkgomezisa)\
**Post date:** [September 6, 2022, 8:45pm UTC](https://community.hubspot.com/t/filter-by-view-id-not-working-in-analytics-api/64406/3 "2022-09-06T20:45:10Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074), nice to meet you! Thanks for your prompt reply.

As you said, the company, which we are building a private app for, currently has the Marketing Hub Professional plan.

Looking forward to hearing from you.
