How to view billing via API

Welcome to the community, @Igor_Kuznetsov .

Have you checked out the Usage API?