# Website Search

**URL:** <https://community.hubspot.com/t/website-search/117215>\
**Category:** CMS Development\
**Tags:** hubdb, javascript, html\
**Created:** [September 27, 2024, 11:39am UTC](https://community.hubspot.com/t/website-search/117215 "2024-09-27T11:39:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BBecker1](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@BBecker1](https://community.hubspot.com/u/BBecker1)\
**Post date:** [September 27, 2024, 11:39am UTC](https://community.hubspot.com/t/website-search/117215/1 "2024-09-27T11:39:51Z")

</div>

Hello,  
What I want:

![BBecker1_0-1727436785867.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/7/47d6e9a21b948e672fb33bb6df527f28f00048d4.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?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [September 27, 2024, 3:01pm UTC](https://community.hubspot.com/t/website-search/117215/2 "2024-09-27T15:01:01Z")

</div>

@BBecker1 the options for API website search are:

 ![Jnix284_0-1727449125520.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/8/2898030ad0141bcd932c56364e809a00fdb7bd01.png)

This is the [legacy documentation for CMS Site Search](https://developers.hubspot.com/docs/api/cms/site-search) and the [newly updated beta docs for API CMS Site Search](https://developers.hubspot.com/beta-docs/reference/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!

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 27, 2024, 6:13pm UTC](https://community.hubspot.com/t/website-search/117215/3 "2024-09-27T18:13:19Z")

</div>

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](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.
