20 API Terms Every Developer Should Know Before Their Next Interview

๐Ÿ‘‹ Introduction:

Letโ€™s be honestโ€”interviews can be nerve-wracking. Youโ€™ve prepared your DSA, brushed up on system design, and revised Java or JavaScript. But then comes that one simple-sounding question:

โ€œCan you explain how an API works?โ€

And suddenly, you’re stuck between buzzwords like REST, JWT, and OAuth.

Sound familiar?

Whether you’re a fresher preparing for your first job or an experienced developer switching companies, API knowledge isnโ€™t optional anymoreโ€”itโ€™s essential. APIs are the glue holding modern apps together, and interviewers love to test how well you understand that glue.

In this article, weโ€™ll break down 20 must-know API terms in simple language, with relatable examples. No jargon. No fluff. Just clear explanations to help you answer confidently in interviews and understand what you actually work with daily.


๐Ÿ”ฅ 1. API (Application Programming Interface)

An API is a bridge that allows two software systems to communicate. It exposes functions or data, often over HTTP, which clients (like web apps or mobile apps) can consume.
๐Ÿ“Œ Example: A weather app fetches data from an external weather API to show current temperature and forecast.


๐Ÿ”— 2. Endpoint

An endpoint is a specific URL where an API resource can be accessed. It’s like a door into a specific piece of data or functionality.
๐Ÿ“Œ Example:

  • GET /users โ†’ Returns a list of users
  • GET /users/123 โ†’ Returns user with ID 123

๐Ÿงญ 3. HTTP Methods (GET, POST, PUT, DELETE, PATCH)

These are operations used to interact with resources:

  • GET โ†’ Fetch data (read-only)
  • POST โ†’ Create new data
  • PUT โ†’ Replace existing data
  • PATCH โ†’ Partially update data
  • DELETE โ†’ Remove data
    ๐Ÿ“Œ Example: POST /users creates a new user with the data in the request body.

๐ŸŒ 4. REST (Representational State Transfer)

REST is a popular architectural style using standard HTTP methods and stateless communication. REST APIs expose resources via URIs and often use JSON.
๐Ÿ“Œ Example:

  • REST endpoint: GET /products/201 returns product with ID 201
  • Stateless: Each request is independent โ€” no session state is stored on the server.

๐Ÿงผ 5. SOAP (Simple Object Access Protocol)

SOAP is a protocol with strict standards and XML-based messages. Used mostly in older enterprise systems where transactional security and reliability are needed.
๐Ÿ“Œ Example: A banking system using SOAP to handle money transfers securely.


๐Ÿ“ฆ 6. JSON (JavaScript Object Notation)

A lightweight format to send and receive structured data in an API. Easy for humans to read and machines to parse.
๐Ÿ“Œ Example Response:

{ "name": "Alice", "email": "alice@example.com" }

๐Ÿงพ 7. XML (eXtensible Markup Language)

Like JSON, but more verbose and commonly used in SOAP. XML allows defining custom tags and supports complex data types.
๐Ÿ“Œ Example:

<user><name>Alice</name><email>alice@example.com</email></user>

๐Ÿ” 8. Authentication

Verifying who the user is. Common techniques:

  • API keys
  • OAuth 2.0
  • JWT (JSON Web Tokens)
    ๐Ÿ“Œ Example: A client includes a JWT token in the Authorization header to prove their identity.

๐Ÿ›ก๏ธ 9. Authorization

Decides what an authenticated user is allowed to do.
๐Ÿ“Œ Example:

  • Authenticated user can access /profile
  • But only an admin can access /admin/deleteUser

๐ŸŽซ 10. API Key

A simple token (often passed in headers) to identify and authenticate a client.
๐Ÿ“Œ Example:

GET /data
Authorization: Api-Key abc123xyz

๐Ÿ” 11. Rate Limiting

Controls how many requests a client can make in a given time.
๐Ÿ“Œ Example: Free users can make 60 API calls per hour. Premium users get 1000/hour.
Helps prevent abuse and protects server resources.


๐Ÿ”„ 12. Pagination

Used when fetching large datasets from an API by dividing the results into smaller “pages”.
๐Ÿ“Œ Example:
GET /users?page=2&limit=10 โ†’ Fetches the 2nd page with 10 users per page.


๐ŸŒ 13. CORS (Cross-Origin Resource Sharing)

A browser security feature that restricts cross-origin HTTP requests.
๐Ÿ“Œ Example: A React frontend on localhost:3000 tries to call an API on api.example.com โ€” it needs CORS headers like Access-Control-Allow-Origin.


โš™๏ธ 14. Webhooks

Instead of polling the server repeatedly, webhooks let the server send real-time updates to a clientโ€™s specified endpoint.
๐Ÿ“Œ Example: Stripe uses webhooks to notify your backend when a payment is successful.


๐Ÿ›‚ 15. OAuth 2.0

An authorization framework for third-party access without sharing credentials.
๐Ÿ“Œ Example: A user logs into your app using their Google account via OAuth, which returns an access token.


๐Ÿงพ 16. JWT (JSON Web Token)

A compact, signed token for securely transmitting data between parties. Often used for stateless authentication.
๐Ÿ“Œ Example:
After login, the server sends a JWT like eyJhbGciOiJIUzI1NiIs...
The frontend includes it in future requests.


๐Ÿ“š 17. Swagger / OpenAPI Specification

A standard to define REST APIs with human- and machine-readable documentation. Tools like Swagger UI allow interactive testing.
๐Ÿ“Œ Example: A Swagger UI lets developers test POST /login by entering username and password directly in the browser.


๐Ÿ” 18. Idempotent Methods

An operation is idempotent if repeating it produces the same result.
๐Ÿ“Œ Example:

  • GET /users/1 โ†’ Always returns the same data
  • DELETE /users/1 โ†’ Deletes user once; repeated requests still return success but have no further effect

๐Ÿ“„ 19. Headers

Headers carry metadata in API requests/responses.
๐Ÿ“Œ Common headers:

  • Content-Type: application/json
  • Authorization: Bearer <token>
  • X-RateLimit-Remaining: 25

๐Ÿงช 20. Status Codes

HTTP status codes indicate the result of a request:

  • 200 OK โ€“ Success
  • 201 Created โ€“ Resource successfully created
  • 400 Bad Request โ€“ Client error
  • 401 Unauthorized โ€“ Auth needed
  • 500 Internal Server Error โ€“ Server crashed
    ๐Ÿ“Œ Example: After a successful user registration: 201 Created

๐Ÿ™Œ Conclusion:

APIs arenโ€™t just a โ€œbackend thingโ€ or something only big tech companies useโ€”theyโ€™re part of almost every app you build, test, or consume. Knowing how they work, what common terms mean, and how to communicate that knowledge clearly gives you a real edgeโ€”not just in interviews, but on the job too.

So next time someone throws around words like โ€œrate limiting,โ€ โ€œwebhooks,โ€ or โ€œCORS,โ€ you wonโ€™t blink. Youโ€™ll explain it like a proโ€”and maybe even teach them something new.

Keep learning, stay curious, and remember: Itโ€™s not about memorizing definitions, itโ€™s about understanding the โ€œwhyโ€ behind them. Thatโ€™s what makes you a better developer.

Leave a Reply

Your email address will not be published. Required fields are marked *