Skip to content

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/packageThe versions of a package in one ecosystem, with the default and deprecated flags.
GET/depsdev/versionOne version of a package: publish time, licenses, deprecation and known advisories.
GET/depsdev/dependenciesThe resolved dependency graph of one version, direct and indirect, without the version itself.
GET/depsdev/projectA source repository that deps.dev tracks: stars, license, and its OpenSSF Scorecard.
GET/depsdev/advisoryOne security advisory from deps.dev: its title, aliases and CVSS 3 score.
GET/depsdev/dependentsHow many packages depend on one version: direct, indirect and in total.
GET/depsdev/purlOne version looked up by its package URL (purl), such as pkg:npm/express@4.19.2.

package

GET/v1/depsdev/package

The versions of a package in one ecosystem, with the default and deprecated flags.

scope social:read1 unitcached 1 h

Parameters

system
string
required
Ecosystem: npm, pypi, cargo, go, maven or nuget.
npmpypicargogomavennuget
e.g. npm
name
string
required
Package name, such as react.
e.g. react
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

7 fields
namestring
systemstring
versionsVersionRef[]
isDefaultboolean
isDeprecatedboolean
publishedAtstring
versionstring
curl "https://api.hoshime.com/v1/depsdev/package?system=npm&name=react" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/version

One version of a package: publish time, licenses, deprecation and known advisories.

scope social:read1 unitcached 1 h

Parameters

system
string
required
Ecosystem: npm, pypi, cargo, go, maven or nuget.
npmpypicargogomavennuget
e.g. npm
name
string
required
Package name, such as react.
e.g. react
version
string
required
Version, such as 18.3.1.
e.g. 18.3.1
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

9 fields
advisoriesstring[]
deprecatedReasonstring
isDefaultboolean
isDeprecatedboolean
licensesstring[]
namestring
publishedAtstring
systemstring
versionstring
curl "https://api.hoshime.com/v1/depsdev/version?system=npm&name=react&version=18.3.1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/dependencies

The resolved dependency graph of one version, direct and indirect, without the version itself.

scope social:read1 unitcached 1 h

Parameters

system
string
required
Ecosystem: npm, pypi, cargo, go, maven or nuget.
npmpypicargogomavennuget
e.g. npm
name
string
required
Package name, such as react.
e.g. react
version
string
required
Version, such as 18.3.1.
e.g. 18.3.1
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

9 fields
itemsDependency[]
bundledboolean
namestring
relationstring
systemstring
versionstring
namestring
systemstring
versionstring
curl "https://api.hoshime.com/v1/depsdev/dependencies?system=npm&name=react&version=18.3.1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/project

A source repository that deps.dev tracks: stars, license, and its OpenSSF Scorecard.

scope social:read1 unitcached 6 h

Parameters

id
string
required
Repository id, such as github.com/expressjs/express.
e.g. github.com/expressjs/express
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
descriptionstring
forksinteger (int64)
homepagestring
idstring
licensestring
openIssuesinteger (int64)
scorecardScorecard | null
checksCheck[]
namestring
reasonstring
scoreinteger (int64)
overallScorenumber (double)
scoredAtstring
starsinteger (int64)
curl "https://api.hoshime.com/v1/depsdev/project?id=github.com%2Fexpressjs%2Fexpress" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/advisory

One security advisory from deps.dev: its title, aliases and CVSS 3 score.

scope social:read1 unitcached 24 h

Parameters

id
string
required
Advisory id, such as GHSA-rv95-896h-c2vc.
e.g. GHSA-rv95-896h-c2vc
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
aliasesstring[]
cvss3Scorenumber (double)
cvss3Vectorstring
idstring
titlestring
urlstring
curl "https://api.hoshime.com/v1/depsdev/advisory?id=GHSA-rv95-896h-c2vc" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/dependents

How many packages depend on one version: direct, indirect and in total.

scope social:read1 unitcached 6 h

Parameters

system
string
required
Ecosystem: npm, pypi, cargo, go, maven or nuget.
npmpypicargogomavennuget
e.g. npm
name
string
required
Package name, such as express.
e.g. express
version
string
required
Version, such as 4.19.2.
e.g. 4.19.2
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
directinteger (int64)
indirectinteger (int64)
namestring
systemstring
totalinteger (int64)
versionstring
curl "https://api.hoshime.com/v1/depsdev/dependents?system=npm&name=express&version=4.19.2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/purl

One version looked up by its package URL (purl), such as pkg:npm/express@4.19.2.

scope social:read1 unitcached 1 h

Parameters

purl
string
required
Package URL, such as pkg:npm/express@4.19.2.
e.g. pkg:npm/express@4.19.2
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

9 fields
advisoriesstring[]
deprecatedReasonstring
isDefaultboolean
isDeprecatedboolean
licensesstring[]
namestring
publishedAtstring
systemstring
versionstring
curl "https://api.hoshime.com/v1/depsdev/purl?purl=pkg%3Anpm%2Fexpress%404.19.2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open