pub.dev API
Returns pub.dev Dart and Flutter packages by search or list, with versions, scores and security advisories.
View as Markdown| GET | /pubdev/search | pub.dev packages matching a search, one page at a time. |
| GET | /pubdev/package | One pub.dev package: its latest version, description and recent versions. |
| GET | /pubdev/score | The pub.dev score of a package: granted and maximum points, likes and downloads. |
| GET | /pubdev/version | One pub.dev package version: its dependencies, SDK constraint and archive checksum. |
| GET | /pubdev/advisories | Security advisories that pub.dev lists for a package. |
| GET | /pubdev/list | pub.dev packages in the registry's own order, 100 per page, with their latest version. Page with cursor. |
| GET | /pubdev/versions | Every version of one pub.dev package, oldest first, with the time each was published, paged. |
| GET | /pubdev/packagePublisher | The verified publisher of one pub.dev package, such as dart.dev, with the publisher's description and website. |
search
/v1/pubdev/searchpub.dev packages matching a search, one page at a time.
Parameters
querystring required | Words to search for, such as http. e.g. http |
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/pubdev/search?query=http" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/search?query=http", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/search?query=http", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "http", "url": "https://pub.dev/packages/http" }, { "name": "dio", "url": "https://pub.dev/packages/dio" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubdev", "requestId": "req_2Xb9kQ…", "units": 1 } }
package
/v1/pubdev/packageOne pub.dev package: its latest version, description and recent versions.
Parameters
namestring required | Package name, such as http. e.g. http |
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
description | string |
homepage | string |
name | string |
publishedAt | string |
repository | string |
version | string |
versions | string[] |
curl "https://api.hoshime.com/v1/pubdev/package?name=http" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/package?name=http", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/package?name=http", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/pubdev/scoreThe pub.dev score of a package: granted and maximum points, likes and downloads.
Parameters
namestring required | Package name, such as http. e.g. http |
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
downloadCount30Days | integer (int64) |
grantedPoints | integer (int64) |
likeCount | integer (int64) |
maxPoints | integer (int64) |
name | string |
tags | string[] |
curl "https://api.hoshime.com/v1/pubdev/score?name=http" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/score?name=http", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/score?name=http", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/pubdev/versionOne pub.dev package version: its dependencies, SDK constraint and archive checksum.
Parameters
namestring required | Package name, such as http. e.g. http |
versionstring required | Version, such as 1.2.2. e.g. 1.2.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
10 fields
archiveSha256 | string |
archiveUrl | string |
dependencies | map |
description | string |
name | string |
publishedAt | string |
repository | string |
sdk | string |
topics | string[] |
version | string |
curl "https://api.hoshime.com/v1/pubdev/version?name=http&version=1.2.2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/version?name=http&version=1.2.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/pubdev/version?name=http&version=1.2.2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/pubdev/advisoriesSecurity advisories that pub.dev lists for a package.
Parameters
namestring required | Package name, such as http. e.g. http |
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
advisoriesUpdatedAt | string |
aliases | string[] |
id | string |
publishedAt | string |
summary | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/pubdev/advisories?name=http" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/advisories?name=http", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/advisories?name=http", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/pubdev/listpub.dev packages in the registry's own order, 100 per page, with their latest version. Page with cursor.
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
4 fields
description | string |
name | string |
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/pubdev/list" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/list", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/list", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/pubdev/versionsEvery version of one pub.dev package, oldest first, with the time each was published, paged.
Parameters
namestring required | Package name, such as http. e.g. http |
limitinteger | Items per page, 1 to 200. default 50 |
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
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/pubdev/versions?name=http" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/versions?name=http", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/versions?name=http", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/pubdev/packagePublisherThe verified publisher of one pub.dev package, such as dart.dev, with the publisher's description and website.
Parameters
namestring required | Package name, such as http. e.g. http |
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
description | string |
id | string |
websiteUrl | string |
curl "https://api.hoshime.com/v1/pubdev/packagePublisher?name=http" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubdev/packagePublisher?name=http", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubdev/packagePublisher?name=http", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "…", "id": "abc123", "websiteUrl": "https://…" }, "meta": { "cached": false, "endpoint": "packagePublisher", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubdev", "requestId": "req_2Xb9kQ…", "units": 1 } }