Supported products
Supported products
Required Scopes
Required Scopes
Search your site
To search for content across your HubSpot-hosted sites, make aGET request to /cms/v3/site-search/search.
For example, the following request searches for blog posts containing “marketing” on the blog.hubspot.com domain:
Boosting parameters
The following parameters control how results are ranked:
The response includes a
total count and an array of search results:
Pagination
Results are paginated using offset-based pagination. To retrieve the next page of results, include anoffset query parameter with the value from the previous response.
For example, if the first request returned offset: 0 and limit: 10, retrieve the next page with offset=10:
Get indexed data for an asset
To retrieve all indexed data for a specific asset, make aGET request to /cms/v3/site-search/indexed-data/{contentId}. This is useful for debugging why a particular asset is not appearing in search results.
For example, the following request retrieves indexed data for a blog post with ID 24314356:
The response includes all indexed fields for the asset:
fields object contains:
Content types
Thetype parameter accepts the following values: