Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

public API? #197

Open
opeologist opened this issue Mar 19, 2021 · 5 comments
Open

public API? #197

opeologist opened this issue Mar 19, 2021 · 5 comments

Comments

@opeologist
Copy link

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?

@jschr
Copy link
Member

jschr commented Mar 26, 2021

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

@brumm
Copy link

brumm commented Apr 17, 2021

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.

@pomber
Copy link

pomber commented Sep 3, 2022

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?

@jschr
Copy link
Member

jschr commented Sep 3, 2022

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

@akshaymattoo
Copy link

akshaymattoo commented Oct 23, 2022

@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.

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

No branches or pull requests

5 participants