Web API kya hota hai?
Web API ka matlab hai Web Application Programming Interface. Ye ek set of rules (niyam) hota hai jo do software applications ke beech baatcheet (communication) karne ke liye use kiya jata hai — especially internet ke through.
आसान भाषा में:
Jab ek app (jaise ki mobile app ya website) kisi server se data maangta hai ya bhejta hai, to uske liye Web API ka use hota hai.
Example:
Maan lo tumhare paas ek weather app hai:
-
App Web API ke through server ko bolta hai: "Mujhe Delhi ka weather batao."
-
Server us API request ko samajh kar data bhejta hai.
-
App us data ko dikhata hai: “Aaj Delhi mein barish hai.”
Web API ke features:
-
Web ke through kaam karta hai (HTTP/HTTPS)
-
Data JSON ya XML format mein hota hai
-
Client (jaise mobile app) aur server ke beech connection banata hai
-
Platform independent hota hai (kisi bhi language se use kar sakte ho)
Use kaha hota hai?
-
Login systems (jaise “Login with Google”)
-
Online shopping websites (product details dikhane ke liye)
-
Weather apps, map services, chat apps, etc.
