#874 API: Optimized filtering of pages/medias by tags