Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen What Are APIs? | Introduction to Modern Web APIs
JavaScript Web APIs Essentials

bookWhat Are APIs?

When you build web pages, you often want them to do more than just display static information. You might want your page to access the user's location, let users drag and drop files, or even copy text directly to their clipboard. This is where APIs come in. An API—which stands for "Application Programming Interface"—is a set of tools and rules that lets your web page interact with features provided by the browser or device.

APIs are built into modern browsers and are designed to enhance your web pages with new capabilities. They allow you to do things like:

  • Access device hardware, such as the camera or microphone;
  • Store data locally in the browser for offline access;
  • Enable drag-and-drop functionality for files or elements;
  • Read from and write to the user's clipboard;
  • Request the user's geolocation to show relevant content.

These APIs are not part of the HTML language itself, but rather, they work alongside HTML, CSS, and JavaScript to make your web pages interactive and powerful. By using these APIs, you can create richer and more engaging experiences for your users, all within the browser—no extra plugins or downloads required.

To see how you might get started with APIs, here is a simple HTML page structure. In later chapters, you will learn how to add API features to this page to make it interactive and dynamic.

index.html

index.html

copy
question mark

Which of the following best describes the main purpose of APIs in web development?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 1

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

bookWhat Are APIs?

Swipe um das Menü anzuzeigen

When you build web pages, you often want them to do more than just display static information. You might want your page to access the user's location, let users drag and drop files, or even copy text directly to their clipboard. This is where APIs come in. An API—which stands for "Application Programming Interface"—is a set of tools and rules that lets your web page interact with features provided by the browser or device.

APIs are built into modern browsers and are designed to enhance your web pages with new capabilities. They allow you to do things like:

  • Access device hardware, such as the camera or microphone;
  • Store data locally in the browser for offline access;
  • Enable drag-and-drop functionality for files or elements;
  • Read from and write to the user's clipboard;
  • Request the user's geolocation to show relevant content.

These APIs are not part of the HTML language itself, but rather, they work alongside HTML, CSS, and JavaScript to make your web pages interactive and powerful. By using these APIs, you can create richer and more engaging experiences for your users, all within the browser—no extra plugins or downloads required.

To see how you might get started with APIs, here is a simple HTML page structure. In later chapters, you will learn how to add API features to this page to make it interactive and dynamic.

index.html

index.html

copy
question mark

Which of the following best describes the main purpose of APIs in web development?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 1
some-alt