• Blog
  • LiveCast: API Lifecycle Management
  • Platform Summit 2023
  • Event Calendar
  • Call for Speakers
  • About
  • Contact Us
  • E-books
  • Write
  • Speak
  • Sponsor
  • Partners
  • Partner With Us
  • About
  • Privacy Policy
  • Nordic APIs for Women
  • Blog
  • eBooks
  • Events
    • Platform Summit 2023
    • LiveCast: API Documentation Best Practices
    • Event Calendar
    • Call for Speakers
    • Volunteer
  • Partners
    • Our Partners
    • Partner With Us
  • About
    • Newsletter
    • Contact us
    • Privacy Policy
    • Create with Us
    • Nordic APIs for Women
  • Search

5 Examples of APIs We Use in Our Everyday Lives

Thomas Bush

December 10, 2019

APIs — that is, Application Programming Interfaces — play a bigger role in today’s economy than ever before. They allow us to share important data and expose practical business functionality between devices, applications, and individuals. And although we may not notice them, APIs really are everywhere, powering our lives from behind the scenes.

To help our new readers better understand what APIs do and how they work, we’ve compiled a list of five of the most relatable examples of API usage in our everyday lives. From logging-in with Facebook to paying with PayPal, there’s no doubt you’ll have seen these API integrations somewhere!

1. Weather Snippets

Google utilizes APIs to display relevant data from user search queries.

One common API usage example we come across on a daily basis is weather data. Rich weather snippets seem to be commonplace, found on all platforms, like Google Search, Apple’s Weather app, or even from your smart home device. For example, if you search “weather + [your city’s name]” on Google, you’ll see a dedicated box at the top of the search results (called a rich snippet) with the current weather conditions and forecast. As an example, here’s the search for “weather new york”.

Google isn’t in the business of weather data (yet!), so they source this information from a third party. They do so by means of an API, which sends them the latest weather details in a way that’s easy for them to reformat. As we’ve previously covered, there are many weather APIs that power this kind of functionality.

Clarification: Previously, Google used the Weather Underground API. That service is now a part of IBM’s The Weather Company, which the weather snippet currently links to in the bottom left corner.

2. Log-in Using XYZ

Taken from Buffer’s social login

Another prominent example of API usage is the “log-in using Facebook/Twitter/Google/Github” functionality you see on so many websites. It’s incredibly convenient, but have you ever wondered how it works?

Instead of actually logging-in to users’ social media accounts (which would pose a serious security concern), applications with this functionality leverage these platforms’ APIs to authenticate the user with each login. For example, here’s the Facebook Login API.

The way it works is pretty simple. Every time the application loads, it uses the API to check whether the user is already logged in by means of whatever social media platform. If not, when the user clicks the “Log-in Using XYZ” button, a pop-up opens where they are asked to confirm they actually want to log-in with that social media profile. When the user confirms, the API provides the application with identification information, so it knows who’s logging in.

Also Read: 5 Powerful Alternatives to Google Maps API

3. Pay with PayPal

Most online stores offer Paypal and other payment methods, utilizing API connections to these services.

Ever used PayPal to pay for something, directly within an eCommerce store? Yep, that’s also an API at work. Just like with logging-in using a social media service, the “Pay with PayPal” functionality is built with APIs to ensure that the end application can only do what it needs to, without being exposed to sensitive data or gaining access to unintended permissions.

In terms of the inner-workings of this handy function, it’s very similar to the log-in process described above. When the user clicks the “Pay with PayPal” button, the application sends an “order” request to the PayPal API, specifying the amount owed and other important details. Then, a pop-up authenticates the user and confirms their purchase. Finally, if everything goes to plan, the API sends confirmation of payment back to the application.

4. Twitter Bots

TinyCareBot, a Twitter bot, uses the Twitter API to automate posts.

Another example of APIs at work is the huge range of bots on Twitter. Twitter bots are accounts that automatically tweet (or retweet), follow, and send direct messages based on software instructions. There are loads of bots on Twitter, but here are just a few of our favorites:

  • TinyCareBot: Sends hourly reminders to drink water, stretch, get fresh air, and more.
  • Grammar Police: Identifies common grammar mistakes made by its followers.
  • Netflix Bot: Tweets when new content is released on Netflix.

All of these bots are powered by the Twitter API. Aside from allowing you to execute simple actions — like Tweeting a certain phrase or following a user — the Twitter API can also tell bots when something specific happens on the platform. For example, you can ask the Twitter API to tell your bot whenever it receives a new follower. Then, you can program your bot to send a message to that follower using the API.

5. Travel Booking

There are many APIs at work within the travel and booking industry. Click to expand this graphic by AltexSoft.

Ever wondered how travel booking sites are able to aggregate thousands of flights and destinations and showcase the cheapest option? Often, the answer is by using third-party APIs to collect flight and hotel availabilities from providers. Likewise, if you make a booking through one of these services, they’ll use APIs to confirm the trip with the provider they sourced it from.

APIs are great for travel services since they make it easy for machines to quickly and autonomously exchange both data and requests — in this case, trip availabilities and reservation requests. Without using APIs, an employee of the booking service would have to manually email the airline or hotel to find out their availability. Then, after an email comes back from the provider, they’d have to confirm it with the traveler. By the time the travel broker sends yet another email back to the provider, confirming the trip, it’d probably no longer be available!

Related: Do API Standards Differ From Industry to Industry?

Behind the Scenes with APIs

So far, this article has discussed five everyday examples of API usage. However, it’s important to recognize that APIs are used behind the scenes for a whole lot more than those examples could ever illustrate! This is especially true in corporate sectors, where effectively storing and exchanging data is paramount to everyday operation.

Here are just some of the ways APIs power our lives from behind the scenes:

  • Financial institutions like banks use private APIs to track and manage checking accounts, credit cards, and more.
  • Retail giants use APIs to communicate with courier networks, ensuring packages are picked up as soon as possible and tracking them as they are moved.
  • Web applications use APIs to connect user-facing front ends with all-important back end functionality and data.
  • Streaming services like Spotify and Netflix use APIs to distribute content.
  • Automotive companies like Tesla send software updates via APIs. Others use APIs to unlock car data for third-parties.
Also Read: Retail Reborn: The Smart Store Concept

Final Thoughts

APIs are everywhere, and it only takes picking up your smartphone to see them in action. Whether it’s searching for the weather on Google, logging-in with Facebook, paying with PayPal, or interacting with a Twitter bot, all of these things are powered by APIs. To boot, there’s a lot more going on with APIs behind the scenes. We may not see them as much, but they’re integral to our daily digital lives.

 

api, API use cases, APIs, classic, common use cases, examples APIs, Facebook, Google, historical, log-in, login, Paypal, platform, prominent, Twitter, use case, use cases, weather, web API

0

Thomas Bush

Thomas Bush is an enthusiastic freelance writer from the United Kingdom, who loves breaking down tough topics into bite-sized articles. Covering everything from cryptocurrencies to medicine, and now APIs, you can find out more about Thomas on LinkedIn or on his website at https://thomasbush.co.

  •  How to Build a Telegram Bot...
  •  13 Frameworks for Building... 

Latest Posts

5 Pillars of API Management

Ross Moore
February 7, 2023

What’s The Difference Between URLs and URIs?

Vyom Srivastava
February 2, 2023

What Is API Lifecycle Management?

Art Anthony
February 1, 2023
API-Documentation-Best-Practices
How to Implement Zero Trust API Security
Call for Speakers
Developer Experience CTA

Smarter Tech Decisions Using APIs

API blog

High impact blog posts and eBooks on API business models, and tech advice

API conferences

Connect with market leading platform creators at our events

API community

Join a helpful community of API practitioners

API Insights Straight to Your Inbox!

Can't make it to the event? Signup to the Nordic APIs newsletter for quality content. High impact blog posts on API business models and tech advice.

Join Our Thriving Community

Become a part of the world’s largest community of API practitioners and enthusiasts. Share your insights on the blog, speak at an event or exhibit at our conferences and create new business relationships with decision makers and top influencers responsible for API solutions.

Nordic APIs Community Nordic APIs Community Nordic APIs Community Nordic APIs Community

Write

Speak

Sponsor

Events

  • Events Calendar
  • Best Public API of 2021
  • Curity Webinars

Blog

  • Blog
  • Business Models
  • Marketing
  • Platforms
  • Security
  • Strategy
  • Design
  • Open Banking

Resources

  • eBooks
  • Blog Submission Guidelines
  • Call for Speakers
  • Code of Conduct

About

  • About
  • Nordic APIs for Women
  • Volunteer
  • Privacy Policy
  • Contact us

Social

© 2013-2023 Nordic APIs AB   |  Supported by Curity.io  |   Website policies