Replicate Blog related posts via API

criverathinkwhy
Member

Hi HS community,  we are currently in the process of exposing our blog  to external web apps using the API (v3), and for the most part listing and loading entries is quite straight forward, but since we want to provide a similar experience as found in HS hosted blog site, we need to replicate the related_blog_posts Hubl tag used in the post detail pages through the API.

 

We thought simply doing a search request for all posts with a filter by all tags (tagId__in) present in the current article, which works but the results come quite different from what the hubl shows.. 

does anyone know the logic behind related_blog_posts to be able to replicate? 

Appreciate any pointers!

0 Upvotes
2 Replies 2
Jaycee_Lewis
Thought Leader

Hey,, @tricialeach 👋 I don't see a documented way to get full fidelity from the Blog API endpoints to match what HubL is doing here. Have you tried making a request to `GET /cms/v3/blogs/posts/{postId}`? If so, can you either add the response here or in a new post? Thanks! — Jaycee
 





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes
tricialeach
Member

Hello—I need an answer to this question too. Is there anyone at HubSpot who can assist? Thank you!

0 Upvotes