Skip to content

PyPI API

9 endpointsDeveloper & TechGlobalsocial:read7 real examples

Returns Python project metadata, releases, versions, and download statistics by day, period and Python version.

View as Markdown
GET/pypi/packageLatest version, licence, links and the 10 newest releases of one project.
GET/pypi/statsDownloads of one project in the last day, week and month, from pypistats (mirrors excluded).
GET/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.
GET/pypi/versionsEvery release of one project that has files, newest first, 30 per page, with the upload time of its first file.
GET/pypi/overallDownloadsDaily downloads of one project for the last 180 days from pypistats, mirrors excluded, with their total.
GET/pypi/pythonVersionsDownloads of one project by Python minor version (3.12, 3.13, …) over the last 180 days from pypistats, mirrors excluded, largest first.
GET/pypi/systemsDownloads of one project by operating system (Linux, Windows, Darwin, …) over the last 180 days from pypistats, mirrors excluded, largest first.
GET/pypi/newPackagesNewest packages registered on PyPI, with their first version and description, from its public feed.
GET/pypi/recentUpdatesReleases uploaded to PyPI most recently, newest first, from its public feed.

package

GET/v1/pypi/package

Latest version, licence, links and the 10 newest releases of one project.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
homepagestring
keywordsLabel[]
namestring
licensestring
namestring
projectUrlsmap
releasesRelease[]
uploadTimestring
versionstring
requiresPythonstring
summarystring
urlstring
versionstring
curl "https://api.hoshime.com/v1/pypi/package?name=requests" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/pypi/stats

Downloads of one project in the last day, week and month, from pypistats (mirrors excluded).

scope social:read1 unitcached 1 h

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
tunnel
string
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.
proxy
string
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.
profileId
string
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
lastDayinteger (int64)
lastMonthinteger (int64)
lastWeekinteger (int64)
namestring
urlstring
curl "https://api.hoshime.com/v1/pypi/stats?name=requests" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 h

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
version
string
Release version, such as 2.32.3. Default the latest release.
e.g. 2.32.3
tunnel
string
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.
proxy
string
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.
profileId
string
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
filesReleaseFile[]
filenamestring
packageTypestring
pythonVersionstring
sha256string
sizeinteger (int64)
uploadTimestring
urlstring
yankedboolean
licensestring
namestring
requiresPythonstring
summarystring
urlstring
versionstring
yankedboolean
curl "https://api.hoshime.com/v1/pypi/release?name=requests&version=2.32.3" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/pypi/versions

Every release of one project that has files, newest first, 30 per page, with the upload time of its first file.

scope social:read1 unitcached 1 hpaginated

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
uploadTimestring
versionstring
curl "https://api.hoshime.com/v1/pypi/versions?name=requests" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/pypi/overallDownloads

Daily downloads of one project for the last 180 days from pypistats, mirrors excluded, with their total.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
tunnel
string
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.
proxy
string
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.
profileId
string
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
dailyDailyCount[]
datestring
downloadsinteger (int64)
namestring
totalinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/pypi/overallDownloads?name=requests" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
tunnel
string
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.
proxy
string
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.
profileId
string
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
itemsCount[]
downloadsinteger (int64)
namestring
namestring
totalinteger (int64)
curl "https://api.hoshime.com/v1/pypi/pythonVersions?name=requests" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/pypi/systems

Downloads of one project by operating system (Linux, Windows, Darwin, …) over the last 180 days from pypistats, mirrors excluded, largest first.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Project name, or pypi.org project URL.
e.g. requests
tunnel
string
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.
proxy
string
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.
profileId
string
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
itemsCount[]
downloadsinteger (int64)
namestring
namestring
totalinteger (int64)
curl "https://api.hoshime.com/v1/pypi/systems?name=requests" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/pypi/newPackages

Newest packages registered on PyPI, with their first version and description, from its public feed.

scope social:read1 unitcached 5 minpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
idstring
imageUrlstring
publishedAtstring
sourcestring
summarystring
titlestring
urlstring
curl "https://api.hoshime.com/v1/pypi/newPackages" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/pypi/recentUpdates

Releases uploaded to PyPI most recently, newest first, from its public feed.

scope social:read1 unitcached 5 minpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 30
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
idstring
imageUrlstring
publishedAtstring
sourcestring
summarystring
titlestring
urlstring
curl "https://api.hoshime.com/v1/pypi/recentUpdates" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open