🆚 Fetch vs. XMLHttpRequest
- 📈 XMLHttpRequest is noticeably more popular than Fetch.
- 🌎 XMLHttpRequest is more popular in the United States, Germany, and the United Kingdom.
- 🌎 Fetch is more popular in India, Brazil, and Spain.
Statistics based on 3.3M+ analyzed websites. About this data
Type
Browser API
Browser API
About
Fetch is a modern XMLHttpRequest alternative for fetching network resources.
XMLHttpRequest (XHR) is a JavaScript API to create HTTP requests.
Headquarters
Cambridge, Massachusetts, United States
Cambridge, Massachusetts, United States
Categories
Browser APIs › Rank #3
Browser APIs › Rank #2
Popularity
Determined by the number of sites using each technology.
The XMLHttpRequest browser API is 1.3 times more popular than Fetch.
Total websites
Market share
Browser APIs
Popularity by country
Determined by the number of sites detected from each country.
XMLHttpRequest is more popular in the United States, Germany, and the United Kingdom, while Fetch is more popular in India, Brazil, and Spain.
United States
Germany
United Kingdom
India
Canada
Russia
Australia
France
Japan
Netherlands
Awards
- 🥈 Second most popular in India in the Browser APIs category.
- 🥈 Second most popular in Brazil in the Browser APIs category.
- 🥈 Second most popular in Spain in the Browser APIs category.
- 🥈 Second most popular in Poland in the Browser APIs category.
- 🥈 Second most popular in Turkey in the Browser APIs category.
- 🥇 Most popular in the British Virgin Islands in the Browser APIs category.
- 🥇 Most popular in Seychelles in the Browser APIs category.
- 🥈 Second most popular in the United States in the Browser APIs category.
- 🥈 Second most popular in Germany in the Browser APIs category.
- 🥈 Second most popular in the United Kingdom in the Browser APIs category.
Popularity by domain category
Determined by the number of sites in each category.
XMLHttpRequest is more popular among sites focused on online shopping, business, and marketing and merchandising, while Fetch is more commonly used on Internet services, general news, and travel sites.
Online Shopping
Business
Marketing/Merchandising
Fashion/Beauty
Blogs/Wiki
Internet Services
Education/Reference
Entertainment
General News
Travel
Top sites
Top-ranked sites that use these technologies.
Compare alternatives
Technologies with similar characteristics.
See also
🗃️ About This Data
- We evaluate the popularity of technologies based on the number of websites where we detect their usage.
- Technologies without a detectable web footprint, and those we do not track, are not reflected in the calculated market share.
- This report is based on the analysis of 3,375,483 websites.
- Statistics were last calculated on .
- For more details, see our methodology and disclaimer.
