Website Search

Hello,
What I want:

BBecker1_0-1727436785867.png

I have pages, a blog and hubdbs where this content is from.
Is there a hubspot api to search all of these? or do I need to use different APIs to search for each type. What would be a simple solution to create a content page search like this?

@BBecker1 the options for API website search are:

This is the legacy documentation for CMS Site Search and the newly updated beta docs for API CMS Site Search - I’m more familiar with the legacy docs so it’s easier to find things there, but between the two you should definitely have everything you need to get this built out!

Hi @BBecker1 ,

You can use the content search API that @Jnix284 shared, you can limit the results on the ‘type’ param, as Jennifer explained, but it is not possible to use that param for the ‘Webinar’ and ‘Events’ results.

You can however, filter the results based on a pathPrefix. For example:
https://api.hubapi.com/contentsearch/v2/search?portalId=248909&term=Kennis&language=nl&limit=30&offset=0&type=SITE_PAGE&type=BLOG_POST&type=LISTING_PAGE&pathPrefix=/nl/hubspot-development
Will only return pages and blog posts in the Dutch language where the URL will start with ‘/nl/hubspot-development’ You could do the same but use pathPrefix with ‘/webinars’ for example.