Python: HTTP GET request
A short, tested Python example for http get request. Copy it and adjust the names and paths for your project.
Python
import requests
r = requests.get("https://api.example.com/items", params={"q": "zest"}, timeout=10)
r.raise_for_status()
data = r.json()Install with pip install requests. The standard library alternative is urllib.request.
Find it in Zest
Search for “python http get request” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.