Office Add-ins JavaScript API reference
The JavaScript API for Office enables you to create web applications that interact with the object models in Office host applications. Use this section to learn more about the classes, methods, and other types available for building Office Add-ins.
The following is a list of APIs for the supported Office host applications. Common API links include all APIs not attributed to a particular host (as detailed in Office Common API requirement set). Other items link to a version of the API reference documentation for that host based on a requirement set. The reference documentation will be versioned to include all APIs up to and including that requirement set (for example, ExcelApi 1.3 shows APIs in ExcelApi 1.1, 1.2, 1.3 as well as the Common APIs).
Tip
You can change the version of a reference page by using the filter selection drop-down menu above the table of contents at any time. If the page doesn't exist in that particular version, you'll be returned to the current version.
Office hosts
-
Excel APIs
-
Outlook APIs
-
Word APIs
- WordApi Preview
- WordApiOnline 1.1
- WordApiDesktop 1.1
- WordApiHiddenDocument 1.5 (Desktop only)
- WordApiHiddenDocument 1.4 (Desktop only)
- WordApiHiddenDocument 1.3 (Desktop only)
- WordApi 1.8
- WordApi 1.7
- WordApi 1.6
- WordApi 1.5
- WordApi 1.4
- WordApi 1.3
- WordApi 1.2
- WordApi 1.1
- Common APIs
-
PowerPoint APIs
-
OneNote APIs
-
Visio APIs
-
Project APIs
Special requirement sets
Online-only and desktop-only requirement sets are special requirement sets. An online-only requirement set contains the latest APIs for the web version of the supporting applications (currently Excel and Word). A desktop-only requirement set contains the latest APIs for the Windows and Mac versions of the supporting applications (currently Word). WordApiDesktop
requirement sets are also supported on iPad. APIs in these requirement sets aren't fully supported across all platforms. For more information, see one of the following as applicable.
ExcelApiOnline 1.1
: Excel JavaScript API online-only requirement setWordApiOnline 1.1
: Word JavaScript API online-only requirement setWordApiDesktop 1.1
: Word JavaScript API desktop-only requirement set 1.1WordApiHiddenDocument 1.5
: Word JavaScript API desktop-only (hidden document) requirement set 1.5WordApiHiddenDocument 1.4
: Word JavaScript API desktop-only (hidden document) requirement set 1.4WordApiHiddenDocument 1.3
: Word JavaScript API desktop-only (hidden document) requirement set 1.3
Note
If you're looking for the JavaScript APIs for developing Office Scripts, visit the Office Scripts API reference.
License terms
Use of the Office.js API library is governed by the terms described under the Microsoft software license terms for the Microsoft Office JavaScript (Office.js) API library.
See also
Office Add-ins