0Pricing
Vibe Coding · 강의

API란 무엇인가요?

요청과 응답을 이해해 보세요.

API란 무엇인가요?은(는) CoddyKit의 무료 Vibe Coding 강의입니다. 이것은 4개 중 1번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Vibe Coding 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Vibe Coding 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Why APIs Matter

An API (Application Programming Interface) is how one program talks to another. Instead of rebuilding maps, payments, or weather data yourself, you call someone else's service and get the answer back.

When you build software with an AI assistant, most real features come from connecting to third-party APIs. Learning to think in APIs lets you assemble powerful apps quickly.

A Restaurant Analogy

Think of an API like a restaurant menu. You don't go into the kitchen and cook. You read the menu, place an order with the waiter, and food arrives.

The menu is the API documentation, your order is the request, and the dish is the response. You never see how the kitchen works inside, only what it promises to deliver.

Requests and Responses

Every API interaction has two halves: a request you send and a response you receive. The request says what you want; the response carries the data or a status.

You can ask your AI assistant to explain this flow for any service you plan to use, so you know exactly what to send and what comes back.

Explain how a request and response work for the OpenWeatherMap API.
Show me one example request and what the response looks like.

Endpoints Are Addresses

An endpoint is a specific URL where the API listens for one kind of request. A weather service might have one endpoint for current conditions and another for forecasts.

Each endpoint does a focused job. Knowing which endpoint to hit is half the battle when integrating any external service into your app.

HTTP Methods

APIs use HTTP methods to signal intent. GET fetches data, POST creates something, PUT or PATCH updates, and DELETE removes. The method tells the server what action you mean.

When unsure, ask your assistant which method an endpoint expects. Picking the wrong one is a common beginner mistake that returns confusing errors.

For the GitHub API, which HTTP method do I use to create a new issue,
and which one do I use to just read existing issues?

JSON: The Common Language

Most modern APIs speak JSON, a lightweight text format of keys and values. A weather response might include "temp": 21 and "city": "Paris".

JSON is easy for both humans and code to read. Your AI assistant can turn a raw JSON response into clean variables your app actually uses.

Here is a JSON response from a weather API.
Show me how to pull out the temperature and city name in JavaScript.

API Keys: Your ID Badge

Many APIs require an API key, a unique string that identifies and authorizes you. It is like an ID badge that lets you through the door and tracks your usage.

Keys are secret. Never paste them into public code or share them in chat. We will cover safe handling in a later lesson.

Rate Limits

APIs limit how many requests you can make in a time window, called a rate limit. Free tiers might allow 60 calls per minute, paid tiers far more.

Hitting the limit returns an error, not your data. Ask your assistant to check a service's limits before you build features that call it in a loop.

What are the free-tier rate limits for the TheMovieDB API,
and how should I structure my app to stay under them?

Status Codes Tell a Story

Every response carries a status code. 200 means success, 401 means unauthorized, 404 means not found, and 429 means too many requests.

These numbers are your fastest debugging clue. When something breaks, the status code usually points straight at the cause before you read any error text.

Public vs Private APIs

Some APIs are public and free, like many weather or quote services. Others are private, needing accounts, billing, or approval, like payment and messaging platforms.

Knowing which kind you face shapes your setup. Ask your assistant to compare options so you start with the simplest service that meets your need.

I want to add quotes to my app. Suggest three free, no-signup APIs
and compare their ease of use for a beginner.

Thinking in Integrations

Building with AI is mostly about wiring services together. A trip planner might combine a maps API, a weather API, and a currency API into one screen.

Once you see features as integrations, you describe the outcome to your assistant and let it handle the plumbing of requests, parsing, and display.

Quick Check

Test your understanding of API basics.

Recap

An API lets your app borrow another service's powers through requests and responses. You hit endpoints with HTTP methods, send and receive JSON, and identify yourself with keys.

Status codes and rate limits guide your debugging. Next, you will learn to read API docs quickly with help from your AI assistant.

자주 묻는 질문

“API란 무엇인가요?” 강의는 무료인가요?

네 — “API란 무엇인가요?” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Vibe Coding 강의 전체를 잠금 해제할 수 있습니다. Vibe Coding 강의에는 총 4개의 강의가 포함되어 있습니다.

“API란 무엇인가요?”에서 뭘 배우나요?

요청과 응답을 이해해 보세요. 브라우저에서 직접 실행하는 실습 코드로 Vibe Coding을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Vibe Coding을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Vibe Coding은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 1번째 강의입니다.

“API란 무엇인가요?” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Vibe Coding 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Vibe Coding 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. API란 무엇인가요?
  2. 인공지능과 함께 API 문서 읽기
  3. 첫 API 호출 만들기
  4. 키와 오류 처리하기
← Vibe Coding(으)로 돌아가기