Service to search page in workspace with all components used in layout

I’m new to bloomreach. I need to get all components used in the page (sample: page in workspace) then consume the result json in other service. Is it possible? is there any particular type of service should I use? What is the best way to do it?

I did read many docs from bloomreah’s site, but still very confuse.

I do see the result in localhost:8080/cms/respository when I play with the xPath query, but not sure
should I use this service and how?