<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Siddhi on Medium]]></title>
        <description><![CDATA[Stories by Siddhi on Medium]]></description>
        <link>https://medium.com/@gujarathisiddhi2402?source=rss-9e9941bb4f36------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5-G939iadhUXrVim</url>
            <title>Stories by Siddhi on Medium</title>
            <link>https://medium.com/@gujarathisiddhi2402?source=rss-9e9941bb4f36------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:45:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gujarathisiddhi2402/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[APIs for Beginners: What They Are and How They Work]]></title>
            <link>https://medium.com/@gujarathisiddhi2402/apis-for-beginners-what-they-are-and-how-they-work-df647f7ac8cc?source=rss-9e9941bb4f36------2</link>
            <guid isPermaLink="false">https://medium.com/p/df647f7ac8cc</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Siddhi]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 13:58:22 GMT</pubDate>
            <atom:updated>2026-01-14T14:02:56.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*2YkmR612iGydnxZ1n0MozQ.png" /></figure><blockquote><em>APIs are everywhere.<br>Every time you check the weather on your phone, pay for something online, scroll through social media, or log in to an app, something is happening quietly in the background.</em></blockquote><blockquote><em>That “something” is how applications communicate with each other.</em></blockquote><blockquote><em>This article focuses on bringing clarity to that process — explaining </em><strong><em>what</em></strong><em> APIs are, </em><strong><em>why</em></strong><em> they exist, and </em><strong><em>how</em></strong><em> to think about them in a simple, practical way.</em></blockquote><h3>What is an API?</h3><p><em>Think about ordering food at a restaurant.</em></p><p><em>You don’t go into the kitchen and cook the food yourself. Instead, you place an order, the kitchen prepares it, and the result is brought back to you. You don’t need to know how the food is cooked — you only need to know how to place the order and receive the result.</em></p><p>That’s exactly how an API works.</p><p>An <strong>API (Application Programming Interface)</strong> is a way for one application to communicate with another. The application sends a request, the server processes it, and a response is sent back.</p><p>Instead of building everything from scratch, applications use APIs to request data or functionality from other systems. You don’t need to know how the other system works internally — only how to send a request and how to receive a response.</p><h3>Why APIs Exist</h3><p>Imagine if every app had to:</p><ul><li>store its own weather data</li><li>process its own payments</li><li>manage its own maps</li><li>handle its own authentication</li></ul><p>That would be <strong>inefficient</strong> and <strong>unrealistic</strong>.</p><p>APIs allow applications to:</p><ul><li>access data and functionality provided by other systems</li><li>reuse services instead of building the same features repeatedly</li><li>communicate with other applications using clear and well-defined rules</li></ul><p>This is why modern software is built around APIs.</p><h3>Common Types of APIs</h3><h3>1. REST</h3><p>REST (Representational State Transfer) is the most widely used type of API.</p><p>REST APIs work over <strong>HTTP</strong> and follow a simple request–response model. A client sends a request to a server, and the server responds with data, usually in <strong>JSON</strong> format.</p><p>In a REST API, data is treated as individual items such as users or orders. A URL points to the data (for example, <strong>/users</strong> or <strong>/products</strong>), and an HTTP method tells the server what action to take.</p><p>Common HTTP methods include:</p><ul><li><strong>GET</strong> to retrieve data</li><li><strong>POST</strong> to create data</li><li><strong>PUT </strong>to update data</li><li><strong>DELETE</strong> to remove data</li></ul><p>REST APIs are<strong> stateless</strong>, meaning the server does not remember previous requests from a client. Each request must include all the information needed, because the server treats every request as a new interaction.</p><p>Because they are simple, flexible, and supported across all platforms, REST APIs are commonly used in web apps, mobile apps, and public services.</p><h3>2. SOAP</h3><p>SOAP (Simple Object Access Protocol) is a type of API that follows very strict rules and structure.</p><p>SOAP APIs usually work over HTTP, but unlike REST, they <strong>always use XML</strong> to send and receive data. Every request and response must follow a fixed XML format.</p><p>In a SOAP API, the client sends a request wrapped inside a special XML message called a <strong>SOAP message</strong>. The server reads this message, processes it, and sends back another SOAP message as the response.</p><p>SOAP APIs define clear rules about:</p><ul><li>what requests are allowed</li><li>what data must be sent</li><li>what the response will look like</li></ul><p>Because these rules are strict, both the client and server know exactly how to communicate.</p><p>SOAP APIs can keep track of interactions when needed, which makes them useful for multi-step processes.</p><p>Due to their strict structure and reliability, SOAP APIs are commonly used in systems like banking, healthcare, and government applications.</p><h3>3. GraphQL</h3><p>GraphQL is a type of API that lets the client decide exactly what data it wants.</p><p>Instead of receiving a fixed response, the client sends a <strong>query</strong> describing the fields it needs, and the server returns only those fields. This helps avoid receiving extra or unnecessary data.</p><p>GraphQL APIs usually expose a <strong>single endpoint</strong>, and the structure of the response is defined by the query itself.</p><p>Common operations include:</p><ul><li><strong>Query</strong> to fetch data</li><li><strong>Mutation</strong> to change data</li><li><strong>Subscription</strong> to receive real-time updates</li></ul><p>Because of its flexible data fetching, GraphQL is commonly used in applications where different screens or clients need different data.</p><h3>4. gRPC</h3><p>gRPC (Google Remote Procedure Call) is a type of API designed for <strong>fast and efficient communication between systems</strong>.</p><p>Instead of sending data as text formats like JSON or XML, gRPC uses a <strong>binary format</strong>, which makes messages smaller and faster to transmit.</p><p>In gRPC, the client and server follow a <strong>predefined structure</strong> that describes:</p><ul><li>what operations are available</li><li>what data is sent</li><li>what data is returned</li></ul><p>This ensures both sides know exactly how to communicate.</p><p>gRPC supports different communication patterns, including simple request–response and streaming data in real time.</p><p>Because of its speed and efficiency, gRPC is commonly used for <strong>internal services</strong>, <strong>microservices</strong>, and systems where performance is critical.</p><h3>5. Webhooks</h3><p>Webhooks are a type of API that work based on <strong>events</strong>.</p><p>Instead of an application repeatedly asking a server for updates, the server <strong>automatically sends data</strong> to the application when something happens.</p><p>To use webhooks, an application provides a <strong>callback URL</strong>. When a specific event occurs, the server sends a request to that URL with the relevant data.</p><p>Webhooks are commonly used for actions like:</p><ul><li>notifying when a payment is completed</li><li>informing when code is pushed to a repository</li><li>triggering workflows after an event</li></ul><p>Because they send data only when needed, webhooks are efficient and well-suited for event-driven systems.</p><h3>6. WebSockets</h3><p>WebSockets are a type of API used for <strong>real-time, two-way communication</strong>.</p><p>With WebSockets, a connection is opened between the client and the server and kept open. Once the connection is established, both sides can send messages to each other at any time.</p><p>This is different from regular request–response APIs, where a new request is made each time data is needed.</p><p>WebSockets are commonly used for:</p><ul><li>chat applications</li><li>live notifications</li><li>real-time dashboards</li><li>online games</li></ul><p>Because the connection stays open, WebSockets are well-suited for situations where data needs to be sent instantly and continuously.</p><h3>7. WebRTC</h3><p>WebRTC (Web Real-Time Communication) is a type of API that enables <strong>direct communication between users’ devices</strong>.</p><p>Instead of sending data through a server, WebRTC allows two devices to connect <strong>peer-to-peer</strong>. Once the connection is established, audio, video, or data flows directly between them.</p><p>WebRTC is specifically designed for real-time media communication, such as:</p><ul><li>video calls</li><li>voice calls</li><li>screen sharing</li></ul><p>Servers are mainly used only to <strong>help devices discover each other</strong>, not to carry the actual media data.</p><p>Because of this peer-to-peer design, WebRTC is optimized for low latency and real-time interaction, making it ideal for communication-focused applications.</p><h3>Want to See Real Examples?</h3><p>Reading explanations helps, but APIs are easier to understand when you see them in real code.</p><p>I’ve created a beginner-friendly GitHub repository that:</p><ul><li>explains each API type in simple language</li><li>includes runnable examples</li><li>shows how APIs are used in real applications</li></ul><p>👉 <strong>GitHub Repository:</strong><br><a href="https://github.com/GSiddhi/apis-for-beginners"> https://github.com/GSiddhi/apis-for-beginners</a></p><p>You can read the explanations, run the examples, and explore at your own pace.</p><h3>Wrapping Up</h3><p>APIs power most of the applications we use every day. Once you understand the basic idea of how they enable communication between systems, everything else becomes easier to follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df647f7ac8cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>