Skip to content

Packagist API

8 endpointsDeveloper & TechGlobalsocial:read7 real examples

Returns Composer package details, search results, versions, download statistics, popular packages and overall Packagist statistics.

View as Markdown
GET/packagist/packageLatest stable version, licence, authors, downloads and stars of one Composer package.
GET/packagist/searchPackages that match a search, 20 per page, as Packagist ranks them.
GET/packagist/versionsEvery version of one Composer package, newest first, 30 per page, with its release time, licence and whether it is stable.
GET/packagist/statsDownloads of one Composer package in total, in the last 30 days and per day, with its version count.
GET/packagist/popularThe most downloaded Composer packages on Packagist, 30 per page.
GET/packagist/advisoriesSecurity advisories of one Composer package: title, CVE, the affected version ranges and the advisory link.
GET/packagist/statisticsPackagist as a whole: how many packages and versions it lists, and the downloads it has served.
GET/packagist/vendorPackagesNames of the packages one vendor publishes on Packagist, 50 per page, in the order Packagist lists them.

package

GET/v1/packagist/package

Latest stable version, licence, authors, downloads and stars of one Composer package.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name as vendor/name, or packagist.org package URL.
e.g. monolog/monolog
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

24 fields
authorsAuthor[]
avatarUrlstring
idstring
namestring
urlstring
usernamestring
dependentsinteger (int64)
descriptionstring
downloadsMonthlyinteger (int64)
downloadsTotalinteger (int64)
faversinteger (int64)
githubStarsinteger (int64)
homepagestring
keywordsNamed[]
namestring
languagestring
licenseNamed[]
namestring
namestring
releasedAtstring
repositorystring
typestring
urlstring
versionstring
curl "https://api.hoshime.com/v1/packagist/package?name=monolog%2Fmonolog" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "authors": [
      {
        "avatarUrl": "",
        "id": "",
        "name": "Jordi Boggiano",
        "url": "https://seld.be",
        "username": ""
      }
    ],
    "dependents": 8546,
    "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
    "downloadsMonthly": 29816267,
    "downloadsTotal": 1111582756,
    "favers": 22273,
    "githubStars": 21404,
    "homepage": "https://github.com/Seldaek/monolog",
    "keywords": [
      {
        "name": "log"
      },
      {
        "name": "logging"
      }
    ],
    "language": "PHP",
    "license": [
      {
        "name": "MIT"
      }
    ],
    "name": "monolog/monolog",
    "releasedAt": "2026-09-29T19:21:12Z",
    "repository": "https://github.com/Seldaek/monolog",
    "type": "library",
    "url": "https://packagist.org/packages/monolog/monolog",
    "version": "3.12.1"
  },
  "meta": {
    "cached": false,
    "endpoint": "package",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "packagist",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

versions

GET/v1/packagist/versions

Every version of one Composer package, newest first, 30 per page, with its release time, licence and whether it is stable.

scope social:read1 unitcached 1 hpaginated

Parameters

name
string
required
Package name as vendor/name, or packagist.org package URL.
e.g. monolog/monolog
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

6 fields
licenseNamed[]
namestring
releasedAtstring
stableboolean
typestring
versionstring
curl "https://api.hoshime.com/v1/packagist/versions?name=monolog%2Fmonolog" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "license": [
        {
          "name": "MIT"
        }
      ],
      "releasedAt": "2026-09-29T19:21:12Z",
      "stable": true,
      "type": "library",
      "version": "3.12.1"
    },
    {
      "license": [
        {
          "name": "MIT"
        }
      ],
      "releasedAt": "2026-09-09T08:34:20Z",
      "stable": true,
      "type": "library",
      "version": "3.12.0"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "versions",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "packagist",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

stats

GET/v1/packagist/stats

Downloads of one Composer package in total, in the last 30 days and per day, with its version count.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name as vendor/name, or packagist.org package URL.
e.g. monolog/monolog
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
dailyinteger (int64)
datestring
monthlyinteger (int64)
namestring
totalinteger (int64)
versionsinteger (int64)
curl "https://api.hoshime.com/v1/packagist/stats?name=monolog%2Fmonolog" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "daily": 1475945,
    "date": "2012-04-13",
    "monthly": 30506414,
    "name": "monolog/monolog",
    "total": 1112272903,
    "versions": 93
  },
  "meta": {
    "cached": false,
    "endpoint": "stats",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "packagist",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

advisories

GET/v1/packagist/advisories

Security advisories of one Composer package: title, CVE, the affected version ranges and the advisory link.

scope social:read1 unitcached 1 hpaginated

Parameters

name
string
required
Package name as vendor/name, or packagist.org package URL.
e.g. symfony/http-kernel
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
affectedVersionsstring
cvestring
idstring
linkstring
reportedAtstring
titlestring
curl "https://api.hoshime.com/v1/packagist/advisories?name=symfony%2Fhttp-kernel" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "affectedVersions": "…",
      "cve": "…",
      "id": "abc123",
      "link": "…",
      "reportedAt": "2026-11-06T09:41:00Z",
      "title": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "advisories",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "packagist",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

statistics

GET/v1/packagist/statistics

Packagist as a whole: how many packages and versions it lists, and the downloads it has served.

scope social:read1 unitcached 30 min

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

3 fields
downloadsinteger (int64)
packagesinteger (int64)
versionsinteger (int64)
curl "https://api.hoshime.com/v1/packagist/statistics" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "downloads": 211555990677,
    "packages": 479047,
    "versions": 6037836
  },
  "meta": {
    "cached": false,
    "endpoint": "statistics",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "packagist",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

vendorPackages

GET/v1/packagist/vendorPackages

Names of the packages one vendor publishes on Packagist, 50 per page, in the order Packagist lists them.

scope social:read1 unitcached 1 hpaginated

Parameters

vendor
string
required
Vendor name, such as monolog or laravel.
e.g. monolog
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

1 fields
namestring
curl "https://api.hoshime.com/v1/packagist/vendorPackages?vendor=monolog" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "monolog/monolog"
    },
    {
      "name": "monolog/system-daemon-handler"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "vendorPackages",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "packagist",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open