技
deps.dev API
7 endpointsDeveloper & TechGlobalsocial:read7 real examples
Returns package versions, dependency graphs, advisories, source project scorecards and dependent counts from deps.dev.
View as Markdown| GET | /depsdev/package | The versions of a package in one ecosystem, with the default and deprecated flags. |
| GET | /depsdev/version | One version of a package: publish time, licenses, deprecation and known advisories. |
| GET | /depsdev/dependencies | The resolved dependency graph of one version, direct and indirect, without the version itself. |
| GET | /depsdev/project | A source repository that deps.dev tracks: stars, license, and its OpenSSF Scorecard. |
| GET | /depsdev/advisory | One security advisory from deps.dev: its title, aliases and CVSS 3 score. |
| GET | /depsdev/dependents | How many packages depend on one version: direct, indirect and in total. |
| GET | /depsdev/purl | One version looked up by its package URL (purl), such as pkg:npm/express@4.19.2. |
package
GET
/v1/depsdev/packageThe versions of a package in one ecosystem, with the default and deprecated flags.
scope social:read1 unitcached 1 h
Parameters
systemstring required | Ecosystem: npm, pypi, cargo, go, maven or nuget.npmpypicargogomavennugete.g. npm |
namestring required | Package name, such as react. 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
7 fields
name | string |
system | string |
versions | VersionRef[] |
isDefault | boolean |
isDeprecated | boolean |
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/depsdev/package?system=npm&name=react" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/package?system=npm&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/depsdev/package?system=npm&name=react", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "react", "system": "NPM", "versions": [ { "isDefault": false, "isDeprecated": false, "publishedAt": "2021-03-15T16:12:35Z", "version": "0.0.0-00d4f95c2" }, { "isDefault": false, "isDeprecated": false, "publishedAt": "2021-03-16T16:13:04Z", "version": "0.0.0-0203b6567" } ] }, "meta": { "cached": false, "endpoint": "package", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
version
GET
/v1/depsdev/versionOne version of a package: publish time, licenses, deprecation and known advisories.
scope social:read1 unitcached 1 h
Parameters
systemstring required | Ecosystem: npm, pypi, cargo, go, maven or nuget.npmpypicargogomavennugete.g. npm |
namestring required | Package name, such as react. e.g. react |
versionstring required | Version, such as 18.3.1. 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
9 fields
advisories | string[] |
deprecatedReason | string |
isDefault | boolean |
isDeprecated | boolean |
licenses | string[] |
name | string |
publishedAt | string |
system | string |
version | string |
curl "https://api.hoshime.com/v1/depsdev/version?system=npm&name=react&version=18.3.1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/version?system=npm&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/depsdev/version?system=npm&name=react&version=18.3.1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "advisories": [], "deprecatedReason": "", "isDefault": false, "isDeprecated": false, "licenses": [ "MIT" ], "name": "react", "publishedAt": "2024-04-26T16:42:26Z", "system": "NPM", "version": "18.3.1" }, "meta": { "cached": false, "endpoint": "version", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
dependencies
GET
/v1/depsdev/dependenciesThe resolved dependency graph of one version, direct and indirect, without the version itself.
scope social:read1 unitcached 1 h
Parameters
systemstring required | Ecosystem: npm, pypi, cargo, go, maven or nuget.npmpypicargogomavennugete.g. npm |
namestring required | Package name, such as react. e.g. react |
versionstring required | Version, such as 18.3.1. 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
9 fields
items | Dependency[] |
bundled | boolean |
name | string |
relation | string |
system | string |
version | string |
name | string |
system | string |
version | string |
curl "https://api.hoshime.com/v1/depsdev/dependencies?system=npm&name=react&version=18.3.1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/dependencies?system=npm&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/depsdev/dependencies?system=npm&name=react&version=18.3.1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "bundled": false, "name": "js-tokens", "relation": "INDIRECT", "system": "NPM", "version": "4.0.0" }, { "bundled": false, "name": "loose-envify", "relation": "DIRECT", "system": "NPM", "version": "1.4.0" } ], "name": "react", "system": "npm", "version": "18.3.1" }, "meta": { "cached": false, "endpoint": "dependencies", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
project
GET
/v1/depsdev/projectA source repository that deps.dev tracks: stars, license, and its OpenSSF Scorecard.
scope social:read1 unitcached 6 h
Parameters
idstring required | Repository id, such as github.com/expressjs/express. e.g. github.com/expressjs/express |
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
description | string |
forks | integer (int64) |
homepage | string |
id | string |
license | string |
openIssues | integer (int64) |
scorecard | Scorecard | null |
checks | Check[] |
name | string |
reason | string |
score | integer (int64) |
overallScore | number (double) |
scoredAt | string |
stars | integer (int64) |
curl "https://api.hoshime.com/v1/depsdev/project?id=github.com%2Fexpressjs%2Fexpress" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/project?id=github.com%2Fexpressjs%2Fexpress", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/depsdev/project?id=github.com%2Fexpressjs%2Fexpress", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "Fast, unopinionated, minimalist web framework for node.", "forks": 25376, "homepage": "https://expressjs.com", "id": "github.com/expressjs/express", "license": "MIT", "openIssues": 261, "scorecard": { "checks": [ { "name": "Maintained", "reason": "17 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10", "score": 10 }, { "name": "Code-Review", "reason": "all changesets reviewed", "score": 10 } ], "overallScore": 8.5, "scoredAt": "2026-08-24T00:00:00Z" }, "stars": 69579 }, "meta": { "cached": false, "endpoint": "project", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
advisory
GET
/v1/depsdev/advisoryOne security advisory from deps.dev: its title, aliases and CVSS 3 score.
scope social:read1 unitcached 24 h
Parameters
idstring required | Advisory id, such as GHSA-rv95-896h-c2vc. e.g. GHSA-rv95-896h-c2vc |
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
aliases | string[] |
cvss3Score | number (double) |
cvss3Vector | string |
id | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/depsdev/advisory?id=GHSA-rv95-896h-c2vc" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/advisory?id=GHSA-rv95-896h-c2vc", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/depsdev/advisory?id=GHSA-rv95-896h-c2vc", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "aliases": [ "CVE-2024-29041" ], "cvss3Score": 6.1, "cvss3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "id": "GHSA-rv95-896h-c2vc", "title": "Express.js Open Redirect in malformed URLs", "url": "https://osv.dev/vulnerability/GHSA-rv95-896h-c2vc" }, "meta": { "cached": false, "endpoint": "advisory", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
dependents
GET
/v1/depsdev/dependentsHow many packages depend on one version: direct, indirect and in total.
scope social:read1 unitcached 6 h
Parameters
systemstring required | Ecosystem: npm, pypi, cargo, go, maven or nuget.npmpypicargogomavennugete.g. npm |
namestring required | Package name, such as express. e.g. express |
versionstring required | Version, such as 4.19.2. e.g. 4.19.2 |
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
direct | integer (int64) |
indirect | integer (int64) |
name | string |
system | string |
total | integer (int64) |
version | string |
curl "https://api.hoshime.com/v1/depsdev/dependents?system=npm&name=express&version=4.19.2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/dependents?system=npm&name=express&version=4.19.2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/depsdev/dependents?system=npm&name=express&version=4.19.2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "direct": 490, "indirect": 403, "name": "express", "system": "npm", "total": 879, "version": "4.19.2" }, "meta": { "cached": false, "endpoint": "dependents", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
purl
GET
/v1/depsdev/purlOne version looked up by its package URL (purl), such as pkg:npm/express@4.19.2.
scope social:read1 unitcached 1 h
Parameters
purlstring required | Package URL, such as pkg:npm/express@4.19.2. e.g. pkg:npm/express@4.19.2 |
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
9 fields
advisories | string[] |
deprecatedReason | string |
isDefault | boolean |
isDeprecated | boolean |
licenses | string[] |
name | string |
publishedAt | string |
system | string |
version | string |
curl "https://api.hoshime.com/v1/depsdev/purl?purl=pkg%3Anpm%2Fexpress%404.19.2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/depsdev/purl?purl=pkg%3Anpm%2Fexpress%404.19.2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/depsdev/purl?purl=pkg%3Anpm%2Fexpress%404.19.2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "advisories": [ "GHSA-qw6h-vgh9-j6wx" ], "deprecatedReason": "", "isDefault": false, "isDeprecated": false, "licenses": [ "MIT" ], "name": "express", "publishedAt": "2024-03-25T14:30:36Z", "system": "NPM", "version": "4.19.2" }, "meta": { "cached": false, "endpoint": "purl", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "depsdev", "requestId": "req_2Xb9kQ…", "units": 1 } }