I pulled out my phone just now and checked my latest text messages. Of the 12 most recent texts I received, four were from automated sources: our local transit agency, warning there could be delays in my neighborhood; a contractor we’d hired for a project, sending me an automated message that he was on his way from his last job; a local restaurant, confirming that I’d placed a takeout order that would be ready in 15 minutes; and our credit union, confirming that I had successfully completed my password update.
Other texts I received recently include one from a food delivery service, offering me a discount coupon if I place an order using its app this weekend, and one from a ticket broker, letting me know tickets are available for a number of upcoming local events.
No humans were directly involved in the transmission of these messages. Everything was automated. For example, I signed up for the transit system messages because I sometimes take the bus for events. (Why pay $30 for parking near the stadium and deal with game-day traffic when I can leave my car at home for free?) Now I get automatic text alerts when there are schedule or service changes on my routes.
Similarly, the food delivery app knows my family often orders takeout for dinner on Fridays, so the app designers built in a weekly nudge to encourage us to do it again. Likewise, the ticket app knows what kind of events I’ve bought tickets for in the past, so it encourages me to buy more tickets when similar events are coming up.
This kind of communication uses an application programming interface, or API. APIs allow two different pieces of software to share information. The app on the contractor’s phone and the text-messaging software on my phone, for example: In this case, the data it shared was: “I will be there in 20 minutes.”
There are a large number of APIs for internal business use as well. API communications is one of the technologies that enables the Internet of Things.
Automated vending machines, for example, can use APIs to alert their company’s home offices when the cash box is full or the Snickers supply is empty. APIs can be used to monitor remote equipment and alert maintenance teams when that equipment needs attention.
Tax preparers can even get an API to share data with the Internal Revenue Service about their clients’ tax returns.
Likewise, the ever-more-common smart appliances (smart refrigerators, robot vacuums, smart ovens) also use APIs to communicate their status to users in the home.