we have created some products webpages on hubspot.
Now, we would like to integrate this webpages on our external website. Our products pages are too old and we would like to replace them by the new one on hubspot.
Can you tell me, if with the Api we can do such things?
We have some ideas like iframe or get the html code from our page so that we can inject this code into our pages.
But before to do anything, we would to know if something exist on your side.
To clarify, do you wish to retrieve the entire HubSpot page's contents via API and display it on your external URL (as if using a proxy server)?
Which API are you currently using? I'm guessing a CMS Page Publishing API endpoint like this? That endpoint is the closest API we have which allows pulling a given page's HTML. Could you identify any specific challenges you are having with this method?
To clarify, do you wish to retrieve the entire HubSpot page's contents via API and display it on your external URL (as if using a proxy server)?
Yes
Which API are you currently using? I'm guessing a CMS Page Publishing API endpoint like this? That endpoint is the closest API we have which allows pulling a given page's HTML. Could you identify any specific challenges you are having with this method?
I've tried this one but as far as I could see, this request give you the page separated by module. After that, we must know how the page has been constructed.
I thought that we could use a request that give you the complete html code from our page so that we can include this code in our external page.
Unfortunately, it is not possible to retrieve only processed HTML content via the HubSpot API.
If you wish to accomplish your goal programmatically, you will likely have to use both the CMS Page Publishing API and the CMS Layouts API to get a complete view of the page's structure.
At this point, it may also be easier to iframe or rebuild the pages.
thanks. By rebuild the pages, you mean develop again the page on our external website and just insert some button inside using hubspot technologies?
We've already tried the iframe but we're not 100% sure that SEO will not be an issue. Have you some informations about this? Do you know if SEO is fine with iframe?
Uncaught DOMException: Blocked a frame with origin "http://xxxxxxxxxxxxx" from accessing a cross-origin frame. at HTMLIFrameElement.<anonymous> (http://xxxxxxxxxxxxx:984:69) at HTMLIFrameElement.dispatch (http://xxxxxxxxxxxxx:37:4351) at HTMLIFrameElement.i (http://xxxxxxxxxxxxx:37:328)