Application Programming Interface (API)
An API is a software intermediary that allows two or more applications to talk to
each other.
API Type in terms of Release Policies:-
• Private – It can be used within the organization.
• Partner – It can be used within Business Partners.
• Public – It can be used any third party Developers.
Provider
Google Map API
Application
Google Map
Consumer
Flipkart API JioMart API
Provider Provider
Consumer Website
Snapdeal API Amazon API
Provider Provider
Database
Application
Database
API
Web Application
How use API
Database
API
Application
API Key/Token: 23423jkhjhgh32434hjgjh4343
Web API
An API, which is interface for web is called as Web API.
It may consist of one or more endpoints to define request and response.
How Web API Works
Web API
Database
Web Application
• Client makes HTTP Request to API
• API will communicate to Web Application/Database (If needed)
• Web Application/Database provides required data to API
• API returns Data to Client
Note – Json Data, XML Data
How to use Web API
Database
API
Web Application
• Register/Sign-up to API
• API may provide API Key for Authentication purpose
API Key/Token: 23423jkhjhgh32434hjgjh4343
• Whenever you need to communicate with server make Request to API with API Key
http://geekyshows.com/?key=23423jkhjhgh32434hjgjh4343
• If API Key authentication succeed, API will provide required Data