What is an API?
Вставка
- Опубліковано 18 чер 2015
- Want to learn how to build your first API in less than 10 mins? Click here to get started:
developer.mulesoft.com/tutori...
Checkout the MuleSoft Platform here: www.mulesoft.com/platform/api
The textbook definition goes something like this:
“An application programming interface (API) is a set of routines, protocols, and tools for building software applications. An API expresses a software component in terms of its operations, inputs, outputs, and underlying types. An API defines functionalities that are independent of their respective implementations, which allows definitions and implementations to vary without compromising each other. A good API makes it easier to develop a program by providing all the building blocks.
APIs often come in the form of a library that includes specifications for routines, data structures, object classes, and variables. In other cases, notably SOAP and REST services, an API is simply a specification of remote calls exposed to the API consumers.
An API specification can take many forms, including an International Standard, such as POSIX, vendor documentation, such as the Microsoft Windows API, or the libraries of a programming language, e.g., the Standard Template Library in C++ or the Java APIs.
An API differs from an application binary interface (ABI) in that an API is source code-based while an ABI is a binary interface. For instance POSIX is an API, while the Linux Standard Base provides an ABI”.
To speak plainly, an API is the messenger that runs and delivers your request to the provider you’re requesting it from, and then delivers the response back to you.
To give you a familiar example, think of an API as a waiter in a restaurant.
Imagine you’re sitting at the table with a menu of choices to order from, and the kitchen is the provider who will fulfill your order.
What’s missing is the critical link to communicate your order to the kitchen and deliver your food back to your table.
That’s where the waiter (or API) comes in. ”AHEM”
The waiter takes your order, delivers it to the kitchen, and then delivers the food (or response) back to you. (Hopefully without letting your order crash if designed correctly)
Now that we’ve whetted your appetite, let’s apply this to a real API example. In keeping with our theme, let’s book a flight to a culinary capital - Paris.
You’re probably familiar with the process of searching for airline flights online. Just like at a restaurant, you have a menu of options to choose from ( a dropdown menu in this case). You choose a departure city and date, a return city and date, cabin class, and other variables (like meal or seating, baggage or pet requests)
In order to book your flight, you interact with the airline’s website to access the airline’s database to see if any seats are available on those dates, and what the cost might be based on certain variables.
But, what if you are not using the airline’s website, which has direct access to the information? What if you are using online travel service that aggregates information from many different airlines? Just like a human interacts with the airline’s website to get that information, an application interacts with the airline’s API.
The API is the interface that, like your helpful waiter, runs and and delivers the data from that online travel service to the airline’s systems over the Internet.
It also then takes the airline’s response to your request and delivers right back to the online travel service .
And through each step of the process it facilitates that interaction between the travel service and the airline’s systems - from seat selection to payment and booking.
So now you can see that it’s APIs that make it possible for us all to use travel sites. They interface with with airlines’ APIs to gather information in order to present options back to us
The same goes for all interactions between applications, data and devices - they all have API’s that allow computers to operate them, and that's what ultimately creates connectivity.
API’s provide a standard way of accessing any application, data or device whether it is shopping from your phone, or accessing cloud applications at work.
So, whenever you think of an API, just think of it as your waiter running back and forth between applications, databases and devices to deliver data and create the connectivity that puts the world at our fingertips. And whenever you think of creating an API, think MuleSoft. - Наука та технологія
Interviewer: What is an API?
Me: Well, its nothing but a waiter in a restaurant.
...
Interviewer: I see you're a man of culture as well. 10 points for Gryffindor!
Me(You): ( ͡° ͜ʖ ͡°)
Interviewer: You are hired!
Haha, Jokes apart, this video offers the best analogy.
xD
@@some90sKid 🙌😁👍
I just realised i was an API and quit my job at the restaurant
ahahahaahahah
heheheh
now they gotta "take on" new api haha
HAUHAHAHAHAHHAH
Lols, Howz th@ paying out for You?
0:56 Exactly what happened to my brain when I tried looking up the definition of API, and exactly why I watched this video. It's crystal clear now. Thank you Mulesoft. You'll forever be in my heart.
agreed!
I'll Make your words my own.
Lol, yes, same
Same buddy,
I love how they just nonchalantly start reading the definition as if that's how they're going to explain it, then start speeding it up without warning then they're like "pysch! just messin. let me break it down for ya..." 😆
This is Legitimately the BEST and CLEANEST Definitions of API. Thanks a Lot to Whoever came with this Example. :)
Agreed!
Exactly my thoughts
Can't agree more. 🙋
Excellent use of the waiter analogy for describing what an API does!
Hialeah come to understand what an API is I'm so grateful for the explanation now I understand where I was going wrong and my
Perfect explanation + super clear animation. Neat as hell, neat as MuleSoft.
(why the hell am I doing this...)
Nice one brodie parmelee
lol... totally agree....
Maybe they paid you..? :D
lolll
hahahhahhaha
It's the people that are able to explain complex processes in a simple and elegant manner that truly understands. Everyone else outside of this simplicity, is sending us all into a dizzy technical spin. Thank you very much, absolutely stunning video!
As einstein once said :)
Hence proved, learning in youtube is far better than learning in graduation 😂😂😂
Definitely 😂👌
So true 😂
for real xD
100% legit
But you won't get a degree watching youtube
Informative, and clear. 10/10 IGN
Scotty not enough water, 6/10
Scotty complicate mechanics 4/10
InGameName?
Too realistic and scary 2/10 IGN
all takes is 3 min to explain this concept and some take 30 min 1 hr and you still don't get it . .. thanks
Alelu Melelu because even those guys don't know. Still they keep on throwing articles on students
Thanks a lot, please share to all music lovers ua-cam.com/video/sFYwsWTiULY/v-deo.html
Lol it's incorrect though
Ahlelu Melelu, ganti kek ga ada orang lain apa.
Very well said.
Most Precise.Whenever I see API I'll surely think abt Mulesoft🤣
This 3 minute video taught me more than 4 weeks of school. Keep it up. :)
After watching so many videos dealing with API's and programming.. this one by far takes the cake. Excellent video MuleSoft. You clearly explained a somewhat complex subject in under 4 minutes. You guys definitely know what you're doing. Liked and subscribed.
I typically hate having to search for explanations of things like this, dreading the poor explanation I'm sure to receive, but this was concise and clear, even with an analogy that perfectly framed the concept. Thank you so much!
man, that is because they want to make people look like they are busy and professional... think abut academic paper and text book you read in university....
This is a award winning video for simplified API concept.Great job .
Okay. 1:04 is, without a doubt, _the_ single, most coherent answer to the question of what an API is that I've ever seen. Thank you so much, MuleSoft.
This was by far the easiest and most intuitive explanation I've seen. 10 on 10. Now I can go and look at the technical details with a much better understanding.
this is the most elegant add u can see.
M Viktor
M Viktor .A2×wA
idk, have you ever seen the Lucid Chart adverts??
@@bethanytalbot2445 : Lucidchart is the best, i'd never skip a lucid chart ad
We need a platform that has Videos that get straight to the point under 5 mins just like this. This was perfect!
Thank you so much for explaining this in a way that I can understand 😊 I recently enrolled in online school (I trying to learn a new skill-set). I wish they explained what they're teaching in the same "easy-to-understand" way this video did. Awesome video. 😄👍
Easily explained. Never thought I would get to know in such less time the basic of API.
I've studied it about 5 years ago, I just understood it,
perfect .. 10\10, thanks a lot
what the hell were you doing for 5 years
This is by far the best video source for an API! Not only does it provide you with clear explanation but the quality of the video itself is truly remarkable. Great job!
I'm a beginner in programing rn but this simple explanation gives me so much insight into what web development actually entails
Perfect video for non-technical people such as myself haha. Clean, simple, and descriptive! Well done
I knew this was the explanation I was looking for simply by the thumbnail. Simple and informative. Good use of simile and metaphor.
10/10 IGN.
What is the "IGN" part of your comment? Are you talking about the gaming review website IGN?
It has little something in it for everyone
Just started learning API and my instructor suggested me to watch me this video. 😁😁
That's by far the BEST explanation/definition I've ever seen about anything
That is what I call a quality video! Very well done! Thank you!
Dah siap dddd$
foonadea#'=stbd$\:]\w\d"('+@iitc=@ddeqa I
perfect. exactly what I wanted. I wish there was a video like this for every tech term/word/concept.
me too😭
I wish there was such a video for everything.
This is the first time I understand tech-related vids at first watch...great explanation. Kudos
This video is better than what my instructor tried to teach me in a 60mins long lecture, Thanks @ MuleSoft Videos🥰
I absolutely love this explanation. Simple, to the point and awesome examples used. Thank you.
This was simple, quick, and straight to the point. Thank you!
The simplest and clearest video about API ever! Thanks
Thank You. That was the absolute BEST explaination I have ever gotten for what an API is. So from now on I'll just think API = Waiter and I'll always remember exactly what an API is.
That is the most precise explanation for API. Good job!!
The best explanation: "What is API?"!
1000s of slides from my university did got me confusions not the results... This one video is a game changer! THANKS A LOT!
That's the best explanation of API out there, just sent it to a new colleague who had no clue what an API is.
Simply awesome, explained in the easiest way, I never forget mulesoft
Sometimes it's needed to sacrifice clarity for brevity when being introduced to a new topic. I thought this was a very intuitive overview of API's, thank you.
This is the clearest and simplest explanation of an API! I just couldn’t work my mind of what it was before I ran into your video. Already subscribed 😊
Hands down the most crystal clear analagy to explain a concept I have encountered so far.
yeahh right, its even made 6 years ago!!
Simply awesome.. Good Explanation!!!
Perfect Animation & Basic Explanation...Well Done ..Subscribed :D
Hisham Zahran me to
Perfect illustration of what an API is.
Excellent explanation for a novice: short, clear, and entertaining!
One of the best and simple explanation of API, I've ever seen. Thank you for the time and effort you put in to make this video.
Agreed!
I can't think of a more simple explanation about API than this.
This is the ultimate best explination ever. I didn't know anything about API just 4 min ago but now I can see how it works and where it could work thank you so much for this informative and helpful video for the people of the internet^_^
I literally needed that!
Thank you!
The graphics were amazingly done. Great explanation too!
Short and easy to understand, all concept explanation videos should be like this!
The best explanation after watching hundreds of videos. Thanks for your plain English!
Great explanation!
sarcasm is strong in this one
i agree
i agree with that
Great Appreciation to the Presenter for make this video simple and easily understating way.
The waiter metaphor works well to explain this to guys who haven't worked with APIs or written them before. Previously, I had heard the metaphor of a cell phone dial pad, but this is even better. Thanks, MuleSoft. I send you wishes for clean, simple, and effective design.
best explanation , first time i understand it.
Excellent video and explanation - well done!!!
The best explanation about API one could find over the Internet
subbed just for this explantion , super clear , simple and easy , ive been coding for 1 year now ad its the first time i understand it
totally loved how you explains it!
Oh and Subscribed for sure!!!
1:01, i thought i increased the speed by mistake
YOU DUM DUCKER
Jesse wooosh
@@mudalad1215 HOW IS IT THAT I DIDN'T GET THE JOKE!! YOU THINK YOU ARE SO SMART BY DOIN THAT OLD ASS /R SWOOSH SHIT YOU LITTLE SHIT
Lol this reply section is great 👏
that is the more interesting part of the video though
'phew! such a relief!' this was my reaction after watching this video. everything in my head about API is sorted now! thanks alot!
Short, simple, and to the point. Excellent video.
Well, the "text book" explanation explains it quite good!
perfect and straight forward
One of the best explanation in 3 minutes. Great.
This is simple and straightforward. Bang ON. Thank you!
Amazing guys just amazing this video and its production cost oh my god great ,, but why soo few subs :( .....great video keep up good work i will bring few more subscribers :D
now I understand it, thanks a lot
Thank you for this video, it really helped me understand API's more clearly
This is a good explanation, i have spent 2 months just to understand the logic behind api's and couldn't do that you really helped me... Thanks Alot...., I recommend this to everyone
Very nice explanation
Damn good video
Beautifully explained.
There are literally videos out there that just re-read the definition of an API in all its jargon. Thank you for clearing this up and speaking plain English. Now I don't need a computer science degree to understand how this works.
While other sources explain API in a bunch of paragraphs in which it takes me hours of weeks of years (oops, sarcasm) to be understood, the maker of this content makes it easy and saves my time. Thank you so much
What program did you use to do this amazing video?
damn, that french meme music got me
for real lmao
Someone pls tell me how the animation for this video is made. I mean what is the underlying technology. I am a noob so dont really have much idea but its inte-resting
Yash Verma these are explainer videos and they’re mostly made with After Effects and other video editing softwares that support motion graphics.
Kudos to you. This short video is worth my time over spending hours reading wikipedia articles.
Omg! This video is crystal clear about what an API is. Thank you so much!
How much do you tip an API?
0:56 I was like Molly Hartley's ghost took over this device
Perfect description, amazing (and humorous) animations, thanks for this.
The main difficulties of existing API multilevel systems are:
1.The difficulty of porting a program code from one API interface to another.
2.Loss of functionality upon jumping from lower layer to higher.
what software do you use??? ITS AMAZING
,O
flash
Saksham Goyal JavaScript
Adobe After Effects with Motion Graphics
+senthil kumar utf
Explained in an easy and comprehensive way. Now I will never forget what API is
Thanks for the brilliant illustration, using real-life example to explain in detail what API is. This was indeed helpful.
Next topic should be *How can I make money with api*.
Dmitry hi stewie
Whoever the 6 people are that don't like this video are bozos.
+Tim Hansen Dont mind them, they dont ,now anything.
Well ... They may be the people who posted about API in their channel which may run for an hour and still fails to make us understand.. lol
This way of transmitting the knowledge is greatly needed.
simply great... simplicity on the other side of the complexity thanks :)
That is not the right definition. The API is just the SPECIFICATION of a set of public function an application exposes to its dependencies. In the restaurant analogy the API would be the menu, not the waiter.
Finally, someone that made sense!
Paul Kuit
It's also the waiter
An API, short for Application Programming Interface, is a set of rules and protocols that allows different software applications to communicate and interact with each other. It serves as an interface or intermediary between two software systems, enabling them to exchange data and perform various tasks seamlessly.
Let's dive into a detailed explanation of APIs:
Purpose and Function: APIs are designed to simplify the development process by providing a standard set of rules and functionalities that can be used by developers to integrate their applications with other software systems. They define how different software components should interact, request services, and exchange data.
Types of APIs: There are various types of APIs based on the level of abstraction they provide and the purpose they serve. Here are some common types:
Web APIs: These are APIs that are accessed over the internet using standard web protocols such as HTTP. Web APIs allow different applications to interact with web-based services or retrieve data from remote servers. They are widely used for building web applications, mobile apps, and integrating with third-party services.
Library or Framework APIs: Libraries or frameworks often provide APIs that expose pre-built functions, classes, and methods to facilitate software development. These APIs offer a specific set of functionalities for developers to use within their applications, saving them time and effort in implementing common tasks.
Operating System APIs: Operating systems provide APIs that allow developers to interact with various components of the operating system, such as file systems, network interfaces, hardware devices, and more. These APIs enable application developers to leverage the underlying capabilities of the operating system.
Hardware APIs: Hardware APIs, such as those provided by graphics cards or sensors, enable software applications to access and utilize specific hardware functionalities. These APIs often come with specialized libraries or drivers that abstract the low-level complexities of interacting with the hardware.
API Components:
Request: An API request is made by a client application to initiate a specific action or retrieve data from a server or service. The request typically includes the desired operation, data parameters, and authentication details, if required.
Endpoint: An endpoint is a specific URL or URI (Uniform Resource Identifier) that the client application interacts with to access a particular API resource. Endpoints represent different functionalities or resources provided by the API, such as retrieving user information or submitting an order.
Methods: APIs often define different HTTP methods or verbs to indicate the type of operation being performed on a resource. The most common methods are GET (retrieve), POST (create), PUT/PATCH (update), and DELETE (remove). These methods determine the action to be taken on the specified endpoint.
Response: Once the API server processes the client's request, it sends back a response containing the requested data or the result of the operation. The response typically includes an HTTP status code, headers, and a body containing the actual data or a message.
Authentication: APIs may require authentication to ensure authorized access to protected resources. This can be achieved through various authentication mechanisms, such as API keys, tokens, or OAuth, where the client provides valid credentials along with the API request.
Data Formats and Protocols: APIs utilize specific data formats and protocols to structure and transmit data between applications. The most common ones include:
JSON (JavaScript Object Notation): JSON is a lightweight and widely-used data format that provides a human-readable and easy-to-parse structure for representing data objects. It is often used as the standard format for data exchange in modern APIs.
XML (eXtensible Markup Language): XML is another data format that uses tags to define structured data. It was widely used in the past but has been largely replaced by JSON in modern APIs.
REST (Representational State Transfer): REST is an architectural style that provides guidelines for building scalable and loosely-coupled web services. It utilizes standard HTTP methods (GET, POST, PUT, DELETE) to perform operations on resources identified by URLs. RESTful APIs often use JSON for data exchange.
SOAP (Simple Object Access Protocol): SOAP is a protocol that defines a standardized format for exchanging structured information using XML. It is often used in enterprise-level systems and supports more complex operations and messaging patterns than REST.
API Documentation: Good API documentation is crucial for developers to understand how to use an API effectively. API documentation provides detailed information about available endpoints, request and response formats, authentication methods, error handling, rate limiting, and any additional requirements or guidelines.
Examples of API Usage: APIs are used extensively in various domains. Here are a few examples:
Social Media APIs: Platforms like Facebook, Twitter, and Instagram provide APIs that allow developers to integrate social features into their applications, such as posting updates, fetching user profiles, or sharing content.
Payment Gateway APIs: Payment service providers like PayPal, Stripe, and Braintree offer APIs to enable businesses to process online payments securely.
Mapping and Geolocation APIs: Services like Google Maps and Mapbox provide APIs that allow developers to embed maps, geocoding, and routing capabilities into their applications.
Weather APIs: Weather services such as OpenWeatherMap or AccuWeather offer APIs that provide real-time and forecast weather data to developers for integration into their applications.
E-commerce APIs: Platforms like Shopify, WooCommerce, and Amazon provide APIs to manage product catalogs, process orders, and handle inventory management.
In summary, APIs act as intermediaries, enabling different software systems to interact and exchange data seamlessly. They provide a standardized set of rules, protocols, and endpoints for developers to integrate their applications with external services, libraries, frameworks, or hardware. APIs have become a fundamental building block of modern software development, enabling the creation of complex and interconnected applications.
I don't know why everyone loved this video so much. You are telling what does API do, not what is API.
Thank you Mulesoft, this is a very informative video and super helpful! Highly recommend for everyone who just started to learn CS.
what if the server at the restaurant is a computer programmer.
In web development there's no such thing as an "API". It's why no one knows what it really is and all are afraid to ask. Someone just invented a term full of jargon that sounded good, and we all went _Oh yeah, sure API, of course, duh..._ *The term "Application Programming Interface" is meaningless.*
The way it really works is this: The client makes a request to the server, then the server fulfills that request to the client. So there's no "waiter" involved. I simply yell into the kitchen and the kitchen provides me with food. That's it!
Does the kitchen come to you?
@@kholofelomatlala8685 No. I'm already standing at the Kitchen entrance. I yell to a cook, who hands me the food
Wow. This was just the explanation that I wanted. I haven't watched the video fully yet(I'm in the mid-way) but I really like it a lot. Such content is very helpful.