फ़ेच एक नया एपीआई है, जो रिमोट रिसॉर्स को फ़ेच करना आसान बनाता है. XMLHttpRequest की तरह, Fetch का इस्तेमाल एक ही ऑरिजिन या क्रॉस डोमेन वाले अनुरोधों के लिए किया जा सकता है. फ़ेच एक ज़्यादा साफ़ और ज़्यादा असरदार एपीआई का इस्तेमाल करता है जो अनुरोध को रिस्पॉन्स से अलग करता है. साथ ही, रिस्पॉन्स को लौटाने का वादा करता है.
फ़ेच एपीआई के बारे में जानकारी
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["Fetch API simplifies fetching remote resources, handling both same-origin and cross-domain requests. It offers a refined interface compared to XMLHttpRequest, distinguishing the request from the response. Crucially, Fetch utilizes promises to deliver the response, providing a more structured and efficient method for managing asynchronous operations. Its improved design aims to streamline the process of data retrieval from remote sources.\n"],null,[]]