GET ./onenote/pages/{id}
https://graph.microsoft.com/v1.0/me/onenote
https://graph.microsoft.com/v1.0/me/onenote/notebooks/{id}/sections
https://graph.microsoft.com/v1.0/me/onenote/notes/pages
https://graph.microsoft.com/v1.0/me/onenote/pages?select=title,self
./pages[?filter,orderby,select,expand,top,skip,search,count]
./sections/{section-id}/pages[?filter,orderby,select,expand,top,skip,search,count,pagelevel]
lastModifiedTime desc
.id
, name
, and self
properties.@odata.nextLink
link in the response that you can use to get the next 20 entries.GET ./sections/{section-id}/pages?pagelevel=true
./pages/{page-id}[?select,expand,pagelevel]
id
, name
, and self
properties.GET ./pages/{page-id}?pagelevel=true
./pages/{page-id}/preview
<img src='https://www.onenote.com/api/v1.0/resources/{id}/content?publicAuth=true&mimeType=image/png' />
./pages/{page-id}/content[?includeIDs]
./sections[?filter,orderby,select,top,skip,expand,count]
./sectionGroups/{sectiongroup-id}/sections[?filter,orderby,select,top,skip,expand,count]
./notebooks/{notebook-id}/sections[?filter,orderby,select,top,skip,expand,count]
name asc
.id
, name
, and self
properties../sections/{section-id}[?select,expand]
id
, name
, and self
properties../sectionGroups[?filter,orderby,select,top,skip,expand,count]
./notebooks/{notebook-id}/sectionGroups[?filter,orderby,select,top,skip,expand,count]
name asc
. Adobe flash cs6 free download for pc.id
, name
, and self
properties../sectionGroups/{sectiongroup-id}[?select,expand]
id
, name
, and self
properties../notebooks[?filter,orderby,select,top,skip,expand,count]
name asc
../notebooks/{notebook-id}[?select,expand]
./resources/{resource-id}/$value
https://www.onenote.com/api/v1.0/me/notes
and https://www.onenote.com/api/v1.0/myOrganization/siteCollections/{id}/sites/{id}/notes/
filter=title%20eq%20'biology'
filter=tolower(name) eq 'spring'
search
is available for consumer notebooks only).search
is available for consumer notebooks only).lastModifiedTime desc
(search
is available for consumer notebooks only).search
is available for consumer notebooks only).search
is available for consumer notebooks only).lastModifiedTime desc
.filter=isDefault%20eq%20true
Query option | Example and description |
---|---|
count | count=true The count of entities in the collection. The value is returned in the @odata.count property in the response. |
expand | expand=sections,sectionGroups The navigation properties to return inline in the response. The following properties are supported for expand expressions: - Pages: parentNotebook, parentSection - Sections: parentNotebook, parentSectionGroup - Section groups: sections, sectionGroups, parentNotebook, parentSectionGroup - Notebooks: sections, sectionGroups By default, GET requests for pages expands parentSection and select the section's id, name, and self properties. Default GET requests for sections and section groups expand both parentNotebook and parentSectionGroup, and select the parents' id, name, and self properties. Can be used for a single entity or a collection. Separate multiple properties with commas. Property names are case-sensitive. |
filter | filter=isDefault eq true A Boolean expression for whether to include an entry in the result set. Supports the following OData operators and functions: - Comparison operators: eq, ne, gt, ge, lt, le - Logical operators: and, or, not - String functions: contains, endswith, startswith, length, indexof, substring, tolower, toupper, trim, concat Property names and OData string comparisons are case-sensitive. We recommend using the OData tolower function for string comparisons. Example: filter=tolower(name) eq 'spring' |
orderby | orderby=title,createdTime desc The properties to sort by, with an optional asc (default) or desc sort order. You can sort by any property of the entity in the requested collection. The default sort order for notebooks, section groups, and sections is name asc , and for pages is lastModifiedTime desc (last modified page first).Separate multiple properties with commas, and list them in the order that you want them applied. Property names are case-sensitive. |
search | search=cell div Available for consumer notebooks only. The term or phrase to search for in the page title, page body, image alt text, and image OCR text. By default, search queries return results sorted by relevance. OneNote uses Bing full-text search to support phrase search, stemming, spelling forgiveness, relevance and ranking, word breaking, multiple languages, and other full-text search features. Search strings are case-insensitive. Applies only to pages in notebooks owned by the user. Indexed content is private and can only be accessed by the owner. Password-protected pages are not indexed. Applies only to the pages endpoint. |
select | select=id,title The properties to return. Can be used for a single entity or for a collection. Separate multiple properties with commas. Property names are case-sensitive. |
skip | skip=10 The number of entries to skip in the result set. Typically used for paging results. |
top | top=50 The number of entries to return in the result set, up to a maximum of 100. The default value is 20. |
pagelevel
query string option you can use to get the level and order of pages within the parent section. Applies only to queries for pages in a specific section or queries for a specific page.GET ./sections/{section-id}/pages?pagelevel=true
GET ./pages/{page-id}?pagelevel=true
%20
encoding.filter=isDefault%20eq%20true
filter=tolower(name) eq 'spring'
Comparison operator | Example |
---|---|
eq (equal to) | createdByAppId eq '{app-id}' |
ne (not equal to) | userRole ne 'Owner' |
gt (greater than) | createdTime gt 2014-02-23 |
ge (greater than or equal to) | lastModifiedTime ge 2014-05-05T07:00:00Z |
lt (less than) | createdTime lt 2014-02-23 |
le (less than or equal to) | lastModifiedTime le 2014-02-23 |
Logical operator | Example |
---|---|
and | createdTime le 2014-01-30 and createdTime gt 2014-01-23 |
or | createdByAppId eq '{app-id}' or createdByAppId eq '{app-id}' |
not | not contains(tolower(title),'school') |
./sections?filter=createdTime ge 2015-01-01&select=name,pagesUrl&orderby=lastModifiedTime desc
Request data | Description |
---|---|
Protocol | All requests use the SSL/TLS HTTPS protocol. |
Authorization header | Bearer {token} , where {token} is a valid OAuth 2.0 access token for your registered app.If missing or invalid, the request fails with a 401 status code. See Authentication and permissions. |
Accept header | application/json for OneNote entities and entity setstext/html for page content |
Response data | Description |
---|---|
Success code | A 200 HTTP status code. |
Response body | An OData representation of the entity or entity set in JSON format, the page HTML, or file resource binary data. |
Errors | If the request fails, the API returns errors in the @api.diagnostics object in the response body. |
X-CorrelationId header | A GUID that uniquely identifies the request. You can use this value along with the value of the Date header when working with Microsoft support to troubleshoot issues. |
https://graph.microsoft.com/{version}/me/onenote/
version
segment in the URL represents the version of Microsoft Graph that you want to use. Use v1.0
for stable production code. Use beta
to try out a feature that's in development. Features and functionality in beta may change, so you shouldn't use it in your production code.me
for OneNote content that the current user can access (owned and shared). Use users/{id}
for OneNote content that the specified user (in the URL) has shared with the current user. Use Microsoft Graph to get user IDs.