APIs & Integrations

gitdavidhunter
Member

Blog Post Content

Hi all - I must be missing something simple.
I want to retrieve the all the blog content from a particular group_id.

The total count is 546 blog posts, which is correct
{“total_count”: 546, “objects”: …

For some reason I am only able to generate 20 blogs using this method :
https://api.hubapi.com/content/api/v2/blog-posts?hapikey=my-api-key&state=PUBLISHED&content_group_id...

How can I adjust my API call so that the content of all 546 blog posts are being rendered ?

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Blog Post Content

@gitdavidhunter that endpoint supports a limit parameter that can be used to increase the number or returned objects. It defaults to 0 if it’s not included in the request URL.

List blog posts | COS Blog API

GET /content/api/v2/blog-posts - List Blog Posts API, Supports paging and filtering.

0 Upvotes