惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
I
InfoQ
D
Docker
F
Fortinet All Blogs
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
B
Blog
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
罗磊的独立博客
博客园_首页
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
IT之家
IT之家
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
What exactly is an api?
Belam Muia · 2026-05-14 · via DEV Community

APIs: The Silent Heroes of the Internet

API is a term every developer whether beginner or experienced has probably heard before. And honestly? Without APIs, the digital economy would collapse and send us back to “traditional ways.”

Think about it.

When you log into an application, stream a movie on Netflix, or text/call your loved ones on WhatsApp, APIs are working behind the scenes to make all of that possible. Without them, most modern digital experiences simply wouldn’t exist.

So… what exactly is an API?

What is an API?

Imagine visiting a restaurant.

You don’t walk straight into the kitchen and start telling the chef what food you want. Instead, you sit at your table, place your order through a waiter, and the waiter relays the message to the chef. Once the food is ready, the waiter brings it back to you.

That waiter is basically what an API does.

An API (Application Programming Interface) acts as the middleman between the client and the server. Every request passes through the API. The client sends a request, the API communicates with the server, and then returns the correct response back to the client.

Simple, but powerful.

A Simple API Example

https://yoursitebackend.com

Enter fullscreen mode Exit fullscreen mode

Take the URL above.

Imagine you’re building an e-commerce website. A frontend alone isn’t enough if real users are going to use your platform. You’ll need a backend to handle business logic such as:

  • Price calculations
  • Tax additions
  • User authentication
  • Inventory management
  • Payments

Now let’s say a user wants to make a purchase.

Your frontend will send a request to the backend saying something like:

“User A is making a purchase. Please calculate the total price for these items.”

The backend processes the request and sends back a response.

That entire communication process is an API call.

Characteristics of an API

1. Abstraction

If you’ve done Object-Oriented Programming before, this term probably sounds familiar.

APIs hide internal server logic and only expose what the client should see. For example, users don’t need to see raw database errors or sensitive backend processes.

Imagine getting this on your screen:

Database connection failed at port 3306

Enter fullscreen mode Exit fullscreen mode

Yeah… not exactly user-friendly 😭

APIs help prevent that by abstracting the complexity away from users.

2. Standardization

APIs follow specific structures or schemas. You can’t just format data however you want.

One of the most common standards used today is JSON.

Example:

{
  "username": "pookiepotato",
  "role": "developer"
}

Enter fullscreen mode Exit fullscreen mode

This standardization makes communication between systems predictable and easier to manage.

3. Endpoints

Communication in APIs happens through specific URLs called endpoints.

Endpoints are basically locations where resources can be accessed.

Example:

https://yoursitebackend.com/users
https://yoursitebackend.com/products
https://yoursitebackend.com/orders

Enter fullscreen mode Exit fullscreen mode

Each endpoint usually serves a different purpose.


API Architectures

An architecture is like a blueprint for how an API is designed and communicates.

Some common API architectures include:

  1. REST APIs
  2. SOAP APIs
  3. GraphQL APIs

There are many others too, but these are among the most popular.

API Types

1. Public APIs

These APIs are accessible to the public with fewer restrictions. Most of the time, all you need is an API key to start using them.

A good example is the Google Maps API.

2. Private APIs

These are used internally within organizations and are not exposed publicly.

3. Partner APIs

These APIs are shared between specific businesses or partners under controlled access.

4. Composite APIs

Composite APIs combine multiple API requests into a single request, making systems more efficient.


There’s honestly so much more to APIs than just the name, and that’s what makes them exciting to learn.

I’m still exploring APIs myself, and I’ll definitely be sharing more about them in upcoming blogs 🚀