Web APIs

Device Access APIs

Explore and learn about 11 JavaScript APIs in the Device Access category.

Battery

Monitor device battery level, charging status, and power management with the Battery Status API. Optimize your web app based on device power conditions.

Explore API

Geolocation

Access the user's geographical location to provide location-aware features.

Explore API

Device Memory

Access information about the client device's RAM memory capacity. Perfect for adapting content and features based on device capabilities.

Explore API

Device Orientation

Access information about the device's physical orientation and motion. Perfect for creating immersive experiences and motion-based interactions.

Explore API

Gamepad

Access and respond to signals from gamepads and game controllers in a simple, consistent way. Perfect for web-based games, simulations, and interactive experiences.

Explore API

Network Information

Access information about the network connection in terms of general connection type and quality, enabling adaptive experiences based on network capabilities.

Explore API

Screen Orientation

Access and control the screen orientation of a device. Lock the orientation or respond to orientation changes in your web applications.

Explore API

Screen Wake Lock

Prevent devices from dimming or locking the screen when an application needs to keep running. Perfect for reading, presentations, or applications that don't require user interaction.

Explore API

Sensor APIs

Access device sensors like accelerometer, gyroscope, and ambient light sensor. Perfect for creating responsive, context-aware web applications.

Explore API

Vibration

Control device vibration hardware to provide haptic feedback. Create simple pulses or complex vibration patterns for enhanced user experience on mobile devices.

Explore API

Web MIDI

Interact with MIDI devices in web applications with the Web MIDI API. Learn to connect to instruments, controllers, and other MIDI hardware.

Explore API