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.
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.
- ip_country_lookup
Retrieves public IP address and country location using no-key third-party providers.
75Compare - ftpconnect
Interact with FTP, FTPS, FTPES, and SFTP servers to upload, download, and manage files.
72Compare - vmodal_sdk_flutter
Typed VModal API client for Flutter to upload videos and search moments by meaning.
67Compare - sync_http
Synchronous HTTP client for Dart using RawSynchronousSockets.
50Compare
Works with
Packages commonly used together with pub_api_client: ones it builds on, ones built on it, and its own family.
- pubspec_parsepub_api_client depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- oauth2pub_api_client depends on itA client library for OAuth2 authentication and authorized HTTP requests.
- dart_mappablepub_api_client depends on itJSON serialization and data classes generator supporting generics, inheritance, and customization.
- cli_toolsBuilt on pub_api_clientUtilities for building command‑line interfaces, including argument parsing, analytics, and progress reporting.
- serverpod_cliBuilt on pub_api_clientCommand line tools for Serverpod.