mozilla

Revision 527701 of Web API reference

  • Revision slug: Web/Reference/API
  • Revision title: Web API reference
  • Revision id: 527701
  • Created:
  • Creator: vallagrande
  • Is current revision? No
  • Comment

Revision Content

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 make minor adjustments to any {{domxref("window")}} or {{domxref("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 {{domxref("Node")}} and {{domxref("Element")}}. Both HTML and SVG have extended it to manipulate their specific elements.
Devices 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, Browser API,
Certified APIs
A certified application is a low-level application performing critical operations on an operating system like Firefox OS. Less privileged application 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.

EditCommunity

Join the Web API community on our mailing list or newsgroup:

Also, be sure to join in the live discussion in the #webapi channel on IRC.

These topics may also be of interest:

 

Revision Source

<p><span class="seoSummary">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 make minor adjustments to any {{domxref("window")}} or {{domxref("element")}}, to generating intricate graphical and audio effects using APIs such as <a href="/en-US/docs/Web/WebGL">WebGL</a> and <a href="/en-US/docs/Web_Audio_API">Web Audio</a>.</span></p>
<p>Each individual interface across all APIs is listed in the <a href="/en-US/docs/Web/API">index.</a></p>
<p>There's also a <a href="/en-US/docs/Web/Reference/Events">listing of all available events</a> in the event reference.</p>
<div class="cleared topicpage-table">
 <div class="section">
  <dl>
   <dt>
    <a href="/en-US/docs/DOM">Document Object Model</a></dt>
   <dd>
    The DOM is an API that allows access to and modification of the current document. It allows manipulation of document {{domxref("Node")}} and {{domxref("Element")}}. Both HTML and SVG have extended it to manipulate their specific elements.</dd>
   <dt>
    Devices APIs</dt>
   <dd>
    This set of APIs allows access to various hardware features available to Web pages and applications. E.g. <a href="/en-US/docs/WebAPI/Using_Light_Events">Ambient Light Sensor API</a>, <a href="/en-US/docs/WebAPI/Battery_Status" title="WebAPI/Battery_Status">Battery Status API</a>, <a href="/en-US/docs/Using_geolocation" title="Using_geolocation">Geolocation API</a>, <a href="/en-US/docs/WebAPI/Pointer_Lock" title="API/Pointer_Lock_API">Pointer Lock API</a>, <a href="/en-US/docs/WebAPI/Proximity" title="WebAPI/Proximity">Proximity API</a>, <a href="/en-US/docs/WebAPI/Detecting_device_orientation" title="WebAPI/Detecting_device_orientation">Device Orientation API</a>, <a href="/en-US/docs/WebAPI/Managing_screen_orientation" title="WebAPI/Detecting_device_orientation">Screen Orientation API</a>, <a href="/en-US/docs/WebAPI/Vibration" title="WebAPI/WebBluetooth">Vibration API</a>.</dd>
   <dt>
    Communication APIs</dt>
   <dd>
    These APIs let Web pages and applications communicate with other pages or devices. E.g. <a href="/en-US/docs/WebAPI/Network_Information" title="WebAPI/Network_Information">Network Information API</a>, <a href="/en-US/docs/WebAPI/Using_Web_Notifications" title="/en-US/docs/WebAPI/Using_Web_Notifications">Web Notifications</a>, <a href="/en-US/docs/WebAPI/Simple_Push" title="WebAPI/Push_Notifications">Simple Push API</a>.</dd>
   <dt id="Data_management_APIs" name="Data_management_APIs">
    Data management APIs</dt>
   <dd>
    User data can be stored and managed using this set of APIs. E.g. <a href="/en-US/docs/WebAPI/FileHandle_API" title="WebAPI/FileHandle_API">FileHandle API</a>, <a href="/en-US/docs/IndexedDB" title="IndexedDB">IndexedDB</a>.</dd>
  </dl>
  <p>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.</p>
  <dl>
   <dt>
    Privileged APIs</dt>
   <dd>
    A privileged application is an installed app that has been given specific rights by the user. Privileged APIS include: <a href="/en-US/docs/WebAPI/TCP_Socket" title="WebAPI/TCP_Socket">TCP Socket API</a>, <a href="/en-US/docs/WebAPI/Contacts" title="WebAPI/Contacts">Contacts API</a>, <a href="/en-US/docs/WebAPI/Device_Storage_API" title="WebAPI/Device_Storage_API">Device Storage API</a>, <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Browser API</a>,</dd>
   <dt>
    Certified APIs</dt>
   <dd>
    A certified application is a low-level application performing critical operations on an operating system like Firefox OS. Less privileged application interact with these applications using <a href="/en-US/docs/WebAPI/Web_Activities" title="WebAPI/Web_Activities">Web Activities</a>.&nbsp; Certified APIs include:<a href="/en-US/docs/WebAPI/WebBluetooth" title="WebAPI/WebBluetooth"> Bluetooth API</a>, <a href="/en-US/docs/WebAPI/Mobile_Connection" title="WebAPI/Mobile_Connection">Mobile Connection API</a>, <a href="/en-US/docs/WebAPI/Network_Stats" title="WebAPI/Network_Stats">Network Stats API</a>, <a href="/en-US/docs/WebAPI/WebTelephony" title="WebAPI/WebTelephony">Telephony</a>, <a href="/en-US/docs/WebAPI/WebSMS" title="WebAPI/WebSMS">WebSMS</a>, <a href="/en-US/docs/WebAPI/WiFi_Information" title="WebAPI/WiFi_Information">WiFi Information API</a>, <a href="/en-US/docs/WebAPI/Camera" title="WebAPI/Camera">Camera API</a>, <a href="/en-US/docs/WebAPI/Power_Management" title="WebAPI/Power_Management">Power Management API</a>, <a href="/en-US/docs/WebAPI/Settings" title="WebAPI/Settings">Settings API</a>, <a href="/en-US/docs/WebAPI/Idle" title="WebAPI/Device_Storage_API">Idle API</a>, <a href="/en-US/docs/WebAPI/Permissions" title="WebAPI/Permissions">Permissions API</a>, <a href="/en-US/docs/WebAPI/Time_and_Clock" title="WebAPI/Time_and_Clock">Time/Clock API</a>.</dd>
  </dl>
 </div>
 <div class="section">
  <h2 class="Community" id="EditCommunity"><a class="edit-section" data-section-id="Community" data-section-src-url="/en-US/docs/Web/Reference/API?raw=true&amp;section=Community" href="/en-US/docs/Web/Reference/API$edit?section=Community&amp;edit_links=true" title="Edit section">Edit</a>Community</h2>
  <p>Join the Web API community on our mailing list or newsgroup:</p>
  <ul>
   <li><a class="external" href="https://lists.mozilla.org/listinfo/dev-webapi">as a mailing list</a></li>
   <li><a href="news://news.mozilla.org/mozilla.dev.webapi">as a newsgroup</a></li>
   <li><a class="external" href="http://groups.google.com/group/mozilla.dev.webapi">as a Google Group</a></li>
   <li><a class="external" href="http://groups.google.com/group/mozilla.dev.webapi/feeds">as a Web feed</a></li>
  </ul>
  <p>Also, be sure to join in the live discussion in the <a href="irc://irc.mozilla.org/webapi">#webapi</a> channel on <a class="external" href="https://wiki.mozilla.org/IRC">IRC</a>.</p>
  <h2 class="Related_Topics" id="Related_Topics">Related Topics</h2>
  <p>These topics may also be of interest:</p>
  <ul>
   <li><a href="/en-US/docs/Web/API">Index of all Web API interfaces</a></li>
  </ul>
 </div>
</div>
<p>&nbsp;</p>
Revert to this revision