Professional Documents
Culture Documents
A Beginner's Guide To APIs. With Real World Examples - by Jeffrey Chiu - Geek Culture - Medium
A Beginner's Guide To APIs. With Real World Examples - by Jeffrey Chiu - Geek Culture - Medium
Save
Photo: iStock
API’s aggregate data and complete processes over completely disparate systems,
allowing them to interact with each other. In layman’s terms, think of them as a waiter in
a restaurant.
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 1/7
4/14/23, 3:59 PM A Beginner’s Guide to APIs. with Real World Examples | by Jeffrey Chiu | Geek Culture | Medium
A waiter takes the order from the customer which is then relayed to the chef. Once the
chef completes the meal, the waiter brings the meal to the customer. Similarly, an API
receives a request from an application. It then interacts with a foreign server/data source
to collect and process a response, which is then returned to the application.
In recent years, the popularity and usage of API’s have increased exponentially. A recent
study found that two-thirds of developers expected to increase their usage of API’s in
2020. Additionally, companies across industries continue to develop and use API’s as a
critical part of their strategy. By exposing often complex services as simplified code,
API’s are easy to integrate and potential use cases are unlimited.
It’s highly likely that you’ve used an application or viewed a website today that uses an
API, so let’s see it in action.
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 2/7
4/14/23, 3:59 PM A Beginner’s Guide to APIs. with Real World Examples | by Jeffrey Chiu | Geek Culture | Medium
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 3/7
4/14/23, 3:59 PM A Beginner’s Guide to APIs. with Real World Examples | by Jeffrey Chiu | Geek Culture | Medium
When you search for directions on Google Maps, have you ever noticed that there is an
option to book a ride from different ride services?
In the example to the left, Google Maps is using Uber’s API to request information by
sending a HTTP request function with the start and end points of the ride.
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 4/7
4/14/23, 3:59 PM A Beginner’s Guide to APIs. with Real World Examples | by Jeffrey Chiu | Geek Culture | Medium
Uber’s API then sends information back such as how many cars are available, where are
they currently located, and the costs for the various ride options.
This information is then processed by Google Maps and is available to the user directly
linking them the the Uber app if it is previously downloaded.
Similarly booking websites such as Travelocity, Kayak, Expedia, Booking.com, etc. all use
API’s provided by airlines and hotel companies to get information on availabilities,
pricing, and other variables to allow users to make reservations directly through the
online travel service.
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 5/7
4/14/23, 3:59 PM A Beginner’s Guide to APIs. with Real World Examples | by Jeffrey Chiu | Geek Culture | Medium
Nowadays, many apps and websites offer the option to register through an existing
account on another application like Google or Facebook. An example of this are dating
applications, like Tinder, where users can create an account through Facebook with just
one tap.
Tinder uses the Facebook API to verify the user’s identity, as well as access valuable user
information such as gender, age, mutual friends, and photos to build their profile.
Lastly, one of the most commonly used API’s is Google Map’s Geocoding API.
Applications that use it are able to convert addresses to geographic coordinates on a
map.
Yelp in particular uses the Google Map API to access the user’s current location, as well
as locate destinations nearby or afar and mark them on a map directly integrated into
the application.
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 6/7
4/14/23, 3:59 PM A Beginner’s Guide to APIs. with Real World Examples | by Jeffrey Chiu | Geek Culture | Medium
In Conclusion
API’s connect the world like never before. They remove previous barriers with just a few
taps or clicks and can easily be integrated. Just think of them as waiters going back and
forth between delivering data and creating interconnectivity.
https://medium.com/geekculture/a-beginners-guide-to-apis-9aa7b1b2e172 7/7