npm API
Returns npm packages from search, with versions, dist-tags, licences, dependencies and download counts.
View as Markdown| GET | /npm/search | Packages that match a search, 20 per page, best match first. |
| GET | /npm/package | Latest version, licence, maintainers and last-week downloads of one package. |
| GET | /npm/versions | Published versions of one package, newest first, 30 per page, with the publish time and any deprecation message. |
| GET | /npm/version | One version of a package: its licence, dependencies, tarball and integrity hash. latest when no version is given. |
| GET | /npm/distTags | The dist-tags of one package, such as latest, next and beta, with the version each one points to. |
| GET | /npm/downloads | Downloads of one package over a period: its total and the count of each day. |
| GET | /npm/maintainerPackages | Packages one npm user maintains, as the registry search ranks them, 20 per page. |
| GET | /npm/orgPackages | Packages of one npm organization (scope such as @sveltejs), sorted by name, 100 per page. |
search
/v1/npm/searchPackages that match a search, 20 per page, best match first.
Parameters
querystring required | Search terms. e.g. react |
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
8 fields
description | string |
keywords | string[] |
name | string |
publishedAt | string |
publisher | string |
score | number (double) |
url | string |
version | string |
curl "https://api.hoshime.com/v1/npm/search?query=react" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/search?query=react", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/search?query=react", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "React is a JavaScript library for building user interfaces.", "keywords": [ "react" ], "name": "react", "publishedAt": "2026-10-14T16:47:15Z", "publisher": "GitHub Actions", "score": 2304.6904, "url": "https://www.npmjs.com/package/react", "version": "19.3.1" }, { "description": "Brand checking of React Elements.", "keywords": [ "react" ], "name": "react-is", "publishedAt": "2026-10-14T16:47:50Z", "publisher": "GitHub Actions", "score": 264.9193, "url": "https://www.npmjs.com/package/react-is", "version": "19.3.1" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
package
/v1/npm/packageLatest version, licence, maintainers and last-week downloads of one package.
Parameters
namestring required | Package name, scoped names included (@scope/name), or npmjs.com package URL. e.g. react |
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 | string |
dependencyCount | integer (int64) |
deprecated | string |
description | string |
downloadsLastWeek | integer (int64) |
homepage | string |
keywords | string[] |
license | string |
maintainers | string[] |
name | string |
repository | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/npm/package?name=react" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/package?name=react", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/package?name=react", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": "", "dependencyCount": 0, "deprecated": "", "description": "React is a JavaScript library for building user interfaces.", "downloadsLastWeek": 250126673, "homepage": "https://react.dev/", "keywords": [ "react" ], "license": "MIT", "maintainers": [ "fb", "react-bot" ], "name": "react", "repository": "git+https://github.com/react/react.git", "url": "https://www.npmjs.com/package/react", "version": "19.3.1" }, "meta": { "cached": false, "endpoint": "package", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
versions
/v1/npm/versionsPublished versions of one package, newest first, 30 per page, with the publish time and any deprecation message.
Parameters
namestring required | Package name, scoped names included (@scope/name), or npmjs.com package URL. e.g. react |
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
3 fields
deprecated | string |
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/npm/versions?name=react" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/versions?name=react", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/versions?name=react", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "deprecated": "", "publishedAt": "2026-11-06T16:19:15.622Z", "version": "0.0.0-experimental-5b610964-20261106" }, { "deprecated": "", "publishedAt": "2026-11-06T16:18:36.333Z", "version": "19.3.0-canary-5b610964-20261106" } ], "meta": { "cached": false, "endpoint": "versions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
version
/v1/npm/versionOne version of a package: its licence, dependencies, tarball and integrity hash. latest when no version is given.
Parameters
namestring required | Package name, scoped names included (@scope/name), or npmjs.com package URL. e.g. react |
versionstring | Exact version, such as 18.3.1, or a dist-tag such as next. Default latest. e.g. 18.3.1 |
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
12 fields
dependencies | Dependency[] |
name | string |
range | string |
deprecated | string |
description | string |
fileCount | integer (int64) |
integrity | string |
license | string |
name | string |
tarball | string |
unpackedSize | integer (int64) |
version | string |
curl "https://api.hoshime.com/v1/npm/version?name=react&version=18.3.1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/version?name=react&version=18.3.1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/version?name=react&version=18.3.1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "dependencies": [ { "name": "loose-envify", "range": "^1.1.0" } ], "deprecated": "", "description": "React is a JavaScript library for building user interfaces.", "fileCount": 20, "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "license": "MIT", "name": "react", "tarball": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "unpackedSize": 318101, "version": "18.3.1" }, "meta": { "cached": false, "endpoint": "version", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
distTags
/v1/npm/distTagsThe dist-tags of one package, such as latest, next and beta, with the version each one points to.
Parameters
namestring required | Package name, scoped names included (@scope/name), or npmjs.com package URL. e.g. react |
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
tag | string |
version | string |
curl "https://api.hoshime.com/v1/npm/distTags?name=react" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/distTags?name=react", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/distTags?name=react", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "tag": "backport", "version": "19.1.10" }, { "tag": "beta", "version": "19.0.0-beta-26f2496093-20240514" } ], "meta": { "cached": false, "endpoint": "distTags", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
downloads
/v1/npm/downloadsDownloads of one package over a period: its total and the count of each day.
Parameters
namestring required | Package name, scoped names included (@scope/name), or npmjs.com package URL. e.g. react |
periodstring | last-day, last-week, last-month or last-year. Default last-week.last-daylast-weeklast-monthlast-yeardefault last-weeke.g. last-month |
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
7 fields
daily | DailyCount[] |
day | string |
downloads | integer (int64) |
end | string |
package | string |
start | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/npm/downloads?name=react&period=last-month" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/downloads?name=react&period=last-month", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/downloads?name=react&period=last-month", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "daily": [ { "day": "2026-10-07", "downloads": 35968597 }, { "day": "2026-10-08", "downloads": 37575226 } ], "end": "2026-11-05", "package": "react", "start": "2026-10-07", "total": 806498133 }, "meta": { "cached": false, "endpoint": "downloads", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
maintainerPackages
/v1/npm/maintainerPackagesPackages one npm user maintains, as the registry search ranks them, 20 per page.
Parameters
usernamestring required | npm username, such as sindresorhus. e.g. sindresorhus |
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
8 fields
description | string |
keywords | string[] |
name | string |
publishedAt | string |
publisher | string |
score | number (double) |
url | string |
version | string |
curl "https://api.hoshime.com/v1/npm/maintainerPackages?username=sindresorhus" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/maintainerPackages?username=sindresorhus", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/maintainerPackages?username=sindresorhus", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "ANSI escape codes for styling strings in the terminal", "keywords": [ "ansi", "styles" ], "name": "ansi-styles", "publishedAt": "2026-07-26T14:57:36Z", "publisher": "sindresorhus", "score": 84.03785, "url": "https://www.npmjs.com/package/ansi-styles", "version": "7.0.0" }, { "description": "Get the visual width of a string - the number of columns required to display it", "keywords": [ "string", "character" ], "name": "string-width", "publishedAt": "2026-09-24T14:37:52Z", "publisher": "sindresorhus", "score": 83.01636, "url": "https://www.npmjs.com/package/string-width", "version": "8.3.0" } ], "meta": { "cached": false, "endpoint": "maintainerPackages", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }
orgPackages
/v1/npm/orgPackagesPackages of one npm organization (scope such as @sveltejs), sorted by name, 100 per page.
Parameters
orgstring required | npm organization name without the @, such as sveltejs or types. e.g. sveltejs |
limitinteger | Items per page, 1 to 500. default 100 |
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
name | string |
url | string |
curl "https://api.hoshime.com/v1/npm/orgPackages?org=sveltejs" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/npm/orgPackages?org=sveltejs", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/npm/orgPackages?org=sveltejs", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "orgPackages", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "npm", "requestId": "req_2Xb9kQ…", "units": 1 } }