<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tanya Jha</title>
    <description>The latest articles on DEV Community by Tanya Jha (@tanyajha12).</description>
    <link>https://dev.to/tanyajha12</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3976514%2Fd38c7dc0-dac2-4d93-a41b-2d7ef8fb5731.png</url>
      <title>DEV Community: Tanya Jha</title>
      <link>https://dev.to/tanyajha12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanyajha12"/>
    <language>en</language>
    <item>
      <title>What is an API? Explained the way I wish someone had told me</title>
      <dc:creator>Tanya Jha</dc:creator>
      <pubDate>Tue, 09 Jun 2026 19:37:04 +0000</pubDate>
      <link>https://dev.to/tanyajha12/what-is-an-api-explained-the-way-i-wish-someone-had-told-me-1k3m</link>
      <guid>https://dev.to/tanyajha12/what-is-an-api-explained-the-way-i-wish-someone-had-told-me-1k3m</guid>
      <description>&lt;p&gt;When I first started coding, people kept saying "API" everywhere.&lt;br&gt;
Tutorials → API&lt;br&gt;
Projects → API&lt;br&gt;
Job descriptions → API&lt;/p&gt;

&lt;p&gt;And I kept thinking, okay but WHAT EVEN IS IT 😭&lt;br&gt;
Everyone explained it in complicated words, so I just nodded and moved on.&lt;/p&gt;

&lt;p&gt;If you're confused too : keep reading. This will finally make sense.&lt;/p&gt;

&lt;p&gt;Think of a restaurant 🍽️&lt;/p&gt;

&lt;p&gt;You sit at the table and order food&lt;br&gt;
You don't walk into the kitchen and cook it yourself&lt;br&gt;
You tell the waiter → waiter goes to the kitchen → brings food back&lt;/p&gt;

&lt;p&gt;That waiter is the API.&lt;/p&gt;

&lt;p&gt;you - your app&lt;br&gt;
waiter - api&lt;br&gt;
kitchen - another company's system&lt;/p&gt;

&lt;p&gt;The API takes your request, goes to get what you need, and brings back the answer. That's the whole job.&lt;/p&gt;

&lt;p&gt;Where do you actually see APIs in real life? 👀&lt;/p&gt;

&lt;p&gt;☁️ Weather app → asks a weather service for today's weather&lt;br&gt;
🔐 "Login with Google" → website asks Google to confirm who you are&lt;br&gt;
🗺️ Swiggy / Uber maps → uses Google Maps API to show your location&lt;br&gt;
💳 Online payments → Razorpay / Stripe API processes the transaction&lt;/p&gt;

&lt;p&gt;Once you know what an API is, you'll start seeing them everywhere.&lt;/p&gt;

&lt;p&gt;What does it look like in code? 💻&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You open a weather app and search Delhi.&lt;/li&gt;
&lt;li&gt;Your app sends a request: GET /weather?city=Delhi&lt;/li&gt;
&lt;li&gt;API replies: { "temperature": "34°C", "condition": "Sunny" }&lt;/li&gt;
&lt;li&gt;Your app shows: 🌤️ Delhi → 34°C&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;See what happened?&lt;/p&gt;

&lt;p&gt;Your app didn't calculate the weather.&lt;br&gt;
It didn't store any weather data&lt;br&gt;
It just asked someone who already had it&lt;/p&gt;

&lt;p&gt;That's exactly what APIs do.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;So what is an API? One line:&lt;/u&gt;&lt;br&gt;
API = messenger between two applications.&lt;br&gt;
You ask → API gets it → you receive the answer.&lt;/p&gt;

&lt;p&gt;That's genuinely it. 🙂&lt;/p&gt;

&lt;p&gt;I'm learning in public and writing about everything that confused me as a beginner. Follow if you want more of this 👋&lt;/p&gt;

</description>
      <category>api</category>
      <category>5minread</category>
    </item>
  </channel>
</rss>
