AI writes your code.
You should understand why it works.

  • Structured courses with clear, short lessons you can actually follow
  • Interactive exercises validated by AI with instant feedback
  • AI tutor in every lesson that knows what you're reading
hackup.ai/lesson/what-is-an-api
How Tech Works/APIs: How Apps Talk/1/4

What is an API?

Essential to know

  • API stands for Application Programming Interface — a way for software to communicate
  • APIs define what operations are available and what data format to use
  • Web APIs use HTTP to communicate over the Internet

You use APIs every day. When you check the weather, pay online, or log in with Google — APIs make those connections happen. Think of a waiter at a restaurant: you tell the waiter what you want, and the kitchen handles the rest.

fetch("https://api.weather.com/forecast")
  .then(res => res.json())
  .then(data => {
    console.log(data.temp)  // 18°C
  })

AI Tutor

Has full context of this lesson

You

Can you give me a real example of an API call?

AI Tutor

When you open a weather app, it calls GET /api/weather?city=Paris

The server responds with { "temp": 18 } — your app never touches the database directly.

Ask anything about the lesson...
ExoAPI Methods Quiz0/2
AI Tutor
Check me
Complete & Next

How it works

Q4 / 4

What describes you best?

MarketerFounderDev
Your custom path is ready
Web StackAPIsDeploy+2
Step 1

Choose your path

Founder, marketer, junior dev. Pick a learning path adapted to your profile.

How Tech Works6 modules
APIs4 modules
Deploy & Ship3 modules
Step 2

Read lessons, see examples

24 courses (React, Git, Python...) with short lessons, commented code, and real-world examples.

Why does this API use POST instead of GET?

AI Tutor

POST sends data to the server. GET only retrieves it. Here, the form submits user input.

Step 3

Ask the AI tutor

Something unclear? Ask your question. The tutor explains using the context of your lesson.

Question

What happens when an API returns a 404?

Correct!+50 XP
Step 4

Test what you learned

After each lesson, the AI asks you a question about what you just read. You answer, it corrects.

AI Tutor

A chatbot in each lesson that knows what you're reading.

You're mid-lesson, something isn't clear — you type your question. The AI tutor has the context of the lesson and explains with your level in mind. No need to Google or switch tabs.

  • You ask "why useEffect here?" — it explains with the lesson context
  • It gives the reasoning, not just a code snippet
  • It knows what you've already covered in the course
hackup.ai/lesson/what-is-an-api

AI Tutor

Has full context of this lesson

Live

Why does this use fetch() instead of a regular form to call the API?

AI Tutor

A <form> triggers a full page reload — the browser navigates away and re-renders everything.

fetch() sends the request in the background. You update just the part that changed — no reload.

Think of a form like mailing a letter. fetch() is like a text — instant reply, no page change.

Balanced
Ask anything about the lesson...
Check me

After each lesson, verify that you understood.

You click "Check me", the AI generates a question based on what you just read. You answer in your own words, and it tells you if you got it right — with an explanation if you missed something.

  • The question is generated from the lesson you just read
  • You answer in plain text — no multiple choice tricks
  • You get instant feedback with what you missed
hackup.ai/exercise/useeffect-race
ReactReact/Hooks/Exercise 2/3

Question

What bug is in this useEffect? What happens if the user types fast?

useEffect(() => {
  fetch(`/api/search?q=${query}`) 
    .then(r => r.json())
    .then(data => setResults(data))
}, [query])
AI Hint

What happens when query changes faster than the network responds?

Your answer

Race condition — multiple fetches fire and older results can overwrite newer ones.

Correct!

Race condition identified. Fix: use AbortController in the cleanup.

Explain answer
Continue
Track Everything

Your progress, saved and visible.

Each lesson completed earns XP. You see where you are in each course, your streak, your level. Everything is saved — you pick up where you left off.

  • See completed lessons and course progress at a glance
  • Daily streaks to keep momentum
  • XP and levels to track your overall progress
hackup.ai
Level 8
Expert4,250 XP
12streak
3/4this week
+150today

1,750 XP to Master

68%

Your courses in progress

2 courses
Last studied
ReactReact FundamentalsM 3/5
Frontend·beginner

Hooks/useEffect in depth

~15min
M 3/5
L 2/4
45%
Continue

All lessons are free to read. Create an account to save progress.

Guest

No account

Read all lessons
Vocabulary definitions
Learning paths

Free

With account

Read all lessons
Vocabulary definitions
Learning paths
Progress saved
XP & streaks

Builder

$9/mo

Read all lessons
Vocabulary definitions
Learning paths
Progress saved
XP & streaks
AI tutor in lessons
"Check me" with AI
Exercises with AI
AI vocab explanations
Ranked code reviews
AI developer tools
Support the project