Simple Replit User API
PYer (3231)

Hello everyone! I haven't been active for a long time considering everything that's going on. I did get bored and created this quickly. I often create repls that interact with data about real replit users. With that in mind I decided to create a simple API, not too complicated, that would give basic information on a repl.it user.

There are probably already a few others out there

To use the api, you can scrape that data with requests module, by going to the url https://replit-user-api.pyer.repl.co/get?user=<PUT_USERNAME_HERE>

If you just want to test the api, you can get an edited version of the data that is more pleasant to look at by replacing the get with view. https://replit-user-api.pyer.repl.co/view?user=<PUT_USERNAME_HERE>

For example, the data will be raw here: https://replit-user-api.pyer.repl.co/get?user=PYer

To get it cleaner, go to: https://replit-user-api.pyer.repl.co/view?user=PYer

Thanks! I hope you will find a use for this someday!

Source Code: The repl linked is an example of using the API, to look at the source code for the API itself, go to: Repl.it User Api

You are viewing a single comment. View All
PYer (3231)

If you want to see the source code for the API itself, it can be found at Repl.it User Api

[deleted]

How do I use it? @PYer

[deleted]

The repl.it user api. @PYer

PYer (3231)

The repl I linked should describe it, https://repl.it/@PYer/Using-simple-replit-api @CodeABC123 Is that not what you are looking for?

PYer (3231)

@CodeABC123 That repl doesn't really interact with the user. It does print out the user's information when asked for it. When you use the requests module (in the other repl "Using simple repl.it api"), it access the flask server that is created using the repl "replit-user-api". Then it gets the dictionary that is returned through the flask server, and uses it in the repl ("Using simple repl.it api").

Does that make sense?

[deleted]

Yes. @PYer

PYer (3231)

Okay! Feel free to ask me if you have any other questions. (I may not be online though) @CodeABC123

[deleted]

How do I get more complicated info? @PYer

PYer (3231)

on how the API works? @CodeABC123

[deleted]

Yes. @PYer

PYer (3231)

Sorry I haven't responded quickly. One tutorial that I liked by @LeonDoesCode, https://repl.it/talk/learn/Using-Web-APIs-in-Python/20777 is really good and goes through using a wikipedia api. @CodeABC123 If you want to learn to create your own API, I found one here https://programminghistorian.org/en/lessons/creating-apis-with-python-and-flask. I haven't personally read through this one, but it is the first search result, and I also got the link from a friend who used it.