List popular posts from multiple blogs

Hi! I’m looking for a solution for the same problem in this post from 2018. Basically we have different blogs, identical to Hubspot’s blog’s setup (The HubSpot Marketing Blog, The HubSpot Sales Blog and so on), but under the main blog listing I want to:

1. pull the popular posts from our different blogs

2. sort it by popularity, and

3. show the top 5 most popular posts

I have an idea on how to do 1 and #3 but not #2 (sorting it by popularity). Is there a way to do this?

Unfortanetly Hubspot has yet to make any data available to developers for determing the popularity of a post for ourselves using HubL. You would need to utilize the API to acquire the view data.

The how-to of using this is talked about briefly here :
https://community.hubspot.com/t5/APIs-Integrations/Retrieving-mots-popular-posts-via-API/m-p/270100