public API?
is there a public-facing API that can be hit to get a list of the current trending themes and their associated metadata for a personal, open-source project?
Not at the moment but I'll keep that in mind for the next version. You could try pulling from the marketplace API directly, I don't believe it's meant for external use but it's continued to work for me.
This file should get you started: https://github.com/jschr/vscodethemes/blob/dev/backend/jobs/scrapeExtensions.ts#L84
This would be an amazing resource! I'm currently playing with building a themable code-related app, and because I'm lazy, wanted to re-use existing vscode themes. A central and public directory of themes would make this a breeze!
It'd be great if one could list themes, view the trending/recent/popular feeds and get access to the individual .json theme files as well.
Edit: Just saw the discussion in #148, I'd be absolutely willing to support this as a sponsor, via patreon, or even with a token-based subscription.
This file should get you started: https://github.com/jschr/vscodethemes/blob/dev/backend/jobs/scrapeExtensions.ts#L84
Hi! that file doesn't exist anymore. Is the scraper still open source?
Hey @pomber, I released a big update a while ago but you can still find the old version of the site under the archive-v2 branch.
Here's the file: https://github.com/vscodethemes/web/blob/archive-v2/backend/jobs/scrapeExtensions.ts
@pomber Just in case you want to re-use the API from @jschr you would have to use the Accept header to be
application/json;api-version=7.1-preview.1;excludeUrls=true.