Docs
Skip to content

Avatars

Browser icons_

Retrieve browser icons for displaying user agent information and device compatibility.

2 min read

Raw

The browser icon endpoint provides access to icons for popular web browsers. This is useful for displaying user agent information, browser compatibility indicators, and device compatibility in your application.

Get browser icon

Retrieve a browser icon by browser code.

Parameters

The getBrowser method accepts the following parameters:

ParameterTypeDescription
codestringThe browser code. Supported codes include chrome, firefox, safari, edge, opera, and others.
widthintegerThe width of the output image in pixels. Accepts values between 0-2000.
heightintegerThe height of the output image in pixels. Accepts values between 0-2000.

Supported browsers

Common browser codes include:

Use cases

Browser icons are commonly used for:

  • Session information: Display user session details visually alongside browser icons. Browser codes from session data match perfectly with the browser codes used in this endpoint, allowing you to create cohesive visual session displays
  • Analytics dashboards: Display browser usage statistics and user agent information
  • Session management: Show active sessions with browser information
  • Compatibility indicators: Display supported browsers for features or content
  • Security logs: Visualize login attempts and session information by browser
  • User activity: Display browser information in activity feeds and audit logs

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.