Packagist API
Returns Composer package details, search results, versions, download statistics, popular packages and overall Packagist statistics.
View as Markdown| GET | /packagist/package | Latest stable version, licence, authors, downloads and stars of one Composer package. |
| GET | /packagist/search | Packages that match a search, 20 per page, as Packagist ranks them. |
| GET | /packagist/versions | Every version of one Composer package, newest first, 30 per page, with its release time, licence and whether it is stable. |
| GET | /packagist/stats | Downloads of one Composer package in total, in the last 30 days and per day, with its version count. |
| GET | /packagist/popular | The most downloaded Composer packages on Packagist, 30 per page. |
| GET | /packagist/advisories | Security advisories of one Composer package: title, CVE, the affected version ranges and the advisory link. |
| GET | /packagist/statistics | Packagist as a whole: how many packages and versions it lists, and the downloads it has served. |
| GET | /packagist/vendorPackages | Names of the packages one vendor publishes on Packagist, 50 per page, in the order Packagist lists them. |
package
/v1/packagist/packageLatest stable version, licence, authors, downloads and stars of one Composer package.
Parameters
namestring required | Package name as vendor/name, or packagist.org package URL. e.g. monolog/monolog |
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
24 fields
authors | Author[] |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
dependents | integer (int64) |
description | string |
downloadsMonthly | integer (int64) |
downloadsTotal | integer (int64) |
favers | integer (int64) |
githubStars | integer (int64) |
homepage | string |
keywords | Named[] |
name | string |
language | string |
license | Named[] |
name | string |
name | string |
releasedAt | string |
repository | string |
type | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/packagist/package?name=monolog%2Fmonolog" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/package?name=monolog%2Fmonolog", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/package?name=monolog%2Fmonolog", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }
search
/v1/packagist/searchPackages that match a search, 20 per page, as Packagist ranks them.
Parameters
querystring required | Search terms. e.g. monolog |
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
6 fields
description | string |
downloads | integer (int64) |
favers | integer (int64) |
name | string |
repository | string |
url | string |
curl "https://api.hoshime.com/v1/packagist/search?query=monolog" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/search?query=monolog", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/search?query=monolog", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "Sends your logs to files, sockets, inboxes, databases and various web services", "downloads": 1111276406, "favers": 22273, "name": "monolog/monolog", "repository": "https://github.com/Seldaek/monolog", "url": "https://packagist.org/packages/monolog/monolog" }, { "description": "Symfony MonologBundle", "downloads": 288065116, "favers": 2929, "name": "symfony/monolog-bundle", "repository": "https://github.com/symfony/monolog-bundle", "url": "https://packagist.org/packages/symfony/monolog-bundle" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "packagist", "requestId": "req_2Xb9kQ…", "units": 1 } }
versions
/v1/packagist/versionsEvery version of one Composer package, newest first, 30 per page, with its release time, licence and whether it is stable.
Parameters
namestring required | Package name as vendor/name, or packagist.org package URL. e.g. monolog/monolog |
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
6 fields
license | Named[] |
name | string |
releasedAt | string |
stable | boolean |
type | string |
version | string |
curl "https://api.hoshime.com/v1/packagist/versions?name=monolog%2Fmonolog" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/versions?name=monolog%2Fmonolog", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/versions?name=monolog%2Fmonolog", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/packagist/statsDownloads of one Composer package in total, in the last 30 days and per day, with its version count.
Parameters
namestring required | Package name as vendor/name, or packagist.org package URL. e.g. monolog/monolog |
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 | integer (int64) |
date | string |
monthly | integer (int64) |
name | string |
total | integer (int64) |
versions | integer (int64) |
curl "https://api.hoshime.com/v1/packagist/stats?name=monolog%2Fmonolog" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/stats?name=monolog%2Fmonolog", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/stats?name=monolog%2Fmonolog", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }
popular
/v1/packagist/popularThe most downloaded Composer packages on Packagist, 30 per page.
Parameters
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
5 fields
description | string |
downloads | integer (int64) |
favers | integer (int64) |
name | string |
url | string |
curl "https://api.hoshime.com/v1/packagist/popular" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/popular", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/popular", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "A generic function and convention to trigger deprecation notices", "downloads": 1000080163, "favers": 2103, "name": "symfony/deprecation-contracts", "url": "https://packagist.org/packages/symfony/deprecation-contracts" }, { "description": "Symfony polyfill for the Mbstring extension", "downloads": 1337649648, "favers": 7831, "name": "symfony/polyfill-mbstring", "url": "https://packagist.org/packages/symfony/polyfill-mbstring" } ], "meta": { "cached": false, "endpoint": "popular", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "packagist", "requestId": "req_2Xb9kQ…", "units": 1 } }
advisories
/v1/packagist/advisoriesSecurity advisories of one Composer package: title, CVE, the affected version ranges and the advisory link.
Parameters
namestring required | Package name as vendor/name, or packagist.org package URL. e.g. symfony/http-kernel |
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
affectedVersions | string |
cve | string |
id | string |
link | string |
reportedAt | string |
title | string |
curl "https://api.hoshime.com/v1/packagist/advisories?name=symfony%2Fhttp-kernel" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/advisories?name=symfony%2Fhttp-kernel", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/advisories?name=symfony%2Fhttp-kernel", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/packagist/statisticsPackagist as a whole: how many packages and versions it lists, and the downloads it has served.
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
3 fields
downloads | integer (int64) |
packages | integer (int64) |
versions | integer (int64) |
curl "https://api.hoshime.com/v1/packagist/statistics" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/statistics", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/statistics", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/packagist/vendorPackagesNames of the packages one vendor publishes on Packagist, 50 per page, in the order Packagist lists them.
Parameters
vendorstring required | Vendor name, such as monolog or laravel. e.g. monolog |
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
1 fields
name | string |
curl "https://api.hoshime.com/v1/packagist/vendorPackages?vendor=monolog" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/packagist/vendorPackages?vendor=monolog", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/packagist/vendorPackages?vendor=monolog", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }