WEBVTT

00:00.000 --> 00:02.400
Software development, different applications

00:02.400 --> 00:04.800
often need to communicate with each other.

00:04.800 --> 00:07.720
For example, a weather app displaying temperature data

00:07.720 --> 00:09.840
from an online weather service.

00:09.840 --> 00:12.520
That's where APIS come in.

00:12.520 --> 00:15.360
Application programming interface is a set of rules

00:15.360 --> 00:18.080
and protocols that allows different software components

00:18.080 --> 00:19.600
to communicate.

00:19.600 --> 00:21.680
Think of it like a restaurant menu.

00:21.680 --> 00:23.640
The menu list dishes you can order,

00:23.640 --> 00:26.160
and when you place an order, the kitchen prepares it

00:26.160 --> 00:27.080
and delivers it.

00:28.080 --> 00:34.080
Similarly, an API provides a list of available services or data.

00:34.080 --> 00:37.080
The client, like an app, requests what it needs.

00:42.080 --> 00:44.080
And the server sends back the response

00:44.080 --> 00:45.680
through a defined interface.

00:45.680 --> 00:49.880
So, APIS act as bridges that allow software systems

00:49.880 --> 00:53.080
to interact without knowing each other's internal details.

00:53.080 --> 00:55.080
APIs are essential because they make

00:55.080 --> 00:58.080
modern applications work together seamlessly.

00:58.080 --> 01:01.080
They enable integration between different services.

01:01.080 --> 01:04.080
For example, a travel app that combines flight booking

01:04.080 --> 01:07.080
with live weather updates or maps.

01:07.080 --> 01:09.080
They also allow separation between the front end

01:09.080 --> 01:12.080
and back end of an application.

01:12.080 --> 01:15.080
This means developers can update how an app looks front end

01:15.080 --> 01:19.080
without affecting how it works behind the scenes back end.

01:19.080 --> 01:22.080
Most importantly, APIS encourage modular

01:22.080 --> 01:24.080
and scalable architectures.

01:24.080 --> 01:28.080
Each part of a system can be developed independently,

01:28.080 --> 01:32.080
making it easier to maintain and expand over time.

01:32.080 --> 01:35.080
APIS come in different forms depending

01:35.080 --> 01:38.080
on how they are designed and used.

01:38.080 --> 01:39.080
Restful APIs.

01:39.080 --> 01:42.080
These are the most widely used.

01:42.080 --> 01:45.080
Rest APIs rely on HTTP methods such as

01:45.080 --> 01:49.080
Get, Post, Put, and Delete to manage data.

01:49.080 --> 01:52.080
They are simple, lightweight, and usually exchange information

01:52.080 --> 01:56.080
in J-S-O-N format.

01:56.080 --> 01:59.080
Simple Object Access Protocol is an older protocol

01:59.080 --> 02:03.080
that uses XML to send messages between systems.

02:03.080 --> 02:09.080
It's more structured and secure, often used in enterprise environments.

02:09.080 --> 02:12.080
GraphQL APIs. Brief mention.

02:12.080 --> 02:15.080
A query-based approach where clients can ask for exactly

02:15.080 --> 02:18.080
the data they need. Nothing more, nothing less.

02:18.080 --> 02:21.080
This makes data retrieval more flexible and efficient.

02:22.080 --> 02:25.080
Each type of API serves a different purpose

02:25.080 --> 02:28.080
and developers choose based on the project's needs,

02:28.080 --> 02:32.080
whether it's speed, flexibility, or security.

02:32.080 --> 02:37.080
APIS are everywhere in our daily digital experiences.

02:37.080 --> 02:40.080
Social media APIs like Facebook and Twitter

02:40.080 --> 02:43.080
allow apps to post or retrieve user feeds.

02:43.080 --> 02:46.080
Payment APIs such as Stripe and PayPal

02:46.080 --> 02:48.080
handle secure online transactions.

02:49.080 --> 02:52.080
Maps and Geocoding APIs like Google Maps

02:52.080 --> 02:55.080
provide location and navigation data.

02:55.080 --> 02:57.080
For a quick classroom exercise,

02:57.080 --> 03:01.080
think about the APIS you use every day.

03:01.080 --> 03:03.080
Log in via Google on a third-party app,

03:03.080 --> 03:05.080
checking whether on your phone

03:05.080 --> 03:08.080
or using maps to find a nearby cafe.

03:08.080 --> 03:14.080
All these use APIS to share data between applications instantly.

03:14.080 --> 03:19.080
Quick discussion. How do APIS impact the apps you use daily?

03:19.080 --> 03:22.080
They make web and mobile applications more powerful,

03:22.080 --> 03:25.080
interactive, and interconnected.

