An API is code controlled by other people...that's the definition pretty well. If your code depends upon other's kit then you can have the rug pulled out from under you at any minute. So 1) Do everything locally (ie, don't rely on an API); 2) Have a plan B whereby you can switch out every single component if you need to; or 3) Just go for it with no backup plan. But don't expect any sympathy when it breaks.