Loading...

HubSpot’s reporting tools are powerful, but sometimes businesses need more customized insights than the default dashboards provide. That’s where the HubSpot Analytics API and Report API come in. These API let you fetch data programmatically, process it in your own application, and build fully custom reports tailored to your business needs by creating custom reports with Hubspot API integration.

In this blog, we’ll walk through the steps to create a custom HubSpot report using APIs, from fetching CRM data to visualizing it in your own dashboard or application.

Prerequisite

  • HubSpot Developer account
  • Latest version of Node.js
  • Basic Knowledge of JavaScript and REST APIs

Steps to Create Custom Reports with Hubspot API Integration

Step 1: First, Create a HubSpot Private App.

HubSpot->Settings->Integrations->Legacy App->Create Legacy App->Private App.

Untitled design
Untitled design 1

Enter the ‘Name’ of the app in Basic info option.

Untitled design 2

Then, go to Scopes, and add new scope.

Untitled design 3
  • Click on Create App.
  • Copy the Private App Access Token.

Step 2: Set Up Your Integration.

  • You can integrate HubSpot’s API with various platforms but here we’ll use Google Sheets.
  • Create a Google Sheet and define column headers according to the object attributes you plan to extract for the report.

Step 3: Create a Google Service Account.

  • Go to Google Cloud Console.
  • Make sure you are logged into the Google account you want to use for this project.
  • If you don’t have a project yet, create one by clicking on Select a project->New Project
    Give it a name and Click Create.
  • Go to APIs & Services->Library->Search for Google Sheets API->Click Enable.
  • Also, enable Google Drive API.
  • Go to IAM & Admin->Service Accounts.
  • Click Create Service Account->Enter details->Click Create and Continue.
  • You’ll see Service account permissions (optional)->Add Editor->Click Done.
  • In the Service Accounts list, click your new service account.
  • Go to Keys ->Add Key->Create New Key->Select JSON and click Create.

Step 4: Share Your Google Sheet with the Service Account.

  • Open your Google Sheet.
  • Click Share->Add People and Groups.
  • Enter the service account email .
  • Give Editor access and click Send.

Step 5: Setup Backend (Node.js Local Server)

  • Run these commands in your command prompt: npm init -y and npm install express axios googleapis body-parser.
  • Create an index.js file.
Screenshot 65
Screenshot 66
Screenshot 67
Screenshot 68

Step 6: Run the server.

  • Run node index.js.
  • Open in browser: http://localhost:3000/update-leads
  • Check Google Sheet ->data should be updated.
Screenshot 69

Step 7: Connect Google Sheet to Looker Studio.

  • Once your data is in Google Sheets, you can use Google Looker Studio to create interactive, shareable reports.
  • Go to Looker Studio->Create->Report.
  • Add Google Sheets as data source->select your Sheet and tab.
  • Build custom charts, tables, and metrics based on the data pulled from HubSpot’s API.
Untitled design 4

Watch Live Demo

Conclusion

Building custom reports with HubSpot’s API unlocks far more control than standard dashboards, allowing teams to analyze data exactly the way their business requires. By integrating HubSpot with Google Sheets, Looker Studio, or any analytics platform, you can automate data collection, build deeper insights, and create fully personalized reporting workflows. With the right setup, your HubSpot API integration becomes a scalable, future-proof solution for reporting, analytics, and performance tracking.

Get End-to-End HubSpot Development Services Designed for Your Business Needs.

No Data Found.

Related Articles
How to Integrate NikoHealth to Salesforce

Healthcare organizations using NikoHealth often need patient, insurance, order, invoice, and prescription data available inside Salesforce. As data grows, manually updating records across systems becomes difficult and can lead to delays, duplicate work, and data inconsistencies. NikoHealth to Salesforce integration helps solve this challenge by automatically synchronizing data between both platforms. Instead of building custom […]

Read More
Orchestrator vs. Traditional Flows

Businesses use Salesforce automation to reduce manual work, improve efficiency, and automate repetitive business processes. Two commonly used automation approaches inside Salesforce are Traditional Flows and Flow Orchestrator. Traditional Flows are mainly used for simple automation tasks such as updating records, sending notifications, creating tasks, and automating business logic. Flow Orchestrator is designed for more […]

Read More
The Rise of Agentic Government_ What Salesforce’s 2026 Insights Mean for the Future of Public Sector AI

Government technology has often been seen as slower to evolve than the private sector. But Salesforce’s latest research challenges that idea in a big way. In fact, the new findings suggest that public sector organizations may now be moving faster than many businesses when it comes to adopting AI agents and preparing for a more […]

Read More
How To Use Email Service in APEX

Managing approvals, updates, and record changes directly from email can significantly improve efficiency within Salesforce workflows. Instead of logging in, navigating records, and manually updating fields, users can simply respond to emails and trigger automated updates using Email Service in APEX. This approach is especially useful for businesses leveraging Salesforce automation and looking to enhance […]

Read More
Design and Implementation of Salesforce Jira Task Integration 1 1

Businesses have been using Salesforce for CRM operations and Jira for Agile project tracking. However, without integration, teams manually update both systems, leading to data inconsistency and inefficiency.This mechanism establishes a real-time integration between Salesforce and Jira, allowing seamless synchronization of tasks and agile board statuses.  A custom Salesforce dashboard was developed that replicates Jira-style […]

Read More
Dark Mode in Salesforce Enabling It and Creating Theme Ready Lightning Web Components with SLDS 2.0 1 1

With the Winter ’26 release, Salesforce introduced Dark Mode in Lightning Experience. Dark Mode has been introduced as a beta feature in Winter ’26, and at first it was available only for Starter Edition orgs. It is now rolling out further with Spring ’26 to Professional, Enterprise, and Developer editions. To use Dark Mode, Salesforce […]

Read More
Our Location worldwide
Indian Flag India
3rd Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203239658
United States of America Flag USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
United Kingdom Flag UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
Canada Canada
HIC Global Solutions INC
6D - 7398 Yonge St #1124 Thornhill, ON L4J 8J2 Canada +1(262) 310-7818