15 Web APIs you've never heard of

11. Generic Sensor API

There are already a lot of Web APIs that define interfaces for different kinds of sensors (for example, the Device Orientation API and the Geolocation API). Unfortunately those APIs do not have a common interface and are all used differently – for example, by providing callback handlers in one case, or by registering event handlers in another. The goal of the Generic Sensor API is to define a set of common, generic interfaces for accessing any kind of sensor. Concrete sensor APIs that are based on the Generic Sensor API (such as the Ambient Light API) extend generic interfaces and add functionality as required.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

Philip is a software engineer working at the Fraunhofer Institute. He has written three books and many articles on Java and JavaScript, and is the creator of Philip’s JS Recipes.
Read more
404 pages: LEGO
The best 404 pages for clever web design inspiration
hero
I tested an excellent online Photoshop alternative you've probably never heard of
CES 2025
The weird and wonderful CES gadgets I didn't know I needed
An NVIDIA GeForce RTX 5090 graphics card above a grid of green bending lines
8 things I learned about NVIDIA's new tech at CES 2025
Hip-Hop infographic by Dorothy
29 inspiring infographics
graphic designer
'It's a genie out of the bottle': How AI is impacting graphic design
Latest in Web Design
A screenshot of the new YouTube UI
Yes, YouTube has a new UI. Yes, it's terrible
Adobe XD logo
It seems Adobe's given up on UI design (for now)
Adobe Muse
Why Adobe is frustrating web designers
Dropbox Relay interface with photo of man running
How Dropbox Replay is helping designers future-proof their practice
UX revolution
From 2D to 3D: How brands can harness the latest UX/UI revolution
Personal portfolio of Julie Bonnemoy with a retro vibe
From AI to no-code: The top web design trends for 2024 according to Designmodo
Latest in Features
Lenovo Legion Go
I talked to Lenovo's monitor boss about the future of screen tech, and it's big news for creatives
iPhone 12 box
The beigeification of design: Why are brands so afraid of colour?
Fatal Fury City of the Wolves art; a mix of anime style characters on a red background
How Fatal Fury: City of the Wolves reimagines its anime pixel art fighters for a new era
Puma
"There is a fundamental shift happening in society": Puma's bold new campaign flips the script on sports advertising
Wax Heads; a digital illustration depicts a young woman holding a record, surrounded by a variety of displayed items in a store
How Wax Heads hand-drawn 'cosy-punk' aesthetic was made using Godot
Tesla logo
The history of the Tesla logo: from car badge to global tech brand