What are APIs 🤔

What are APIs 🤔

·

2 min read

Okay! so firstly I know this seems to be a very complicated term, But let's break it down into small pieces and understand.

So APIs are Application Programming Interfaces these are mainly used when an application needs to talk to different server for data fetching.

Too much of technical terms... I know😂

So lets consider a scenario you are in a hotel a 5 star hotel, now it obvious we don't have genies in real world so we definitely need someone to take our order, right! Now waiter approaches you and he jots down your desired dishes for order, then he goes to the kitchen asks chef to prepare the listed food and after that he prepares the food and the waiter then comes and serves the order to you.

Thats all this is what API is, Yesss this is what API actually is. Let me break this analogy further.

Now here you as a person are Application which is calling server The waiter is the API And the Chef is the Server

Similarly in real world applications the application makes an API call it goes to server then fetches data or does some computation work and gets the response back to the application.

Yess, That's all 🤩

For more in depth knowledge check out these resources

How to write APIs in Express APIs

I hope you liked the flow, tune in for more upcoming cool blogs.

Â