Application programming interfaces (API) have been around since the 1960s. So if they aren’t a new concept, why are they such a hot topic lately?
In short, without APIs, the digital experiences that we expect every day as consumers wouldn’t be possible. They’re doing everything from driving information-rich marketing campaigns and connecting mobile apps to streamlining internal operations. Businesses now know that investing in an API strategy can pay significant dividends—and Upwork’s free ebook, The API Economy, can help with that strategy.
Here’s a brief introduction to what APIs are and what they can do—be sure to download the free ebook to learn even more about this technology and what it can do for you.
First, let’s look at an example of an API.
APIs do a lot of heavy lifting, both in mobile and on the web. They’re responsible for nearly everything we do—and with just a few taps or clicks, let you do things like order a pizza, book a hotel, rate a song, or download software. APIs work quietly in the background, making the interactivity we expect—and rely upon—possible.
Here’s how it may look in everyday life: You’re searching for a hotel room from an online travel booking site. Using the site’s online form, you select the city you want to stay in, check-in and checkout dates, number of guests, and number of rooms. Then you click “search.”
As you may know, the travel site aggregates information from many different hotels. When you click “search,” the site then interacts with each hotel’s API, which delivers results for available rooms that meet your criteria. This can all happen within seconds because of an API, which acts like a messenger that runs back and forth between applications, databases, and devices.
WHAT IS AN API? BREAKING DOWN THE ACRONYM
Let’s start with the help of an analogy: withdrawing and depositing cash from an automated teller machine (ATM).
Application: Think of an application like an ATM. When you walk up to an ATM, you expect it will allow you to access your account and complete a transaction like withdrawing cash. Like an ATM, an app provides a function, but it’s not doing this all by itself—it needs to communicate both with the user, and with the “bank” it’s accessing.
An app deals in inputs and outputs, too. A web, mobile, or back-end application is like a machine that solves a specific problem. The software may be a customer-facing app like a travel booking site, or a back-end app like server software that funnels requests to a database.
Programming: APIs allow the ATM to communicate with your bank. The programming is the engineering part of the app’s software that translates input into output. In other words, it translates your request for cash to the bank’s database, verifies there’s enough cash in your account to withdraw the requested amount, the bank grants permission, then the ATM communicates back to the bank how much you withdrew so that the bank can update your balance.
Interface: A user interface (UI) is how we interact with an application. In the case of the ATM, it’s the screen, keypad, and cash slot—where the input and output occurs. We enter our pin number, punch in how much cash we’d like to withdraw, then take the cash that’s spit out. Interfaces are how we communicate with a machine. With APIs, it’s much the same, only we’re replacing users with software.
In a nutshell, that’s an API: an interface that software uses to access whatever currency it needs: data, server software, or other applications. In the case of the ATM, the machine is the end user of an API, not the customer pressing the buttons. It’s the same in the digital world.
WHAT DO APIS DO?
A website uses a URL address to make a call to a server and pull up a webpage in a browser. APIs also facilitate calls to a server, but they execute it more simply. They connect the web, allowing developers, applications, and sites to tap into databases and services (or, assets)—much like open-source software. APIs do this by acting like a universal converter plug offering a standard set of instructions.
The Components of APIs: What You’re Sharing and Who You’re Sharing It With
- All APIs begin with shared assets—they’re the currency of an API. They can be anything a company wants to share—whether that’s internally between teams, or externally with other developers: data points, pieces of code, software, or services that a company owns and sees value in sharing.
- Next is the API, which acts like a gateway to the server. It provides a point of entry for your audience—developers who will use those assets to build their own software—but it also acts like a filter for those assets. You never want to open up your entire server and all of its contents to the outside world. APIs only reveal what you want them to reveal.
- The immediate audience of an API is rarely an end user of an app; it’s typically developers creating software or an app around those assets. This is where assets take flight, yielding creative, new ways to implement data that previously, may or may not have had any real business value to its owner. It also lets developers use reusable software components so they’re not repeating work that’s already been done.
- All of this results in apps that are connected to data and services, allowing these apps to provide richer, more intelligent experiences for users. API-powered apps are also compatible with more devices and operating systems, providing more seamless experiences.
- In the end, the beneficiaries of these apps are the end users themselves. The apps enable end users tremendous flexibility to access multiple apps seamlessly between devices, use social profiles to interact with third-party apps, and more.
How do APIs work?
APIs have endless business opportunities. So how can you leverage the functionality explained above? Here are a few ways to think about APIs and how they can work for you.
- APIs act as a doorway that people with the right key can get through. Want to give specific people—but not everyone—access to your assets? An API acts like a doorway to your server and database that those with an API key (or a paid subscription) can use to access whatever assets you choose to reveal. A key could give a user read access, write access, or both—it’s up to you.
- APIs let applications (and devices) seamlessly connect and communicate. An API can create a seamless flow of data between apps and devices in real time. This not only lets developers create apps for any format—a mobile app, a wearable, or a website—it allows apps to “talk to” one another. This is the heart of how APIs create rich user experiences in apps.
- APIs let you build one app off another app. Entire businesses and popular web applications like Hootsuite, Zapier, and IFTT (If This Then That) have been built solely on creative ways to leverage APIs. APIs allow you to write applications that use other applications as part of their core functionality. Not only can developers get access to reusable code and technology, they can leverage other technology for their own apps.
- APIs act like a “universal plug.” What if all of those people with keys to your door speak different languages? With an API, it doesn’t matter—everyone, no matter what machine, operating system, or mobile device they’re using—gets the same access. Think about those universal outlet plugs that let you use an appliance in any country’s socket. An API is a lot like that; it standardizes access.
- APIs act as a filter. Security is a big concern with APIs—after all, you’re giving outsiders access to your servers and all they contain—which is why they have to be carefully constructed. APIs should give controlled access to assets, with permissions and other measures that keep too much traffic—or malicious traffic—from bringing down your server. This is a very important API design consideration for industries that are heavily regulated, like healthcare and finance.
Now that you’ve got a general idea of what APIs are and some examples of what the technology can do, download the free ebook to learn more, or browse Upwork for a freelance API developer to kick off your API project today.
Upwork is a freelancing website where businesses of all sizes can find talented independent professionals across multiple disciplines and categories. Ready to let freelance experts help you get more done? Start today!