The Reality
MetaTrader API can mean several different things
For retail traders, there is rarely one clean universal MetaTrader API that safely exposes everything you need. Access is usually broker-specific, terminal-based, or implemented through an Expert Advisor.
That distinction matters. Trade execution access and journal reporting access are not the same problem.