APIs & Integrations

nutan1
Participant

Is api exist in hubspot to check website page with specified url exist in hubspot

we have 100 of countries exist.Now I have created same URL structure for pages to the countries that we have for e.g India URL is https://dev.transfast.com/india for Pakistan https://dev.transfast.com/pakistan but for some countries we have yet not build any pages. and now my need is to hide those country on main page which have no page exist in Hubspot for e.g we have country Benin for which we have not build page yet.So here we have domain and country name.Now I want to use Hubspot API to check is page with URL https://dev.transfast.com/benin exist in Hubspot

0 Upvotes
3 Replies 3
VAhir
Member

Is api exist in hubspot to check website page with specified url exist in hubspot

what is url create page using v3 for local

0 Upvotes
lscanlan
HubSpot Alumni
HubSpot Alumni

Is api exist in hubspot to check website page with specified url exist in hubspot

Hi @nutan1,

 

Could you pull all of the pages in your account through the CMS Page Publishing API? Here's our documentation for it: https://developers.hubspot.com/docs/methods/pages/get_pages . Both the "absolute_url" and the "slug" are returned in the response for each page. You could loop through all of the page objects to see if your page exists. Other than this, so far as I know it's not possible to check specifically for a page by its URL. Does this help with what you're trying to do?

 

 - Leland

Leland Scanlan

HubSpot Developer Support
0 Upvotes
nutan1
Participant

Is api exist in hubspot to check website page with specified url exist in hubspot

I have checked above provided solution with additional filter using parameter 'name' with 'icontains'. Is there any way to work same thing using parameter 'absolute_url' instead of parameter 'name'.

 

0 Upvotes