Membership 2 Pro API: how to check if a given post id is protected

I need to create a page that lists other pages. Those other pages are protected with dripped membership of Membership 2 Pro.

How do I code it (using M2P API) so the that page (probably a custom page template?) would check if listed pages should be available? It should go like this in WP loop:

fetch post id for a page -> check if it should be displayed (taking user and membership and dates as it's a dripped membership into account) -> display the page on the list or skip to the next one and repeat that check