APIs & Integrations

Hayk
Member

Get full landing page

Hello guys I am new to hubspot apis and this forum.
I wonder is there any way to get a ready landing page full html code with apis?
Something like “Get a page by Id” in the Pages api. This one returns a json with html inside it, however doesn’t return html of hubspot wrappers and some modules. So is there any way to get a json with full html inside it?

0 Upvotes
4 Replies 4
Dadams
HubSpot Employee
HubSpot Employee

Get full landing page

Hi @Hayk

The Pages API will only contain the JSON data stored for the page; there isn’t an option to get the fully rendered HTML that a visitor would see. However, you could grab the url from the page and then make a separate request to GET the page itself.

0 Upvotes
Hayk
Member

Get full landing page

Hello Adam ,Thank you for your reply.

Would you please specify what the pager is?

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Get full landing page

That was just a typo, and should have been page, sorry about that. The url is one of the JSON properties you’d get if you were pulling the data for your pages.

0 Upvotes
Hayk
Member

Get full landing page

Oh yes then it’s simple, I just thought pager is some api I am not aware of.

0 Upvotes