Hi all,
I created a library, fpt-api first to get an Entity’s query fields, but since I also needed to get all Entities from a Page given its ID, applying the page filters, I also added this functionality.
It’s a simple method, fpt.yield_page_entities, that will fetch all the Entities from a Page. You can optionally add additional filters and overwrite the fields to fetch (by default, the Page’s fields).
I know it might come in handy when you are in the context of an AMI, or you simply want to fetch the data from a page and display/store it somewhere (web service, google sheets, etc).
If it’s useful to you, please go to the GitHub project page and star it!
Hope you like it!