'How to programmatically retrieve the list of Visual Studio Code extensions on the Marketplace?

How can I programmatically retrieve the list of all published VSCode extensions, together with their metadata? I was unable to find an API to query the VSCode marketplace.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source