How to Retrieve Business Address & Website Email via HubSpot API?

Hi,

I’m developing an app in HubSpot and need help retrieving specific account details via the HubSpot API.

A. How to Retrieve the Business Address Using the API?
I’m trying to fetch the business address configured in Settings > Account Defaults using the HubSpot API.

I tried the following endpoint:

https://api.hubapi.com/account-info/v3/details

However, this does not return the business address.

Is there another API endpoint that provides this information? Or is there a workaround to retrieve it programmatically?

B. How to Retrieve the Website’s Email Address Using the API?
I’m looking for the email address under which the HubSpot account for this website was created.

I tried this API:

https://api.hubapi.com/crm/v3/owners

This returns all owners, but how can I determine which email belongs to the primary owner of the account?

Any insights would be greatly appreciated. Thanks in advance!

Hey @U072319 from the documentation it looks like the accounts api doesn’t support providing the account address. Would this change a lot though? Generally it’s pretty rare I’d see a company address change on an account.

For owners, once you get all owner emails, you’ll need to have the company in your CRM and you can use the get companies api to pull all your companies and check for the property of “HubSpot owner”.

It sounds like you might be looking to plug in any HubID and pull the account owner and address from that though is this correct? If so that’s definitely not going to be possible, HubSpot isn’t going to allow you to scrape inernal data from accounts, you can access the information through the UI through your accounts and billing page however.

Hi @TomM2,

Appreciate your response!

I am developing a HubSpot app for the first time. When someone installs the app, I need to retrieve the website domain (e.g., mywebsite.com), the primary owner’s email (e.g., owneremail@mywebsite.com), and the business address.

Usually, most platforms provide an API that returns all website details, including the business address. However, I couldn’t find any HubSpot API that provides the business address specifically.

Is there any alternative approach to fetching this information programmatically?