Export G/L Trial Balance

We are using COM API to export G/L Trial Balance data from sage. We are getting current balance but we require last year ending balance, so anyone have any idea to fetch last year ending balance through COM API for trail balance.