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:
| Parameter | Type | Description |
code | string | The browser code. Supported codes include chrome, firefox, safari, edge, opera, and others. |
width | integer | The width of the output image in pixels. Accepts values between 0-2000. |
height | integer | The 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