Sometimes APIs are private/exclusive to partners of the developer. And sometimes use of the API is public (e.g. Google Maps). This allows third party developers to build APIs linking separate software stacks. You can take advantage of APIs by outsourcing parts of your software stack, such as images (Flickr) and video (YouTube).