There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Sample Applications that work with HubSpot

We want to help you build better integrations with HubSpot using the programming languages you're used to working in.

At HubSpot, we believe in an open and accessible platform that allows developers to build integrations that businesses around the world rely on to grow better every day.

Below are some sample applications that can help get you started building. These are some open-source sample applications, open-source SDKs, and works with HubSpot projects built and maintained by our global community of developers.

NodeJS/Javascript

NodeJS/Javascript Sample Apps

Sample NodeJS/Javascript apps to help get up and running with the HubSpot platform. Create and modify Contacts and Companies and authenticate using OAuth 2.0, all on the HubSpot API.
View NodeJS/Javascript Sample Apps

PHP

PHP Sample Apps

A group of sample apps, built in PHP, to demonstrate core HubSpot API functionality. Create and manipulate Contacts and Companies and authenticate using OAuth 2.0, all with the HubSpot API.
View PHP Sample Apps

Ruby

Ruby Sample Apps

A group of sample apps, built in Ruby, to demonstrate core HubSpot API functionality. Create and manipulate Contacts and authenticate using OAuth 2.0, all with the HubSpot API.
View Ruby Sample Apps