Best API for All First Posts in a Category

Hi everyone,​

I’m developing a mobile application that integrates with our self-hosted Discourse instance. I need to retrieve all first posts from topics within a specific category, similar to the use case discussed here.​

While the current approach involves fetching topics and then retrieving each first post individually, I’m looking for a more efficient method suitable for mobile applications. Ideally, this would minimize the number of API calls to conserve bandwidth and improve performance.​

Has anyone implemented a similar solution or can offer guidance on the most efficient way to achieve this? Any insights or suggestions would be greatly appreciated!