pub.dev Packages API

Search for packages, retrieve package metadata, version details, publisher information, and scoring data from the official Dart and Flutter package registry.

GitHub OpenAPI

Operations 2

GET /api/package-name-completion-data Returns the top package names on pub.dev for name completion. #
GET /api/package-names Returns all package names on pub.dev, paginated. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pub-dev:pub-dev-packages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pub-dev-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: pub.dev API
  version: '2026-11-11'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-11: 3 operation(s)
    read from 2 public documentation page(s) (each operation names its page in x-source).
    This is not the provider''s published contract; pub.dev has published no machine-readable
    contract that the pipeline could find. Engine: anthropic.'
  x-evidence-tiers:
    code-example: 1
    documentation: 2
    pages-with-code: 1
    pages-read: 2
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-11'
  x-generator: generate-contract-from-docs.py
  x-engine: anthropic
  x-sources:
  - https://pub.dev/help/api
  - https://developers.google.com
  x-correction: '2026-11-11: removed a Gemini operation and x-goog-api-key scheme
    picked up from developers.google.com (another product); the documented pub.dev
    endpoints are anonymous GETs.'
paths:
  /api/package-name-completion-data:
    get:
      operationId: get_api_package_name_completion_data
      tags:
      - Api
      summary: Returns the top package names on pub.dev for name completion.
      x-source: https://pub.dev/help/api
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiPackageNameCompletionDataResponse'
      x-evidence:
        kind: documentation
  /api/package-names:
    get:
      operationId: get_api_package_names
      tags:
      - Api
      summary: Returns all package names on pub.dev, paginated.
      x-source: https://pub.dev/help/api
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiPackageNamesResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiPackageNameCompletionDataResponse:
      type: object
      properties:
        packages:
          type: array
          description: Array of top package names on pub.dev
    GetApiPackageNamesResponse:
      type: object
      properties:
        packages:
          type: array
          description: Array of package names
        nextUrl:
          type: string
          description: URL for the next page if present
    PostV1BetaModelsGemini35FlashGeneratecontentRequest:
      type: object
      properties:
        contents:
          type: array
          items:
            type: object
            properties:
              parts:
                type: array
                items:
                  type: object
                  properties:
                    text:
                      type: string
tags:
- name: Api
- name: V1Beta
servers:
- url: https://pub.dev
  description: Stated on https://pub.dev/help/api (GET https://pub.dev/api/...)