pub API for agents (unofficial) — JSON over curl | clify
pub.dev is the official registry for Dart and Flutter packages. This CLI searches packages and reads package metadata, versions, scores, metrics, docs status, publishers, topics and the atom feeds through pub.dev's public JSON API.
Host: pub.dev. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Example: curl 'https://clify-dev.netlify.app/sites.json'. Start with /search?q=weather, then call /abc/COMMAND. Responses are one JSON object. The hosted MCP and GitHub repo are also available.
Commands
search-packages
Search pub.dev packages by keyword and/or qualifiers (topic:, platform:, sdk:, dependency:, publisher:, is:, license:, has:, updated:), with sort and pagination. Params: q*, sort, page
curl 'https://clify-dev.netlify.app/pub/search-packages?q=http&sort=like&page=2'
get-package
Get a package's latest version: version number, pubspec (description, dependencies, SDK constraint, repository), archive URL and publish date. Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package'
list-package-versions
List all published versions of a package, oldest first, with publish date and archive URL. Params: name*
curl 'https://clify-dev.netlify.app/pub/list-package-versions'
get-package-version
Get the pubspec, archive URL/sha256 and publish date of one specific package version. Params: name*, version*
curl 'https://clify-dev.netlify.app/pub/get-package-version'
get-package-score
Get a package's pub points (granted/max), like count, 30-day downloads and tags (sdk, platform, publisher, license, etc.). Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-score'
get-package-metrics
Get the full analysis scorecard for a package: score, pana report sections, licenses, repository verification, all dependencies and weekly download history. Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-metrics'
get-package-likes
Get the number of likes for a package. Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-likes'
get-package-publisher
Get the verified publisher ID that owns a package (null if it has no publisher). Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-publisher'
get-package-options
Check whether a package is discontinued or unlisted, and which package replaces it. Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-options'
get-package-docs-status
List a package's versions with their API documentation (dartdoc) build status and availability. Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-docs-status'
get-package-feed
Get the Atom feed of a package's recently published versions, including changelog excerpts. Params: name*
curl 'https://clify-dev.netlify.app/pub/get-package-feed'
get-publisher
Get a verified publisher's description, website URL and contact email. Params: publisher*
curl 'https://clify-dev.netlify.app/pub/get-publisher'
list-publisher-packages
List packages owned by a publisher, with likes, pub points, downloads, latest version and description (scraped from the publisher's packages page). Params: publisher*
curl 'https://clify-dev.netlify.app/pub/list-publisher-packages'
list-recent-packages
Get the site-wide Atom feed of the most recently published package versions on pub.dev. Params: none
curl 'https://clify-dev.netlify.app/pub/list-recent-packages'
list-package-names
List the names of every package on pub.dev. The output is very large. Params: none
curl 'https://clify-dev.netlify.app/pub/list-package-names'
list-topics
List all package topics with the number of packages tagged with each, as a map of topic to count. Params: none
curl 'https://clify-dev.netlify.app/pub/list-topics'
list-search-qualifiers
List the search qualifiers (is:, has:, license:, platform:, sdk:, topic:, etc.) and the allowed values for each, for building search-packages queries. Params: none
curl 'https://clify-dev.netlify.app/pub/list-search-qualifiers'