For banking specifically, you have the Open Banking initiatives around world, including the PSD2 directive in Europe, which requires that APIs for banking should exist and be offered to all.
There is no regulation or other government directives requiring social media companies to provide APIs open to all.