Skip to content

Commit 2207e8e

Browse files
committed
update
1 parent 84b0259 commit 2207e8e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

_posts/30DaysOfPython/2026-01-17-python-day28.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ You can think of an <abbr title = "Application Programming Interface">API</abbr>
2020

2121
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.
2222

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 |
25+
| ----------------- | --------------------------------------------- | ------------------------------------------------------------------- | ----------------------------- | -------------------------------------------- |
26+
| **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+
2339
# Introduction to HTTP
2440

2541
To deepen my understanding of APIs, I took to contemplating about what I had learnt on <abbr title = "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

Comments
 (0)