Skip to content

pub.dev API

8 endpointsDeveloper & TechGlobalsocial:read6 real examples

Returns pub.dev Dart and Flutter packages by search or list, with versions, scores and security advisories.

View as Markdown
GET/pubdev/searchpub.dev packages matching a search, one page at a time.
GET/pubdev/packageOne pub.dev package: its latest version, description and recent versions.
GET/pubdev/scoreThe pub.dev score of a package: granted and maximum points, likes and downloads.
GET/pubdev/versionOne pub.dev package version: its dependencies, SDK constraint and archive checksum.
GET/pubdev/advisoriesSecurity advisories that pub.dev lists for a package.
GET/pubdev/listpub.dev packages in the registry's own order, 100 per page, with their latest version. Page with cursor.
GET/pubdev/versionsEvery version of one pub.dev package, oldest first, with the time each was published, paged.
GET/pubdev/packagePublisherThe verified publisher of one pub.dev package, such as dart.dev, with the publisher's description and website.

package

GET/v1/pubdev/package

One pub.dev package: its latest version, description and recent versions.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as http.
e.g. http
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
descriptionstring
homepagestring
namestring
publishedAtstring
repositorystring
versionstring
versionsstring[]
curl "https://api.hoshime.com/v1/pubdev/package?name=http" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "description": "A composable, multi-platform, Future-based API for HTTP requests.",
    "homepage": "",
    "name": "http",
    "publishedAt": "2025-11-10T18:27:56Z",
    "repository": "https://github.com/dart-lang/http/tree/master/pkgs/http",
    "version": "1.6.0",
    "versions": [
      "0.2.7+0",
      "0.2.8+2"
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "package",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

score

GET/v1/pubdev/score

The pub.dev score of a package: granted and maximum points, likes and downloads.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as http.
e.g. http
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
downloadCount30Daysinteger (int64)
grantedPointsinteger (int64)
likeCountinteger (int64)
maxPointsinteger (int64)
namestring
tagsstring[]
curl "https://api.hoshime.com/v1/pubdev/score?name=http" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "downloadCount30Days": 14793897,
    "grantedPoints": 160,
    "likeCount": 8480,
    "maxPoints": 160,
    "name": "http",
    "tags": [
      "publisher:dart.dev",
      "has:topic"
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "score",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

version

GET/v1/pubdev/version

One pub.dev package version: its dependencies, SDK constraint and archive checksum.

scope social:read1 unitcached 24 h

Parameters

name
string
required
Package name, such as http.
e.g. http
version
string
required
Version, such as 1.2.2.
e.g. 1.2.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

10 fields
archiveSha256string
archiveUrlstring
dependenciesmap
descriptionstring
namestring
publishedAtstring
repositorystring
sdkstring
topicsstring[]
versionstring
curl "https://api.hoshime.com/v1/pubdev/version?name=http&version=1.2.2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "archiveSha256": "b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010",
    "archiveUrl": "https://pub.dev/api/archives/http-1.2.2.tar.gz",
    "dependencies": {
      "async": "^2.5.0",
      "http_parser": "^4.0.0",
      "meta": "^1.3.0",
      "web": ">=0.5.0 <2.0.0"
    },
    "description": "A composable, multi-platform, Future-based API for HTTP requests.",
    "name": "http",
    "publishedAt": "2024-07-16T20:09:47Z",
    "repository": "https://github.com/dart-lang/http/tree/master/pkgs/http",
    "sdk": "^3.3.0",
    "topics": [
      "http",
      "network"
    ],
    "version": "1.2.2"
  },
  "meta": {
    "cached": false,
    "endpoint": "version",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

advisories

GET/v1/pubdev/advisories

Security advisories that pub.dev lists for a package.

scope social:read1 unitcached 1 hpaginated

Parameters

name
string
required
Package name, such as http.
e.g. http
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
advisoriesUpdatedAtstring
aliasesstring[]
idstring
publishedAtstring
summarystring
updatedAtstring
curl "https://api.hoshime.com/v1/pubdev/advisories?name=http" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "advisoriesUpdatedAt": "2026-05-04T16:03:47Z",
      "aliases": [
        "CVE-2020-35669"
      ],
      "id": "GHSA-4rgh-jx4f-qfcq",
      "publishedAt": "2022-05-24T17:37:16Z",
      "summary": "http before 0.13.3 vulnerable to header injection",
      "updatedAt": "2023-11-08T04:03:35Z"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "advisories",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

list

GET/v1/pubdev/list

pub.dev packages in the registry's own order, 100 per page, with their latest version. Page with cursor.

scope social:read1 unitcached 30 minpaginated

Parameters

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

4 fields
descriptionstring
namestring
publishedAtstring
versionstring
curl "https://api.hoshime.com/v1/pubdev/list" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "description": "Codelessly CloudUI™ - Server-driven UI for Flutter. Supercharge your Flutter apps with dynamic UI and real-time updates. Build and publish U…",
      "name": "codelessly_sdk",
      "publishedAt": "",
      "version": "10.0.0"
    },
    {
      "description": "Extended features of network_tools package for flutter framework supporting iOS and Android",
      "name": "network_tools_flutter",
      "publishedAt": "",
      "version": "3.0.9"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "list",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

versions

GET/v1/pubdev/versions

Every version of one pub.dev package, oldest first, with the time each was published, paged.

scope social:read1 unitcached 30 minpaginated

Parameters

name
string
required
Package name, such as http.
e.g. http
limit
integer
Items per page, 1 to 200.
default 50
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

2 fields
publishedAtstring
versionstring
curl "https://api.hoshime.com/v1/pubdev/versions?name=http" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "publishedAt": "2026-11-06T09:41:00Z",
      "version": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "versions",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

packagePublisher

GET/v1/pubdev/packagePublisher

The verified publisher of one pub.dev package, such as dart.dev, with the publisher's description and website.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as http.
e.g. http
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
descriptionstring
idstring
websiteUrlstring
curl "https://api.hoshime.com/v1/pubdev/packagePublisher?name=http" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "description": "…",
    "id": "abc123",
    "websiteUrl": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "packagePublisher",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "pubdev",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open