# Generation Report API

**URL:** <https://community.hubspot.com/t/generation-report-api/13344>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 5, 2019, 12:27pm UTC](https://community.hubspot.com/t/generation-report-api/13344 "2019-03-05T12:27:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adaptive](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adaptive/32/32521_2.png) [@Adaptive](https://community.hubspot.com/u/Adaptive)\
**Post date:** [March 5, 2019, 12:27pm UTC](https://community.hubspot.com/t/generation-report-api/13344/1 "2019-03-05T12:27:19Z")

</div>

Hi all,

I have a report created and I would like to make sure I am able to access the same data I get in a excel (when “export” is clicked) through the API.

Report: [https://app.hubspot.com/report-builder/2522988/report/59159835/visualization](https://app.hubspot.com/report-builder/2522988/report/59159835/visualization)

I would need to retrieve all this information to automate a process internaly.

The chat support wasn’t able to confirm whether or not I am able to retrieve this specific data through the API.

Thanks,

---

<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:** [March 5, 2019, 8:46pm UTC](https://community.hubspot.com/t/generation-report-api/13344/2 "2019-03-05T20:46:35Z")

</div>

Hi, @Adaptive.

Happy to clarify.

At this time, it is _not_ possible to retrieve the data for individual reports like that via the HubSpot API — at least not in the digested form you envision.

That said, I still think I can help!

[This report](https://app.hubspot.com/report-builder/2522988/report/59159835/visualization) uses data that is freely accessible through the [Contacts API](https://developers.hubspot.com/docs/methods/contacts/contacts-overview). Specifically, you can use the [_Get all contacts_](https://developers.hubspot.com/docs/methods/contacts/get_contacts) endpoint to retrieve all your contacts at one time (with several requests). _Create date_ and _Lifecycle stage_ property data is include by default in the response. Your external integration or system could then parse through the data and count and sort contacts by _Create data_.

Alternatively, you could set up an integration to periodically poll the [_Get recently updated and created contacts_](https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts) endpoint so that you wouldn’t have to pull _all_ of your contact records each time you call HubSpot’s APIs.

---

<div class="post-metadata">

**Author:** ![Adaptive](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adaptive/32/32521_2.png) [@Adaptive](https://community.hubspot.com/u/Adaptive)\
**Post date:** [March 6, 2019, 2:11pm UTC](https://community.hubspot.com/t/generation-report-api/13344/3 "2019-03-06T14:11:31Z")

</div>

Hi, @IsaacTakushi.

Thank you for the answer.

I’ll try the Contacts API, then. If I can retrieve all the columns from this report that would be enough.

I would need to separate them on my backend by the filters made on this report. Would I be able to retrieve the columns used to filter on that report?

Thank you very much,

---

<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:** [March 7, 2019, 2:13pm UTC](https://community.hubspot.com/t/generation-report-api/13344/4 "2019-03-07T14:13:17Z")

</div>

Hi, @Adaptive.

To clarify, are you referring to columns for contact name, create date, and lifecycle stage?

If so, you wouldn’t be retrieving the columns themselves, per se, but each contact record returned will have data for all three of these properties. You could then sort and count them by each property and value.

For example, I could imagine logic which counts all contacts which have `"lifecyclestage":"customer"`.

---

<div class="post-metadata">

**Author:** ![Adaptive](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adaptive/32/32521_2.png) [@Adaptive](https://community.hubspot.com/u/Adaptive)\
**Post date:** [March 7, 2019, 2:25pm UTC](https://community.hubspot.com/t/generation-report-api/13344/5 "2019-03-07T14:25:12Z")

</div>

Hi @IsaacTakushi,

No.

On this report, when I export it, I have the “columns”:

Original Source

Original Source - Drilldown 1

I need them for being able to sort and count them to specific internal reports.

If I can use this to perform the endpoint request or retrieve these information, that would work.

Thank you very much,

---

<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:** [March 7, 2019, 2:30pm UTC](https://community.hubspot.com/t/generation-report-api/13344/6 "2019-03-07T14:30:48Z")

</div>

Hey, @Adaptive.

Thanks for clarifying.

Yes, you can retrieve those properties from [this](https://developers.hubspot.com/docs/methods/contacts/get_contacts) and similar Contacts API endpoints by defining these properties in the request URL with the `property` parameter.

If you wanted _Original Source_ data and both of its drilldowns, you would append:

`&property=hs_analytics_source&property=hs_analytics_source_data_1&property=hs_analytics_source_data_2`
