🎯 Popular course

API in Practice: Interact with Any Service

Build 5 real projects with real APIs in 5 lessons — weather, NASA, GitHub, and an AI assistant via Python.

5.0⭐ Rating
5 Lessons
75 Tasks
~25.0 h Duration
📚 Course program

What you will learn

Detailed course program with practical assignments and projects

📖

About the course

🌐 Write code that talks to the internet

When you check the weather, pay by card, or browse YouTube recommendations — APIs are running the show. This course teaches you to connect to real services through their APIs and automate tasks with code.

In this course you’ll build 5 real projects:
- Chuck Norris joke generator — first GET request and working with JSON
- Weather app — API keys, query parameters, handling responses
- NASA client — photo of the day, Mars rovers, asteroids across three different endpoints
- GitHub automation — working with personal tokens and POST requests
- AI assistant — chatting with a language model via API

Course stack:

requests · httpx · python-dotenv · json

Requirements:

Basic Python — variables, functions, conditionals. Everything else is explained in the course.

🔒

Lesson 1: Meet APIs — Chuck Norris Facts

Understand what an API and HTTP are, write your first request on CodeHS, and get …

⏱️ ~4 h 40 min 📚 14 tasks
🔒

Lesson 2: Weather in Code — OpenWeatherMap

Move to a local machine: set up a Python environment, store API keys in .env, …

⏱️ ~5 h 📚 15 tasks
🔒

Lesson 3: Space in Your Pocket — NASA API

Work with NASA's official API: fetch the astronomy photo of the day, Curiosity rover images, …

⏱️ ~4 h 40 min 📚 14 tasks
🔒

Lesson 4: GitHub Automation — POST, PATCH, and Tokens

Work with POST and PATCH requests for the first time: authenticate via Bearer token and …

⏱️ ~5 h 20 min 📚 16 tasks
🔒

Lesson 5: Neural Network in Code — Google Gemini API

Connect Gemini via the official SDK: generate text, assign a role to the assistant, stream …

⏱️ ~5 h 20 min 📚 16 tasks

Student reviews

No reviews yet. They will appear when students start taking the course and sharing their learning experience.

💻 Code examples from course

Learn with real examples

See what code you will write in the course

lesson_example.py
# Создаем класс для курса
class Course:
    def __init__(self, title, duration):
        self.title = title
        self.duration = duration
        self.students = []
    def enroll_student(self, student):
        self.students.append(student)
        return f"Добро пожаловать, {student}!"
interactive_app.js
// Интерактивное обучение
const learningApp = {
  courses: [],
  support: 'в день',
  practice: '100%',
  addCourse(course) {
    this.courses.push(course);
    console.log(`Курс ${course} добавлен!`);
  }
};

Ready to start learning?

Join the growing community of students who have already started changing their lives through this course. Get personalized support and practical skills.