filter by View ID not working in Analytics API

Hi!

I’m having a problem using the Get analytics data for HubSpot hosted 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 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!

Hey, @rkgomezisa :waving_hand: 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 :rofl:)
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 :blush:

Thank you! — Jaycee

Hi @Jaycee_Lewis, 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.