Where do I see the earnings and amount to repay?

I cannot find what I earn/lose by supplying/borrowing neither in the site nor the API.
I only found the amount to repay on the site. (but not on the API)

how do I do that on the website and the API?
I only see the initial amount supplied/borrowed, not the additional amount earned/to replay