There's always the danger of relying on APIs that are subsequently retired with little notice though.
Depending on what data you are trusting the APIs with there is also the security risk. CirleCI have just suffered from MongoHQ's security failure in a way that is extremely urgent and customer affecting.
Yet APIs can be a great way to launch a product fast. You have to become independent as soon as you can.