How to connect my own software to MT4 ?

 

I have developed an accounting software and am going to get the equity, balance, .... from MT4 by entering user id, Password and broker's host.

I would appriciate if someone can help me on how to get the API for this?

 
You can write an EA, or you can connect with Python.