Can we natively make a request to an external API ? #5065
-
|
Hi everyone, Is it natively possible with flask to query an external api ? ( with a HTTP GET ) or do we need to use either another package or from urllib.request import urlopen Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
ThiefMaster
Apr 15, 2023
Replies: 1 comment 4 replies
-
|
Flask is concerned with the server side, if you need a client as well those are provided by other packages |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is completely out of the scope of Flask. Use
requestsor a similar library to make outgoing requests. There is pretty much nothing in Flask (or werkzeug) that would make it logical to include an http client there...