NavigatorUAData: getHighEntropyValues() method
  
  
   
   The getHighEntropyValues() method of the NavigatorUAData interface is a Promise that resolves with a dictionary object containing the high entropy values the user-agent returns.
   
    Note: The terms high entropy and low entropy refer to the amount of information these values reveal about the browser. The values returned as properties are deemed low entropy, and unlikely to identify a user. The values returned by NavigatorUAData.getHighEntropyValues() could potentially reveal more information. These values are therefore retrieved via a Promise, allowing time for the browser to request user permission, or make other checks.
    
   
  Syntax
  
   
    
    getHighEntropyValues(hints)
    
   
  Parameters
  
   
    - 
     hints
- 
     An array containing the hints to be returned, one or more of: 
      - "architecture"
- "bitness"
- "model"
- "platformVersion"
- "uaFullVersion"Deprecated
- "fullVersionList"
 
 
  Return value
  
   A Promise that resolves to an object containing some or all of the following values (based on the hints requested):
   
    - 
     brands
- 
     Returns an array of objects containing brandandversionspecifying the browser brand and its version (the same information as provided byNavigatorUAData.brands). Note that this information can be sent to a server in theSec-CH-UAheader (a low-entropy client hint).
 
- 
     mobile
- 
     Returns trueif the user agent is running on a mobile device (the same information as provided byNavigatorUAData.mobile). Note that this information can be sent to a server in theSec-CH-UA-Mobileheader (a low-entropy client hint).
 
- 
     platform
- 
     Returns a string describing the platform the user agent is running on, like "Windows"(the same information as provided byNavigatorUAData.platform). Note that this information can be sent to a server in theSec-CH-UA-Platformheader (a low-entropy client hint).
 
- 
     architecture
- 
     A string containing the platform architecture. For example, "x86". Note that this information can be sent to a server in theSec-CH-UA-Archheader after the server explicitly requests it in theAccept-CHheader.
 
- 
     bitness
- 
     A string containing the architecture bitness. For example, "32"or"64". Note that this information can be sent to a server in theSec-CH-UA-Bitnessheader if the server explicitly requests it in theAccept-CHheader.
 
- 
     model
- 
     A string containing the model of mobile device. For example, "Pixel 2XL". If device is not a mobile device or if device model is not known,modelwill be"". Note that this information can be sent to a server in theSec-CH-UA-Modelheader if the server explicitly requests it in theAccept-CHheader.
 
- 
     platformVersion
- 
     A string containing the platform version. Platform name itself is always available as low-entropy hint platform. For example,"10.0". Note that this information can be sent to a server in theSec-CH-UA-Platform-Versionheader if the server explicitly requests it in theAccept-CHheader.
 
- uaFullVersionDeprecated
- 
     A string containing the full browser version. For example, "103.0.5060.134". Deprecated in favor offullVersionList. Note that this information can be sent to a server in theSec-CH-UA-Full-Versionheader if the server explicitly requests it in theAccept-CHheader.
 
- 
     fullVersionList
- 
     An array of objects with properties "brand"and"version"representing the browser name and full version respectively. For example,{"brand": "Google Chrome", "version": "103.0.5060.134"}, {"brand": "Chromium", "version": "103.0.5060.134"}. Please note that one object may intentionally contain invalid information to prevent sites from relying on a fixed list of browsers. Note that this information can be sent to a server in theSec-CH-UA-Full-Version-Listheader if the server explicitly requests it in theAccept-CHheader.
 
 
  Exceptions
  
   
    - NotAllowedError- DOMException
- 
     Thrown if the user-agent decides that one or more of the hintsrequested should not be returned.
 
 
  Examples
  
   In the following example a number of hints are requested using the getHighEntropyValues() method. When the promise resolves, this information is printed to the console.
   
    
    navigator.userAgentData
  .getHighEntropyValues([
    "architecture",
    "model",
    "platformVersion",
    "fullVersionList",
  ])
  .then((values) => console.log(values));
    
   
  Specifications
  
  Browser compatibility
  
   
    
     
      
       |  | Desktop | Mobile | 
      
       |  | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | 
     
     
      
       | getHighEntropyValues | 90 | 90 | No | No | 76 | No | No | 90 | No | 64 | No | No | 
     
    
    
   
  See also
  
   
    - These values are also available as via HTTP request headers: