javascript – Chrome Extension : get response.body of any post or get request using api

Currently trying to create a chrome extension which needs to listen to the page’s HTTP requests, waiting for any response and get it .
i know there is a way to do this with api but i don’t know where i strat .

I can’t seem to understand how to read the page’s requests from my extension so what would be the best way of handling the situation?
please any help