Here's an example of how you could use Confluence's REST API to retrieve metadata for multiple pages:
Recommended next steps
For more robust reporting without manual restructuring, third-party apps provide specialized macros:
To add pages to the report, click the button and select the pages that you want to include. You can select multiple pages by holding down the Ctrl key (Windows) or Command key (Mac).