# How to Extract data from custom report by api call

**URL:** <https://community.hubspot.com/t/how-to-extract-data-from-custom-report-by-api-call/36483>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [April 29, 2021, 4:21pm UTC](https://community.hubspot.com/t/how-to-extract-data-from-custom-report-by-api-call/36483 "2021-04-29T16:21:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![srozentsvayg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/srozentsvayg/32/51304_2.png) [@srozentsvayg](https://community.hubspot.com/u/srozentsvayg)\
**Post date:** [April 29, 2021, 4:21pm UTC](https://community.hubspot.com/t/how-to-extract-data-from-custom-report-by-api-call/36483/1 "2021-04-29T16:21:54Z")

</div>

Hey

I have one custom report and i would like to extract whole data from it with fields by api GET call. I didnt find any ducomentation for it . can any one provide more details how to slove it?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [April 30, 2021, 2:40pm UTC](https://community.hubspot.com/t/how-to-extract-data-from-custom-report-by-api-call/36483/2 "2021-04-30T14:40:03Z")

</div>

Hi @srozentsvayg

Not sure if this is the direction you are looking to go, but here are the [endpoint for reports](https://legacydocs.hubspot.com/docs/methods/analytics/get-analytics-data-breakdowns?_ga=2.170914080.1496247023.1619442886-1991979296.1617647786)

@RMones might have some more thoughts on this.

---

<div class="post-metadata">

**Author:** ![srozentsvayg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/srozentsvayg/32/51304_2.png) [@srozentsvayg](https://community.hubspot.com/u/srozentsvayg)\
**Post date:** [May 2, 2021, 9:24am UTC](https://community.hubspot.com/t/how-to-extract-data-from-custom-report-by-api-call/36483/3 "2021-05-02T09:24:47Z")

</div>

i am not able to find support to pull data from custom reports by using analytics . or i am missing somting?

for example i have location of the report

[https://app.hubspot.com/reports-list/\<account\_id\>/77842715/](https://community.hubspot.com/)

77842715 = is id for report , i cant find parameters where to pass it trougth analytics api

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 6, 2021, 8:11am UTC](https://community.hubspot.com/t/how-to-extract-data-from-custom-report-by-api-call/36483/4 "2021-05-06T08:11:56Z")

</div>

Hi @srozentsvayg  
Please use this api for reports fetch data.  
[https://api.hubapi.com/analytics/v2/reports/\<breakdown\_by\>/\<time\_period\>?hapikey=demo&start=20180101&end=20180301](https://api.hubapi.com/analytics/v2/reports/%3Cbreakdown_by%3E/%3Ctime_period%3E?hapikey=demo&start=20180101&end=20180301)  
Format Examples :  
breakdown\_by like =\> totals, sessions, sources, geolocation etc  
time\_period like =\> total, daily, weekly, monthly etc  
Start date format =\> YYYYMMDD  
End date format =\> YYYYMMDD  
Hope this helps!  
If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.
