---
title: New Functionality: New features for Analytics API
description: HubSpot API Changelog | New Functionality: New features for Analytics API
image: https://428357.hs-sites.com/hubfs/raw_assets/public/developers-website/images/CMS-og-image.png
---

# HubSpot Developer Changelog

high-search

### New Functionality: New features for Analytics API

Announced: September 9, 2018

New functionality: Analytics API now supports pulling data for custom events & using analytics views.

## What's happening?

Today, we're launching two new features for the Analytics API: Event analytics and support for analytics views.

The Analytics API now supports pulling data for your [analytics events](https://knowledge.hubspot.com/events-user-guide-v2). This would include getting the data for any custom events created using the [JavaScript](https://developers.hubspot.com/docs/methods/tracking_code_api/javascript_events_api) or [HTTP](https://developers.hubspot.com/docs/methods/enterprise_events/http_api) Event APIs.

The Analytics API now also supports filtering by your analytics views. Any views you've [created in HubSpot](https://knowledge.hubspot.com/articles/kcs_article/reports/use-the-sources-report#changing-your-view-in-sources) can be used as a filter when pulling analytics data.

## What's changing?

The existing endpoint to [pull analytics data for objects](https://developers.hubspot.com/docs/methods/analytics/get-analytics-data-by-object) now supports events as an additional object type. There is also a [new endpoint](https://developers.hubspot.com/docs/methods/events/get_events) that lets you get the metadata for your events.

The existing endpoints also now support an additional query parameter: `&filterId=`. Include this parameter with the ID of an analytics view to filter the returned data for that view. There is also a [new endpoint](https://developers.hubspot.com/docs/methods/analytics-views/get-views) that lets you get the metadata for views.

## When is this happening?

These features are currently live and can be utilized immediately.

Questions? Join the discussion [here](https://integrate.hubspot.com/t/new-features-for-analytics-api/12301) or [https://help.hubspot.com/](https://help.hubspot.com/)