A way to standardize data and commands that allows multiple programs or systems to communicate with each other for specific tasks without needing them to be fully interoperable or integrated.
I feel much more comfortable when shopping websites use PayPal's API to process my payment instead of having to share my credit card info with them directly.