Skip to content
pubscout

pub_api_client

4.0.0, released 3 months ago by leoafarias.com

An unofficial API client for Pub.dev to interact with public package information.

$ flutter pub add pub_api_client
Source repository

What it does

Provides a Dart client to interact with public pub.dev package information, metrics, search, and publishers. It supports retrieving package scores, versions, documentation status, security advisories, and authenticated like states.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to fetch package metadata, scores, or search results programmatically from pub.dev.
  • You are building automation tools or clients that interact with the pub.dev API.

Skip it when

  • You need to fetch general web resources unrelated to pub.dev (use http or dio instead).
  • You expect unconstrained search pagination beyond pub.dev's 100-result search paging cap.

Strengths

  • Comprehensive coverage of public pub.dev endpoints including packages, publishers, search, and advisories.
  • Supports authenticated requests for managing package likes.

Weaknesses

  • Subject to pub.dev API limitations, such as a 10-page cap on search results.
  • Unofficial API client which may require updates if pub.dev alters its backend endpoints.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
5
import 'package:pub_api_client/pub_api_client.dart';

void main() {
  final client = PubClient();
}

Alternatives

Packages that do the same job and could replace pub_api_client.

Works with

Packages commonly used together with pub_api_client: ones it builds on, ones built on it, and its own family.