Query Posts
Changed onRetrieve blog posts from the HubSpot CMS using various query parameters to filter and sort the results. This endpoint supports pagination and allows you to specify date ranges for creation and updates, as well as sorting options. It is useful for fetching a list of posts with specific criteria, such as posts created after a certain date or posts that have been archived.
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/cms/blogs/2026-09/posts/cursor/query
- AuthOAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: content
Query parameters
The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results.
Whether to return only results that have been archived.
Filter posts created after the specified date-time.
Filter posts by their exact creation date. The format is date-time.
Filter posts created before the specified date-time.
The maximum number of results to display per page.
Specify properties to include in the response.
Specify the sorting order of the results. Accepts an array of strings.
Filter posts updated after the specified date-time.
Filter posts by their exact update date. The format is date-time.
Filter posts updated before the specified date-time.
Response
successful operation
Changes
- info
endpoint added
- info