top

logo

custom icon
articleBlog
custom iconFeature overview
language-switch
简体中文

Client Hints are a set of HTTP headers and a JavaScript API that allow web browsers to send detailed information about the client device and browser to web servers.

userAgent
user-Agent
loadingloading...
Client Hints JavaScript API
APISupport
loadingloading...
architecture
loadingloading...
bitness
loadingloading...
brands
loadingloading...
fullVersionLis
loadingloading...
mobile
loadingloading...
model
loadingloading...
platform
loadingloading...
platformVersion
loadingloading...
uaFullVersion
loadingloading...
wow64
loadingloading...
Client Hints HTTP Headers
sec-ch-ua
loadingloading...
sec-ch-ua-platform
loadingloading...
sec-ch-ua-mobile
loadingloading...
sec-ch-ua-full-version
loadingloading...
sec-ch-ua-platform-version
loadingloading...
sec-ch-ua-full-version-list
loadingloading...
sec-ch-ua-arch
loadingloading...
sec-ch-ua-bitness
loadingloading...
sec-ch-ua-wow64
loadingloading...
sec-ch-ua-model
loadingloading...
sec-ch-save-data
loadingloading...
sec-ch-width
loadingloading...
sec-ch-viewport-width
loadingloading...
viewport-width
loadingloading...
sec-ch-viewport-height
loadingloading...
sec-ch-dpr
loadingloading...
dpr
loadingloading...
sec-ch-device-memory
loadingloading...
device-memory
loadingloading...
sec-ch-rtt
loadingloading...
sec-ch-ect
loadingloading...
ect
loadingloading...
sec-ch-prefers-color-scheme
loadingloading...
sec-ch-prefers-reduced-motion
loadingloading...
sec-ch-prefers-reduced-transparency
loadingloading...
sec-ch-prefers-contrast
loadingloading...
sec-ch-forced-colors
loadingloading...
sec-ch-ua-form-factors
loadingloading...
Known Client Hints List
  • Sec-CH-UA
    Represents the brand and version of the user agent
  • Sec-CH-UA-Full-Version
    Indicates the complete version of the user agent. (Deprecated, replaced by Sec-CH-UA-Full-Version-List)
  • Sec-CH-UA-Full-Version-List
    Indicates the full version of the user agent (deprecated, replaced by Sec-CH-UA-Full-Version-List)
  • Sec-CH-UA-Platform
    Represents the platform for a given user agent.
  • Sec-CH-UA-Platform-Version
    Represents the platform version for a given user agent.
  • Sec-CH-UA-Arch
    Represents the architecture of the platform for a given user agent.
  • Sec-CH-UA-Bitness
    Indicates the bitness of the platform architecture on which the given user agent is executing
  • Sec-CH-UA-WoW64
    Used to detect whether the user agent binary is running in 32-bit mode on 64-bit Windows.
  • Sec-CH-UA-Model
    Represents the device executing the given user agent.
  • Sec-CH-UA-Mobile
    Detects if the user agent is optimized for mobile user experience.
  • Sec-CH-UA-Form-Factors
    Indicates the device form factor, historically represented by the deviceCompat token in User-Agent strings.
  • Sec-CH-Lang
    (or Lang) Represents the user's language preference.
  • Sec-CH-Save-Data
    (or Save-Data) Indicates the user agent's preference for reduced data usage.
  • Sec-CH-Width
    Provides the layout width of images to the server.
  • Sec-CH-Viewport-Width
    (or Viewport-Width) The width of the user's viewport in CSS pixels.
  • Sec-CH-Viewport-Height
    Represents the current viewport height of the user agent.
  • Sec-CH-DPR
    (or DPR) Reports the ratio of physical pixels to CSS pixels on the user's screen.
  • Sec-CH-Device-Memory
    (or Device-Memory) Indicates the approximate amount of device memory in GiB. Because this information could be used to identify users, Device-Memory values are deliberately coarse. Valid values are 0.25, 0.5, 1, 2, 4, and 8.
  • Sec-CH-RTT
    (or RTT) Provides the approximate round-trip time at the application layer, in milliseconds. This RTT includes server processing time and differs from transport-layer RTT. Values are rounded to the nearest 25ms to prevent fingerprinting.
  • Sec-CH-Downlink
    (or Downlink) Represents the approximate downlink speed of the user's connection in megabits per second (Mbps). Values are rounded to the nearest multiple of 25 kilobits per second (kbps) to prevent fingerprinting.
  • Sec-CH-ECT
    (or ECT) Stands for Effective Connection Type. Its value is one of an enumerated list of connection types, each describing a connection within a specified range of RTT and downlink values. Valid ECT values are '4g', '3g', '2g', and 'slow-2g'.
  • Sec-CH-Prefers-Color-Scheme
    Indicates the user's preferred color scheme.
  • Sec-CH-Prefers-Reduced-Motion
    Detects if the user has requested the system to minimize the amount of animation or motion it uses.
  • Sec-CH-Prefers-Reduced-Transparency
    Detects if the user has requested the system to minimize the number of transparent or semi-transparent layer effects it uses.
  • Sec-CH-Prefers-Contrast
    Detects if the user has requested web content to be presented with higher (or lower) contrast.
  • Sec-CH-Forced-Colors
    Detects if the user agent has enabled forced colors mode, where it enforces a user-chosen limited color palette on the page.
logo
logo

Article