Given the ID of a bookmarks.BookmarkTreeNode or an array of such IDs, the bookmarks.get() method retrieves the matching nodes.

This is an asynchronous function that returns a Promise.


var getBookmarks = browser.bookmarks.get(
  idOrIdList                // string or string array


string A string or array of strings specifying the IDs of one or more BookmarkTreeNode objects to retrieve.

Return value

A Promise that will be fulfilled with an array of BookmarkTreeNode, one for each matching node. Separators are not included in the results. If no nodes could be found, the promise will be rejected with an error message.

Browser compatibility

ChromeEdgeFirefoxFirefox for AndroidOpera
Basic support Yes No45 No Yes


This example tries to get the bookmark whose ID is "abcdefghijkl". If no bookmark with this ID exists, onRejected is called:

function onFulfilled(bookmarks) {

function onRejected(error) {
  console.log(`An error: ${error}`);

var gettingBookmarks = browser.bookmarks.get("abcdefghijkl");
gettingBookmarks.then(onFulfilled, onRejected);


This API is based on Chromium's chrome.bookmarks API. This documentation is derived from bookmarks.json in the Chromium code.

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.

Document Tags and Contributors

Contributors to this page: wbamberg, Makyen, Sheppy
Last updated by: wbamberg,