Simple User Repl API

I am trying to make a simple portfolio website on replit and I want to be able to have it live update my list of repls. I want a simple api that can give me a list of all of my repls and maybe even the folders they are in? However, I have not been able to find an answer that suits my needs that I can understand. Here is what I have tried to do:

const fetch = require('node-fetch');

fetch("https://replit.com/data/profiles/[username]")
    .then(res => res.text())
    .then(text => console.log(text))

But it gives an error code 1020. I wanted to know if there is a different way to do this, or better yet, if there is a simple api to do this for me.

There is no simple api for replit

If you use the “?” icon on any Replit code page you can suggest a feature for the team to investigate for future implementation. I do know that API is one that has been suggested many times but maybe not for the functionality you are looking for, so logging this would be a good idea.

1 Like

You can use graphql instead: https://replit.com/graphql

1 Like