URL Parameter Tags for Search Results

Hi Everyone
Not a developer (but at the rate the project is going I might as well be :face_exhaling:). But please bear with me and pardon the naivity.
But may I know what are the tags in a URL parameter for the search engine in HubSpot?
My Problem: I would like to use the search engine to pull out all Blog Posts with a blog tag of “Europe Event”.
I noticed the URL is like this:

https://HUBID.hs-sites.com/hs-search-results?term=bss

Just wondering is there some tag I can use to filter the tag instead?

Thanks in advance.

Hi @justau,

Welcome to the Community!

I’d like to start by including our documentation on the matter HERE!
I hope this helps point you in the right direction, but I’d also like to tag in some of our Top Contributors to see if they have any experience with this!

@SteveHTM, @RubenBurdin, @GRajput -- Do you have any suggestions for @justau on this?
Thanks!

Sam, Community Manager

Hi @justau ! there are no available parameters to filter a specific blog post based on their tag according to the HubSpot Documentation but there are some workarounds you can do to achieve this that I can think of:

  1. Adding the actual tag to the search parameter: Try including the tag name in your search term, e.g.: https://hubid.hs-sites.com/hs-search-results?term=Europe+Event&type=BLOG_POST This isn’t an exact tag filter, but since the tag text is indexed, posts tagged “Europe Event” should rank higher in results.
  2. Using the blog tag listing page: HubSpot automatically generates tag-based listing pages for your blog. The URL format is typically: https://hubid.hs-sites.com/blog/tag/europe-event This would show all blog posts with that specific tag, no search API needed. This might be exactly what you’re looking for!
  3. Custom JavaScript solution: Use the Site Search API with type=BLOG_POST then filter the results client-side using the tags array that comes back in the response. This would require some JavaScript though.

Option 2 (the tag listing page) is probably your best bet since you mentioned you’re not a developer, but if you really want to achieve this using the site search feature then the Option 3 is what I recommend.