Does Extension/Add-on API for Edge Collections exist?

Reid A Ballard III 20 Reputation points
2023-02-09T00:58:53.9066667+00:00

I am interested in writing an Extension which could read/write to Edge Collections but cannot find any API reference for Collections.

I checked the[ Extensions API List here](https://learn.microsoft.com/en-us/microsoft-edge/extensions-chromium/developer-guide/api-support"Supported API's for Microsoft Edge extensions") and did not notice any. I checked a couple of API's from that list that I figured could be related and found that all the links I clicked on took me over to the Chrome dev page, so I'm not even sure if Edge has Edge Feature-specific API documentation.

I've seen resources about accessing Collections externally (e.g.- via localappdata) which- afaik- would not apply here.

Is there any API that would be accessible through a browser extension?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,156 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yu Zhou-MSFT 12,216 Reputation points Microsoft Vendor
    2023-02-09T08:00:03.6233333+00:00

    Hi @Reid A Ballard III

    Unfortunately, your guess is right. Edge is based on Chromium and it's the same for extension APIs. Edge doesn't expose API for Edge Collections so I'm afraid you can't access Collections directly in extension.

    Just like you say, we can find Collections data in local file %localappdata%\Microsoft\Edge\User Data\Default\Collections\collectionsSQLite. You can use fetch in chromium extensions to access local file, but it's an SQLite database. I have the same opinion with you that it can't apply here.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,

    Yu Zhou

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful