XMLHttpRequest

W3C, Cambridge, Massachusetts, United States

XMLHttpRequest (XHR) is a JavaScript API for sending HTTP and HTTPS requests and receiving data from web servers without reloading the current page.

It supports both synchronous and asynchronous communication, allows monitoring of upload and download progress, and can exchange data in formats such as text, XML, JSON, and binary content.

Unlike the newer Fetch API, XMLHttpRequest uses an event-based programming model instead of promises and includes native support for request timeouts and progress events.

According to our data, XMLHttpRequest is the second most popular browser API on the web.
It has 19.2% of the browser API market share and is detected on 6.8% of all websites.

It appears on 11.3% of all websites in Canada, 10.6% in Russia, and 10.4% in the United States.

πŸ“Š Rankings and Market Share

πŸ† XMLHttpRequest Awards

⚑ Sites Using XMLHttpRequest

We have data on 273,293 websites that use the XMLHttpRequest browser API. Here is a list of some of the top ranked ones.

The highest rated site using XMLHttpRequest is google.com.

#WebsiteRankCountryLanguage
1 google.com #1 United States English
2 bing.com #16 United States English
3 p**nhub.com #34 United States English
4 nytimes.com #56 United States English
5 cnn.com #67 United States English
6 globo.com #81 Brazil Brazilian Portuguese
7 netflix.com #94 United States English
8 uol.com.br #97 Brazil Brazilian Portuguese
9 twitch.tv #116 United States English
10 vercel.com #117 United States English
11 mail.ru #119 Russia Russian
12 amazon.co.uk #122 United States British English
13 etsy.com #130 United States American English
14 stripchat.com #135 Cyprus English
15 maps.google.com United States English
16 aliexpress.us #145 China English
17 tilda.cc #150 United Arab Emirates English
18 vk.ru #154 Russia English
19 quora.com #169 United States English
20 shopee.co.id #181 Indonesia

πŸ“ˆ Usage Statistics

Most of the sites that use XMLHttpRequest:

Most of the sites using XMLHttpRequest are from the United States, the United Kingdom, and Germany.

  • United States 29.8%
  • United Kingdom 7.5%
  • Germany 7.4%
  • Russia 5.3%
  • Canada 3.9%
  • Australia 3.8%
  • India 3%
  • Japan 2.9%
  • France 2.9%
  • Other 33.5%

Most XMLHttpRequest users speak English, Russian, or German.

  • English 68.2%
  • Russian 5%
  • German 4.1%
  • Spanish 3.2%
  • French 2.8%
  • Japanese 2.2%
  • Italian 1.5%
  • Dutch 1.4%
  • Portuguese 1.3%
  • Other 10.3%

The XMLHttpRequest browser API is especially popular on .com top-level domains.

  • .com 54%
  • .ru 3.8%
  • .org 3.4%
  • .de 3.1%
  • .co.uk 2.9%
  • .com.au 2.3%
  • .net 2.3%
  • .it 1.2%
  • .ca 1.1%
  • Other 25.9%

The primary market segments for websites utilizing XMLHttpRequest include online shopping, business, and marketing and merchandising.

  • Online Shopping 25.3%
  • Business 12.1%
  • Marketing/Merchandising 11.5%
  • Fashion/Beauty 7%
  • Blogs/Wiki 5.3%
  • Education/Reference 3.2%
  • Internet Services 3.1%
  • Entertainment 3.1%
  • Health 2.7%
  • Other 26.7%

πŸ•΅οΈ Similar Technologies

These are some of the best XMLHttpRequest alternatives.

RankName
3
Fetch
Cambridge, Massachusetts, United States

A modern JavaScript API for requesting network resources and exchanging data between web applications and servers.

4
Beacon API
Cambridge, Massachusetts, United States

Used to send asynchronous and non-blocking requests to a web server.

6
WebSocket
Fremont, California, United States

A communication protocol that enables persistent, full-duplex data exchange between a client and a server over a single TCP connection.

12
WebRTC
Cambridge, Massachusetts, United States

A set of APIs and protocols originally developed by Google that enables real-time audio, video, and peer-to-peer data communication in web browsers and mobile applications.

Axios
Salt Lake City, Utah, United States

A promise-based HTTP client for making HTTP requests from browsers and Node.js applications.

FreeOpen source

πŸ†š Compare Alternatives

Compare XMLHttpRequest to…

πŸ’¬ Frequently Asked Questions

What is the company behind XMLHttpRequest?

XMLHttpRequest is owned by World Wide Web Consortium, Inc., headquartered in Cambridge, Massachusetts, United States.

Which country uses XMLHttpRequest the most?

The majority of XMLHttpRequest users are from the United States.

Who uses XMLHttpRequest?

According to our data, XMLHttpRequest is used on thousands of sites, including google.com, bing.com, and nytimes.com.

Is XMLHttpRequest used on government websites?

In total, we found XMLHttpRequest on 996 government sites in the United States.

Do academic institutions use XMLHttpRequest?

Yes, quite a few! Overall, we know of 225 academic websites in the United States that use XMLHttpRequest.

How does XMLHttpRequest compare to its competitors?

XMLHttpRequest is one of the most popular browser APIs, second only to Web Storage.

What are the alternatives to XMLHttpRequest?

Alternatives and possible competitors to XMLHttpRequest may include Fetch, WebSocket, and Axios.

πŸ‘‰ See Also

πŸ—ƒοΈ About This Data