Skip to content

Instantly share code, notes, and snippets.

@scottmwyant
Created October 29, 2020 02:27
Show Gist options
  • Save scottmwyant/70f5fd296a935a15c8fbb9b9d646e6ca to your computer and use it in GitHub Desktop.
Save scottmwyant/70f5fd296a935a15c8fbb9b9d646e6ca to your computer and use it in GitHub Desktop.
Using the VS Code Marketplace API

This request will return a whole bunch of information about a given extension, ms-python.python for example.

Note that I'm running Windows and ran into some trouble with escaping quotes. The JSON may need to be massaged a bit to work on Linux, start by replacing the double-quotes on the ends with single quotes and stripping out the escape characters (change \" to just ").

curl --request POST https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery/ --header "Accept: application/json;api-version=3.0-preview.1" --header "Content-Type: application/json" --data-raw "{\"filters\": [{\"criteria\": [{\"filterType\": 7,\"value\": \"ms-python.python\"}]}],\"flags\": 914}"

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment