PythonKopierenimport json from urllib.request import Request, urlopen request = Request("https://example.com/api/status", headers={"User-Agent": "MyApp/1.0"}) with urlopen(request, timeout=10) as response: data = json.load(response) print(data)Hinweis: URL, Authentifizierung und Fehlerbehandlung an die jeweilige API anpassen.PythonHTTPJSONAPI← Zur CodebibliothekUnterstützung anfragen