/v1/python
Downloads by Python version
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/pypistats-api/v1/python" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pypistats-api/v1/python", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pypistats-api/v1/python");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/pypistats-api/v1/python",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"source": "pypistats.org",
"package": "requests",
"total_downloads": 7546740025,
"by_python_version": [
{
"downloads": 1970972772,
"share_pct": 26.12,
"python_version": "3.12"
},
{
"downloads": 1869564711,
"share_pct": 24.77,
"python_version": "3.11"
},
{
"downloads": 1169111483,
"share_pct": 15.49,
"python_version": "3.10"
},
{
"downloads": 878762193,
"share_pct": 11.64,
"python_version": "3.13"
},
{
"downloads": 500312994,
"share_pct": 6.63,
"python_version": "3.9"
},
{
"downloads": 363479584,
"share_pct": 4.82,
"python_version": "3.14"
},
{
"downloads": 286303558,
"share_pct": 3.79,
"python_version": "3.8"
},
{
"downloads": 270750601,
"share_pct": 3.59,
"python_version": "3.7"
},
{
"downloads": 159042613,
"share_pct": 2.11,
"python_version": "null"
},
{
"downloads": 55087710,
"share_pct": 0.73,
"python_version": "3.6"
},
{
"downloads": 22140987,
"share_pct": 0.29,
"python_version": "2.7"
},
{
"downloads": 607715,
"share_pct": 0.01,
"python_version": "3.5"
},
{
"downloads": 546983,
"share_pct": 0.01,
"python_version": "3.15"
},
{
"downloads": 48395,
"share_pct": 0,
"python_version": "3.4"
},
{
"downloads": 7014,
"share_pct": 0,
"python_version": "3.16"
},
{
"downloads": 381,
"share_pct": 0,
"python_version": "3.2"
},
{
"downloads": 291,
"share_pct": 0,
"python_version": "3.3"
},
{
"downloads": 30,
"share_pct": 0,
"python_version": "2.6"
},
{
"downloads": 6,
"share_pct": 0,
"python_version": "3.1"
},
{
"downloads": 4,
"share_pct": 0,
"python_version": "2.8"
}
]
},
"meta"
…