You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/30DaysOfPython/2026-01-17-python-day28.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,22 @@ You can think of an <abbr title = "Application Programming Interface">API</abbr>
20
20
21
21
A more detailed example would be to think of services like weather applications, delivery updates, or mobile application requests. In all these examples, the application doesn't store data and instead uses another system for data handling.
22
22
23
+
There are many types of APIs and they all have some specific uses, here is a list of all API types:
24
+
| API Type | What It’s Used For | Key Characteristics | How Common It Is | Typical Use Cases |
|**REST**| Sharing data between systems over the web | Stateless, resource-based URLs, JSON data, uses GET/POST/PUT/DELETE |**Very common**| Web apps, mobile apps, public services |
27
+
|**SOAP**| Highly structured and secure data exchange | XML-only, strict rules, built-in security standards |**Less common (legacy)**| Banking, government, enterprise systems |
28
+
|**GraphQL**| Fetching only the exact data required | Single endpoint, flexible queries, strongly typed schema |**Common (modern apps)**| Dashboards, frontend-heavy apps |
29
+
|**RPC**| Executing remote functions or actions | Function-based calls, simple request/response model |**Uncommon**| Internal services, legacy systems |
30
+
|**gRPC**| Fast communication between backend services | Binary format, HTTP/2, strongly typed contracts |**Common in large systems**| Cloud platforms, microservices |
31
+
|**WebSocket**| Real-time, two-way communication | Persistent connection, low latency updates |**Common for real-time apps**| Chat apps, live feeds, online games |
32
+
|**Streaming API**| Sending continuous streams of data | Event-driven, real-time data flow |**Moderately common**| Video/audio streaming, analytics |
33
+
|**Public API**| Allowing open access to a service | Public documentation, API keys, rate limits |**Very common**| Weather, maps, social media |
34
+
|**Private API**| Internal communication within an organisation | Restricted access, internal use only |**Very common**| Backend services, internal tools |
35
+
|**Partner API**| Controlled access for trusted third parties | Authentication, limited permissions |**Common**| Payments, shipping, third-party integrations |
36
+
37
+
_Built with ChatGPT_
38
+
23
39
# Introduction to HTTP
24
40
25
41
To deepen my understanding of APIs, I took to contemplating about what I had learnt on <abbrtitle = "Hyper-Text Transfer Protocol">HTTP</abbr> and how a _request_ is made over the web and received. HTTP defines how information is relayed between a client (system, application, or browser) and a server.
0 commit comments