Skip to content
← Back to Community
How do you make an API?
Profile icon
h
has Hacker Plan
Nayoar

So, I was wondering - I want to make a system where a piece of code can send an input to a URL and it responds with an output. Is there any way this can be done on repl.it - ideally with python?
Thanks,

  • minx

Upvote for vee freebucks!

Answered by OneDevGuy [earned 5 cycles]
View Answer
Voters
Profile icon
DhirajBaid
Profile icon
AliZaidi
Profile icon
Nayoar
Comments
hotnewtop
Profile icon
OneDevGuy

Have a look at the Flask framework.
Some examples here https://www.flaskapi.org/
Docs for Flask-RESTful here https://flask-restful.readthedocs.io/en/latest/
I did a blockchain api in flask with Repl.it you can see here
https://repl.it/@OneDevGuy/PyBlockchainNode