PyPI API
Returns Python project metadata, releases, versions, and download statistics by day, period and Python version.
View as Markdown| GET | /pypi/package | Latest version, licence, links and the 10 newest releases of one project. |
| GET | /pypi/stats | Downloads of one project in the last day, week and month, from pypistats (mirrors excluded). |
| GET | /pypi/release | One release of a project: its metadata and every file of it with the sha256 digest. The latest release when no version is given. |
| GET | /pypi/versions | Every release of one project that has files, newest first, 30 per page, with the upload time of its first file. |
| GET | /pypi/overallDownloads | Daily downloads of one project for the last 180 days from pypistats, mirrors excluded, with their total. |
| GET | /pypi/pythonVersions | Downloads of one project by Python minor version (3.12, 3.13, …) over the last 180 days from pypistats, mirrors excluded, largest first. |
| GET | /pypi/systems | Downloads of one project by operating system (Linux, Windows, Darwin, …) over the last 180 days from pypistats, mirrors excluded, largest first. |
| GET | /pypi/newPackages | Newest packages registered on PyPI, with their first version and description, from its public feed. |
| GET | /pypi/recentUpdates | Releases uploaded to PyPI most recently, newest first, from its public feed. |
package
/v1/pypi/packageLatest version, licence, links and the 10 newest releases of one project.
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
author | string |
homepage | string |
keywords | Label[] |
name | string |
license | string |
name | string |
projectUrls | map |
releases | Release[] |
uploadTime | string |
version | string |
requiresPython | string |
summary | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/pypi/package?name=requests" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/package?name=requests", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/package?name=requests", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": "", "homepage": "", "keywords": [], "license": "Apache-2.0", "name": "requests", "projectUrls": { "Documentation": "https://requests.readthedocs.io", "Source": "https://github.com/psf/requests" }, "releases": [ { "uploadTime": "2026-05-14T19:25:26.443000Z", "version": "2.34.2" }, { "uploadTime": "2026-05-13T19:20:22.827819Z", "version": "2.34.1" } ], "requiresPython": ">=3.10", "summary": "Python HTTP for Humans.", "url": "https://pypi.org/project/requests/", "version": "2.34.2" }, "meta": { "cached": false, "endpoint": "package", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
stats
/v1/pypi/statsDownloads of one project in the last day, week and month, from pypistats (mirrors excluded).
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
lastDay | integer (int64) |
lastMonth | integer (int64) |
lastWeek | integer (int64) |
name | string |
url | string |
curl "https://api.hoshime.com/v1/pypi/stats?name=requests" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/stats?name=requests", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/stats?name=requests", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "lastDay": 59789714, "lastMonth": 1202777296, "lastWeek": 362711028, "name": "requests", "url": "https://pypi.org/project/requests/" }, "meta": { "cached": false, "endpoint": "stats", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
release
/v1/pypi/releaseOne release of a project: its metadata and every file of it with the sha256 digest. The latest release when no version is given.
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
versionstring | Release version, such as 2.32.3. Default the latest release. e.g. 2.32.3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
files | ReleaseFile[] |
filename | string |
packageType | string |
pythonVersion | string |
sha256 | string |
size | integer (int64) |
uploadTime | string |
url | string |
yanked | boolean |
license | string |
name | string |
requiresPython | string |
summary | string |
url | string |
version | string |
yanked | boolean |
curl "https://api.hoshime.com/v1/pypi/release?name=requests&version=2.32.3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/release?name=requests&version=2.32.3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/release?name=requests&version=2.32.3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "files": [ { "filename": "requests-2.32.3-py3-none-any.whl", "packageType": "bdist_wheel", "pythonVersion": "py3", "sha256": "70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", "size": 64928, "uploadTime": "2024-05-29T15:37:47.027275Z", "url": "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", "yanked": false }, { "filename": "requests-2.32.3.tar.gz", "packageType": "sdist", "pythonVersion": "source", "sha256": "55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", "size": 131218, "uploadTime": "2024-05-29T15:37:49.536140Z", "url": "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", "yanked": false } ], "license": "Apache-2.0", "name": "requests", "requiresPython": ">=3.8", "summary": "Python HTTP for Humans.", "url": "https://pypi.org/project/requests/", "version": "2.32.3", "yanked": false }, "meta": { "cached": false, "endpoint": "release", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
versions
/v1/pypi/versionsEvery release of one project that has files, newest first, 30 per page, with the upload time of its first file.
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
uploadTime | string |
version | string |
curl "https://api.hoshime.com/v1/pypi/versions?name=requests" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/versions?name=requests", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/versions?name=requests", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "uploadTime": "2026-05-14T19:25:26.443000Z", "version": "2.34.2" }, { "uploadTime": "2026-05-13T19:20:22.827819Z", "version": "2.34.1" } ], "meta": { "cached": false, "endpoint": "versions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
overallDownloads
/v1/pypi/overallDownloadsDaily downloads of one project for the last 180 days from pypistats, mirrors excluded, with their total.
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
daily | DailyCount[] |
date | string |
downloads | integer (int64) |
name | string |
total | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/pypi/overallDownloads?name=requests" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/overallDownloads?name=requests", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/overallDownloads?name=requests", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "daily": [ { "date": "2026-04-08", "downloads": 54295434 }, { "date": "2026-04-09", "downloads": 52994031 } ], "name": "requests", "total": 10757035324, "url": "https://pypi.org/project/requests/" }, "meta": { "cached": false, "endpoint": "overallDownloads", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
pythonVersions
/v1/pypi/pythonVersionsDownloads of one project by Python minor version (3.12, 3.13, …) over the last 180 days from pypistats, mirrors excluded, largest first.
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
items | Count[] |
downloads | integer (int64) |
name | string |
name | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/pypi/pythonVersions?name=requests" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/pythonVersions?name=requests", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/pythonVersions?name=requests", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "downloads": 3344888458, "name": "3.12" }, { "downloads": 2465900359, "name": "3.11" } ], "name": "", "total": 10757035324 }, "meta": { "cached": false, "endpoint": "pythonVersions", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
systems
/v1/pypi/systemsDownloads of one project by operating system (Linux, Windows, Darwin, …) over the last 180 days from pypistats, mirrors excluded, largest first.
Parameters
namestring required | Project name, or pypi.org project URL. e.g. requests |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
items | Count[] |
downloads | integer (int64) |
name | string |
name | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/pypi/systems?name=requests" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/systems?name=requests", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/systems?name=requests", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "downloads": 10269413109, "name": "Linux" }, { "downloads": 307687315, "name": "Windows" } ], "name": "", "total": 10757035324 }, "meta": { "cached": false, "endpoint": "systems", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
newPackages
/v1/pypi/newPackagesNewest packages registered on PyPI, with their first version and description, from its public feed.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/pypi/newPackages" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/newPackages", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/newPackages", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "id": "abc123", "imageUrl": "https://…", "publishedAt": "2026-11-06T09:41:00Z", "source": "…", "summary": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "newPackages", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }
recentUpdates
/v1/pypi/recentUpdatesReleases uploaded to PyPI most recently, newest first, from its public feed.
Parameters
limitinteger | Items per page, 1 to 100. default 30 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/pypi/recentUpdates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pypi/recentUpdates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pypi/recentUpdates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "id": "abc123", "imageUrl": "https://…", "publishedAt": "2026-11-06T09:41:00Z", "source": "…", "summary": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "recentUpdates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pypi", "requestId": "req_2Xb9kQ…", "units": 1 } }