APIs & Integrations

Craig
Stratege/Strategin

API to return landing pages, excluding website pages

lösung

EDIT I'm an idiot. For anyone as hasty as me who finds themselves here instead of back in the API docs - use the 'subcategory' paramter in the request URL.


I'm building a search index to send to Algolia, using the pages API to grab any updated, deleted and then archived pages. However, I'm only interested in landing pages, not website pages - in fact returning website pages too is a problem.

Seeing as they are two totally distinct content types, I figured there would be separate endpoints, but all I can find is the pages one.

Am I missing something? Or is there a way to filter by type?

1 Akzeptierte Lösung
Derek_Gervais
Lösung
HubSpot-Alumnus/Alumna
HubSpot-Alumnus/Alumna

API to return landing pages, excluding website pages

lösung

Posting your solution here as a separate post, since I can't mark the original thread as a solution.

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten
atoukourou
Teilnehmer/-in

API to return landing pages, excluding website pages

lösung

Hi, do you know how you retrieve content from the Pages API, the reponse received does not seem exploitable,

0 Upvotes
Derek_Gervais
Lösung
HubSpot-Alumnus/Alumna
HubSpot-Alumnus/Alumna

API to return landing pages, excluding website pages

lösung

Posting your solution here as a separate post, since I can't mark the original thread as a solution.

0 Upvotes