Finding projects on repl.it
Coder100 (172)

I have a folder, and I would like to access every project's data such as project name and project URL inside the folder using some sort of API. So it would be like a GET request and the header looks like {projects:[{'[project name]',...},{...},...]} Is there a way to do this? I prefer something like node.js if possible. Thank you!

You are viewing a single comment. View All
eankeen (614)

There isn't a documented API to facilitate this, unfortunately. If you know graphQL, there is a graphQL endpoint located at /graphql that should give you the data you are looking for. It's not documented though, and it's subject to change without any notice.

Maybe consider performing a GET request to https://repl.it/@<USERNAME> and parsing the HTML for the project titles or links.

Coder100 (172)

@Coder100 how would I perform the GET request?

eankeen (614)

@Coder100 So if you're using JavaScript, you can use a library called 'Axios'. Alternatively, you can use fetch. If you want to use fetch on node, you're going to have to install the package node-fetch.