Pub.dev Scraper avatar

Pub.dev Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Pub.dev Scraper

Pub.dev Scraper

Scrape Pub.dev, the official Dart and Flutter package repository with 40K+ packages. Search packages, fetch package details with scores, get all packages by a publisher, or browse trending packages.

Pricing

from $3.00 / 1,000 results

Rating

5.0

(4)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

4

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Scrape Pub.dev — the official Dart and Flutter package repository with 40,000+ packages. Search by keyword, fetch a specific package with full scoring data, get all packages by a publisher, or browse trending Flutter packages.

No API key, login, or proxy required. Uses the free public Pub.dev REST API.

Features

  • Search packages by keyword with full pagination
  • Fetch a specific package by name with scores (pub points, likes, popularity)
  • List all packages by a publisher domain (e.g. flutter.dev, dart.dev)
  • Browse trending packages sorted by popularity score

Input

FieldTypeDescription
modeselectsearch / byPackage / byPublisher / trending
querystringSearch keyword (mode=search)
packageNamestringExact package name (mode=byPackage)
publisherIdstringPublisher domain (mode=byPublisher), e.g. flutter.dev
maxItemsintegerMax records to emit (1–1000, default 20)

Example inputs

Search packages:

{
"mode": "search",
"query": "flutter",
"maxItems": 20
}

Fetch a specific package:

{
"mode": "byPackage",
"packageName": "dio"
}

Get all packages by a publisher:

{
"mode": "byPublisher",
"publisherId": "flutter.dev",
"maxItems": 50
}

Browse trending packages:

{
"mode": "trending",
"maxItems": 20
}

Output

Each record contains:

FieldTypeDescription
packagestringPackage name
versionstringLatest published version
descriptionstringPackage description
homepagestringPackage homepage URL
repositorystringSource code repository URL
publishedAtstringISO timestamp of latest version release
likesintegerNumber of pub.dev likes
popularityScorenumberPopularity score (0.0–1.0)
pubPointsintegerPub points awarded
maxPointsintegerMaximum achievable pub points
sdkConstraintstringDart SDK version constraint
publisherIdstringPublisher domain (e.g. flutter.dev)
pubDevUrlstringDirect pub.dev package page URL
scrapedAtstringISO timestamp when record was scraped

Example record

{
"package": "dio",
"version": "5.4.0",
"description": "A powerful HTTP client for Dart, which supports Interceptors.",
"homepage": "https://github.com/cfug/dio",
"repository": "https://github.com/cfug/dio",
"publishedAt": "2024-01-15T10:00:00.000Z",
"likes": 5000,
"popularityScore": 0.9932,
"pubPoints": 160,
"maxPoints": 160,
"sdkConstraint": ">=3.0.0 <4.0.0",
"publisherId": "dart.cn",
"pubDevUrl": "https://pub.dev/packages/dio",
"scrapedAt": "2026-05-25T10:00:00+00:00"
}

FAQs

Does this require an API key or login? No. The Pub.dev public API is freely accessible without authentication.

What is the trending mode? Trending mode queries Pub.dev for Flutter SDK packages sorted by popularity score, giving you the most widely-used packages in the Flutter ecosystem.

How does the search mode work? Pub.dev returns a page of package names per request. For each name returned, the scraper fetches the full package details, score, and publisher in parallel. This ensures you get complete metadata for every result.

What are pub points? Pub points (0–160) are awarded by Pub.dev based on documentation quality, code conventions, platform support, and other quality criteria. Higher scores indicate better-maintained packages.

Which fields are always present? package, pubDevUrl, and scrapedAt are always populated. All other fields are omitted if not available for a package.

Can I filter by SDK (Dart vs Flutter)? Use the search query with SDK filters: e.g. sdk:flutter or sdk:dart. Combine with a keyword: "flutter dio".

What is a publisher ID? Publisher IDs are verified domain names registered on Pub.dev (e.g. flutter.dev, dart.dev, google.dev). They certify that packages are officially maintained by that organization.