APIs & Integrations

Austgen123
Member

Can I Pull Contact/Company Hubspot URL via Hubspot's API?

I use a 3rd party application to pull Hubspot data. I want to be able to also pull a contact/company/deal direct Hubspot URL for easy access, so if something is unclear we can simply click into it and pull open Hubspot. Is this possible?

0 Upvotes
2 Replies 2
webdew
Guide | Diamond Partner
Guide | Diamond Partner

Can I Pull Contact/Company Hubspot URL via Hubspot's API?

Hi @Austgen123 ,

"Please Use these url for fetching all data from hubspot API:
Requirement Hapikey ( Hubspot api key )
Contacts :
https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2
Companies :
https://api.hubapi.com/companies/v2/companies/paged?hapikey=demo&properties=name&properties=website&...
Deals :
https://legacydocs.hubspot.com/docs/methods/deals/get-all-deals

 

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

0 Upvotes
Aleeson
HubSpot Employee
HubSpot Employee

Can I Pull Contact/Company Hubspot URL via Hubspot's API?

Hey there Austgen123-

 

Not exactly. However, if you can pull the Object ID (vid, company id, deal id etc) via the CRM API, all links to records in-HubSpot follow the same format, so with the ID of the specific Deal, Contact Or Company you could assemble a working URL.

 

For example, a Company would look something like this:

 

https://app.hubspot.com/contacts/[your account  ID]/Company/[Company ID]

 

They all follow that format, https://app.hubspot.com/contacts/, followed by the above bold sections relevant to the specific object.

 

Hope that makes sense!

Al