The problem of excessive API charges

We were in the exact same situation, so we just posted the cause and solution.
Please take a look.