HubSpot Content Search API with React

Опубликовано: 01 Июнь 2026
на канале: Teun Rutten
1,175
17

One of my favorite hidden gems of the HubSpot API is definitely the content search API.

The content search API allows you to search for a specific term within your website pages, blog posts, HubDB rows, knowledge base articles and landing pages. Not only will it return all the results that use that term, but it's also going to decide the best results based on where the term is being used.

Now, this API has a LOT of options, so you can also fine-tune what results you want to show by passing it several parameters. Some of them are;

✅ Limiting results by language
✅ Limiting results by path prefix
✅ Limiting results by type (blog post, website page etc.)

But you can also determine which type of content should get a higher priority in the results.

In this video, I will show you how we, at Bright Digital, used this API together with React to create a module that allows you to create a search functionality anywhere on your HubSpot website AND fine-tune the results per page this module is used on.