Recommended and Trending Communities algorithm

I’m using UIKit and there’s a “Trending” and “Recommended” communities section - how does those section work - what is the algorithm used to query those community + can it be done via SDK alone without using UIKit?

@martin

thanks for the question

Trending & Recommend are 2 concepts which similar logic under the hood

Trending returns all active public communities sorted by member count and created date
Recommended returns all active public communities which this user is not yet a member of, sorted by member count and created date

and yes, it can be done by SDK without UIKit