This article needs a technical review. How you can help.
The Web offers a wide variety of APIs to perform various useful tasks. These can be accessed using JavaScript code, and let you do anything from making minor adjustments to any window
or element
, to generating intricate graphical and audio effects using APIs such as WebGL and Web Audio.
Each individual interface across all APIs is listed in the index.
There's also a listing of all available events in the event reference.
- Document Object Model
- The DOM is an API that allows access to and modification of the current document. It allows manipulation of document
Node
andElement
. HTML, XML, and SVG have extended it to manipulate their specific elements. - Device APIs
- This set of APIs allows access to various hardware features available to Web pages and applications, e.g., Ambient Light Sensor API, Battery Status API, Geolocation API, Pointer Lock API, Proximity API, Device Orientation API, Screen Orientation API, Vibration API.
- Communication APIs
- These APIs let Web pages and applications communicate with other pages or devices, e.g., Network Information API, Web Notifications, Simple Push API.
- Data management APIs
- User data can be stored and managed using this set of APIs, e.g., FileHandle API, IndexedDB.
In addition to these APIs that are available to any Web site or app, a set of more powerful Mozilla APIs are available to privileged and certified applications.
- Privileged APIs
- A privileged application is an installed app that has been given specific rights by the user. Privileged APIs include: TCP Socket API, Contacts API, Device Storage API, and Browser API.
- Certified APIs
- A certified application is a low-level application performing critical operations on an operating system like Firefox OS. Less privileged applications interact with these applications using Web Activities. Certified APIs include: Bluetooth API, Mobile Connection API, Network Stats API, Telephony, WebSMS, WiFi Information API, Camera API, Power Management API, Settings API, Idle API, Permissions API, Time/Clock API.