Zu den Hauptinhalten springenHilfe zur Barrierefreiheit
Drücke/, um direkt zum Suchfeld zu gelangen
Wähle aus, wozu du Feedback geben möchtest
  • Löschen

  • Mehr
  • Löschen

  • Mehr
  • Unangemessene Vervollständigungen melden
    Es gab ein Problem. Der Verlauf wurde nicht gelöscht.
    Alle
    Videos
    Kurze Videos
    Bilder
    Shopping
    News
    Mehr
    Web
    Bücher
    Maps
    Flüge
    Suchfilter

    Suchergebnisse

    Beliebige Sprache
    Beliebige Sprache
    Seiten auf Deutsch
    Beliebige Zeit
    Beliebige Zeit
    Letzte Stunde
    Letzte 24 Stunden
    Letzte Woche
    Letzter Monat
    Letztes Jahr
    Zeitraum festlegen...
    Benutzerdefinierter Zeitraum
    Los
    Alle Ergebnisse
    Alle Ergebnisse
    Wortwörtlich
    Erweiterte Suche
    Ungefähr 114.000.000 Ergebnisse(0,25 Sek.)
    Auswählen: Strg + Umschalttaste + X
    Für diese Suchanfrage ist keine Übersicht mit KI verfügbarDerzeit kann keine Übersicht mit KI generiert werden. Bitte versuch es später noch einmal.
    Übersicht mit KI
    To fetch data in JavaScript, you use the globalfetch()method. It starts a network request and returns aPromisethat resolves to aResponseobject.
    The most modern and readable way to use it is withasync/await.
    Basic GET Request
    By default,fetch()performs a GET request.
    javascript
    asyncfunctiongetData() {try{constresponse =awaitfetch('http://test.test');// Check if the request was successful (status 200-299)if(!response.ok) {thrownewError(`HTTP error! Status: ${response.status}`); }// Parse the response body as JSONconstdata =awaitresponse.json(); console.log(data); }catch(error) { console.error('Fetch error:', error); } } getData();
    Verwende Code mit Vorsicht.
    POST Request with Options
    To send data, you pass an optionaloptions objectas the second argument.
    javascript
    asyncfunctionpostData() {constresponse =awaitfetch('http://test.test', { method:'POST', headers: {'Content-Type':'application/json'}, body: JSON.stringify({ name:'John Doe', age:30}) });constresult =awaitresponse.json(); console.log(result); }
    Verwende Code mit Vorsicht.
    Key Components
    • fetch(url): Initiates the request to the specified resource.
    • response.ok: A boolean that istrueif the HTTP status is in the 200–299 range.
    • response.json(): An asynchronous method that parses the response body into a JavaScript object.
    • Error Handling: Thefetch()promise only rejects onnetwork failures(like no internet). It doesnotreject for HTTP errors like 404 or 500, so you must checkresponse.okmanually.
    For more detailed technical documentation, refer to theMDN Web Docs on Fetch API.
    • Using the Fetch API - MDN Web Docs
      20.08.2025 —With the Fetch API, you make a request by calling fetch() , which is available as a global function in both window and worker cont...
      MDN Web Docs
    • How to FETCH data from an API using JavaScript ↩️
      28.12.2023 —and at the end of this video we're going to create a project where we can fetch some images of Pokémon depending on what Pokémon y...
      14m
      YouTube·Bro Code
    • Window: fetch() method - Web APIs | MDN
      16.12.2025 —Window: fetch() method. ... This feature is well established and works across many devices and browser versions. It's been availab...
      MDN Web Docs
    Alle anzeigen
    • Using the Fetch API - MDN Web Docs
      20.08.2025 —With the Fetch API, you make a request by calling fetch() , which is available as a global function in both window and worker cont...
      MDN Web Docs
    • How to FETCH data from an API using JavaScript ↩️
      28.12.2023 —and at the end of this video we're going to create a project where we can fetch some images of Pokémon depending on what Pokémon y...
      14m
      YouTube·Bro Code
    • Window: fetch() method - Web APIs | MDN
      16.12.2025 —Window: fetch() method. ... This feature is well established and works across many devices and browser versions. It's been availab...
      MDN Web Docs
    • Fetch API with Async/Await (GET, POST, PUT, DELETE)
      07.07.2022 —hey everyone in this video we will look at how to upgrade your fetch calls to use the async await syntax this is the modern syntax...
      14:55
      YouTube·ByteGrad
    • fetch() — JavaScript - Дока
      14.05.2026 —Кратко ... С помощью глобальной функции fetch() можно выполнять HTTP-запросы — как получать, так и отправлять данные. Функция возв...
      Дока
    • Fetch API - MDN Web Docs
      08.01.2026 —Concepts and usage. The Fetch API uses Request and Response objects (and other things involved with network requests), as well as ...
      MDN Web Docs
    • How to Use JavaScript Fetch API: Step-by-Step Guide with Examples
      06.02.2025 —FAQs * What is an example of Fetch API? A simple example of using Fetch API to request JSON data from an API: fetch('http://test.test
      DigitalOcean
    • Fetch API in JavaScript - GeeksforGeeks
      31.10.2025 —Fetch API in JavaScript * url: The API endpoint from which data is fetched. * options (optional): Specifies method, headers, body,
      GeeksforGeeks
    • How to Use Fetch in JavaScript - Mimo
      Step 1: Make a GET request and parse JSON The cleanest default is fetch() with async/await . ... This sends a GET request by defau...
      Mimo
    • JavaScript fetch API - W3Schools
      Getting JSON Data. To get JSON, you must read the response body. response. json() returns a promise. Example.
      W3Schools
    • The JavaScript Fetch API: Everything You Need to Know
      21.02.2025 —The JavaScript fetch interface acts as a means for fetching resources (including across the network). It also uses a global fetch(
      Turing
    • Resolving JavaScript File Download Issues from ESP32 Webserver
      11.10.2024 —Elaborates on the content source used to explain the use of fetch() and XMLHttpRequest for file downloads in JavaScript. For furth...
      Medium
    Teilen
    Facebook
    WhatsApp
    X
    E-Mail
    Anklicken, um Link zu kopieren
    Link teilen
    Link kopiert
    Danke
    Dein Feedback hilft Google, künstliche Intelligenz und mehr zu verbessern, auch wenn die Einstellung „Web- & App-Aktivitäten“ deaktiviert ist.Weitere Informationen.
    Mehr Feedback geben
    Problem melden
    Schließen
    Danke
    Dein Feedback hilft Google, künstliche Intelligenz und mehr zu verbessern, auch wenn die Einstellung „Web- & App-Aktivitäten“ deaktiviert ist.Weitere Informationen.
    Mehr Feedback geben
    Problem melden
    Schließen
    Danke
    Dein Feedback hilft Google, künstliche Intelligenz und mehr zu verbessern, auch wenn die Einstellung „Web- & App-Aktivitäten“ deaktiviert ist.Weitere Informationen.
    Mehr Feedback geben
    Problem melden
    Schließen
    Schließen
    Microphone
    Senden
    Senden
    Mehr anzeigen
    Mein Anzeigen-Center

    Web results

    Using the Fetch API - MDN Web Docs


    MDN Web Docs
    http://test.test› ...
    MDN Web Docs
    http://test.test› ...
    ·Diese Seite übersetzen
    20.08.2025—With the Fetch API, youmake a request by calling fetch() , which is available as a global function in both window and worker contexts. You pass ...

    Fetch - Современный учебник JavaScript


    Современный учебник JavaScript
    http://test.test› Сетевые запросы
    Современный учебник JavaScript
    http://test.test› Сетевые запросы
    23.12.2022—Fetch.JavaScriptможет отправлять сетевые запросы на сервер и подгружать новую информацию по мере необходимости. Например, мы можем ...

    Использование Fetch - Интерфейсы веб API - MDN Web Docs


    MDN Web Docs
    http://test.test› ...
    MDN Web Docs
    http://test.test› ...
    ·Diese Seite übersetzen
    24.03.2025—Fetch API предоставляет интерфейс JavaScript для работы с запросами и ответами HTTP. Он также предоставляет глобальный метод fetch() , который ...

    JavaScript Fetch API


    W3Schools
    http://test.test› a...
    W3Schools
    http://test.test› a...
    ·Diese Seite übersetzen
    The fetch() method starts the process of fetching a resource from a server. The fetch() method returns a Promise that resolves to a Response object ...

    How to FETCH data from an API using JavaScript ↩️


    YouTube · Bro Code
    Ca. 372.260 Aufrufe · vor 2 Jahren
    YouTube · Bro Code
    Ca. 372.260 Aufrufe · vor 2 Jahren
    14:17
    javascript#utorial #course 00:00:00fetch00:06:29 async/await 00:08:55 project //fetch= Function used for making HTTP requests tofetch...
    3 wichtige Momente3 wichtige Momente in diesem Video
    Ab00:00
    fetch
    Ab06:29
    async/await
    Ab08:55
    project
    Bro Code
    YouTube·
    28.12.2023

    How to FETCH data from an API using JavaScript ↩️

    YouTube·Bro Code·28.12.2023
    YouTube
    In diesem Video
    • 00:00
      fetch
    • 06:29
      async/await
    • 08:55
      project

    Fetch API in JavaScript


    GeeksforGeeks
    http://test.test› ...
    GeeksforGeeks
    http://test.test› ...
    ·Diese Seite übersetzen
    31.10.2025—fetch() sends the GET request to the specified URL. The response.json() method parses the JSON response. .then() logs the list of items once ...

    Using the JavaScript Fetch API


    Medium · Sophia Shoemaker
    Ca. 1100 „Gefällt mir“-Angaben · vor 10 Jahren
    Medium · Sophia Shoemaker
    Ca. 1100 „Gefällt mir“-Angaben · vor 10 Jahren
    The fetch() method takes two parameters— the URL that you are requesting (or a Request object) and an “options” object. The method returns a ...

    How to Use Fetch API in JavaScript


    YouTube · ProgrammingKnowledge
    Ca. 2000 Aufrufe · vor 12 Monaten
    YouTube · ProgrammingKnowledge
    Ca. 2000 Aufrufe · vor 12 Monaten
    6:47
    What theFetchAPI is and why it's useful · How to make a *GET request* tofetchdata · How to handle *JSON responses* · How to use `async/await ...
    ProgrammingKnowledge
    YouTube·
    01.06.2025

    How to Use Fetch API in JavaScript

    YouTube·ProgrammingKnowledge·01.06.2025
    YouTube

    fetch() — JavaScript


    Дока
    http://test.test› js › fetch
    Дока
    http://test.test› js › fetch
    ·Diese Seite übersetzen
    14.05.2026—С помощью глобальной функцииfetch() можно выполнять HTTP-запросы— как получать, так и отправлять данные. Функция возвращает промис, который ...

    Using Fetch API to Access JSON - javascript


    Stack Overflow
    3 Antworten · vor 9 Jahren
    Stack Overflow
    3 Antworten · vor 9 Jahren
    I am trying to use fetch api to bring back some data, however am unable to map it to the console once I have retrieved it. Copyfetch('http://test.test ...
    3 Antworten·Top-Antwort:The Fetch API returns a response stream in the promise. The response stream is not JSON, so ...
    Wird auch oft gesucht
    Fetchmode
    Awaitfetch
    FetchHTML
    Fetchfile
    Fetchdata
    Fetchurl
    Fetchthen
    AJAXFetch

    Seitennavigation

    12345678910Weiter