Crates.io Rust Packages Scraper - Downloads & Versions avatar

Crates.io Rust Packages Scraper - Downloads & Versions

Pricing

from $6.80 / 1,000 results

Go to Apify Store
Crates.io Rust Packages Scraper - Downloads & Versions

Crates.io Rust Packages Scraper - Downloads & Versions

Scrape Rust crates by keyword with download counts, recent downloads, latest version, homepage, repository, documentation, categories and keywords. Export to JSON, CSV or Excel.

Pricing

from $6.80 / 1,000 results

Rating

0.0

(0)

Developer

Scrapers Lat

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 hours ago

Last modified

Share

Crates.io Rust Packages Scraper

Crates.io Rust Packages Scraper - Downloads & Versions

Here is one real result, with every field the actor returns (this record has both AI add-ons enabled):

{
"name": "mio",
"description": "Lightweight non-blocking I/O.",
"crateUrl": "https://crates.io/crates/mio",
"downloads": 933935778,
"recentDownloads": 218423815,
"maxVersion": "1.2.2",
"newestVersion": "1.2.2",
"numVersions": 79,
"homepage": "https://github.com/tokio-rs/mio",
"repository": "https://github.com/tokio-rs/mio",
"documentation": null,
"categories": [],
"keywords": [],
"createdAt": "2014-11-11T23:52:39.666778Z",
"updatedAt": "2026-07-13T15:39:09.471139Z",
"license": "MIT",
"latestVersion": "1.2.2",
"latestVersionSize": 111363,
"latestVersionPublishedAt": "2026-07-13T15:39:09.471139Z",
"latestVersionPublishedBy": {
"login": "Thomasdezeeuw",
"name": "Thomas de Zeeuw",
"url": "https://github.com/Thomasdezeeuw"
},
"rustVersion": "1.71",
"edition": "2021",
"yanked": false,
"maintainers": [
{ "login": "carllerche", "name": "Carl Lerche", "kind": "user", "url": "https://github.com/carllerche" },
{ "login": "github:tokio-rs:mio-core", "name": "mio-core", "kind": "team", "url": "https://github.com/tokio-rs" }
],
"aiSummary": "Mio is a low-level library for handling non-blocking I/O operations in Rust, making it ideal for building high-performance network applications and servers.",
"aiTags": ["rust", "io", "non-blocking", "lightweight", "asynchronous", "networking", "event-driven", "performance"],
"source": "crates.io",
"observedAt": "2026-08-14T07:12:15.416Z"
}

The most complete crates.io scraper available. It returns every field the Rust package registry exposes for each crate, including total and recent downloads, latest version with license, MSRV, package size and publish date, and the full maintainer list with GitHub handles, plus two optional AI add-ons, and searches the registry by any keyword.

📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples

Apify Coverage Output Billing

Table of contents

What it does

The actor searches the public crates.io registry for your keyword, sorts by download count, and writes one normalized record per crate to the run's dataset. Download counts and version counts are parsed to numbers, and each crate is enriched from its detail page with the license, minimum supported Rust version, package size, latest publisher and the full maintainer/owner list. Missing source values are returned as null, never invented.

Data covers the entire public crates.io Rust package registry. Two optional AI add-ons (withAiSummary, withAiTags) can enrich each record; they are opt-in, billed only when they produce output, and disabled on free Apify plans.

Quickstart

Open the actor, paste this into the input, and press Run. It returns the 2 most-downloaded crates matching "async runtime".

{
"searchQuery": "async runtime",
"maxCrates": 2
}

Leave the AI add-ons off (default) for the raw crate fields. With an empty input the actor searches serialization and returns the top 10 crates.

Input reference

FieldTypeRequiredDefaultDescription
searchQuerystringnoserializationKeyword to search Rust crates, for example async runtime, web framework, http client.
maxCratesintegerno10Maximum crates to collect. Free Apify plans are capped at 10 per run.
withAiSummarybooleannofalseAdd a plain-English AI summary of each crate from its description. Paid add-on, disabled on free plans.
withAiTagsbooleannofalseGenerate concise topic tags for each crate via AI. Paid add-on, disabled on free plans.

Output reference

One dataset item per crate, sorted by download count. Types: string, number, boolean, string[], object, or null when the source value is absent.

FieldTypeDescription
namestringCrate name.
descriptionstringCrate description, or null.
crateUrlstringcrates.io page URL.
downloadsnumberTotal all-time downloads.
recentDownloadsnumberRecent (90-day) downloads.
maxVersionstringHighest stable version.
newestVersionstringNewest published version.
numVersionsnumberNumber of published versions.
homepagestringHomepage URL, or null.
repositorystringSource repository URL, or null.
documentationstringDocumentation URL, or null.
categoriesstring[]crates.io categories.
keywordsstring[]crates.io keywords.
createdAtstringFirst-published timestamp (ISO 8601).
updatedAtstringLast-updated timestamp (ISO 8601).
licensestringLatest version license (SPDX), or null.
latestVersionstringLatest version number.
latestVersionSizenumberLatest version package size in bytes, or null.
latestVersionPublishedAtstringLatest version publish timestamp, or null.
latestVersionPublishedByobjectPublisher of the latest version (login, name, url), or null.
rustVersionstringMinimum supported Rust version (MSRV), or null.
editionstringRust edition, for example 2021, or null.
yankedbooleanWhether the latest version is yanked, or null.
maintainersobject[]Owners/maintainers (login, name, kind, url).
aiSummarystringAI plain-English summary. Present only when withAiSummary is enabled.
aiTagsstring[]AI topic tags. Present only when withAiTags is enabled.
sourcestringConstant source tag. Always crates.io.
observedAtstringISO 8601 timestamp of when the record was collected.

On a failed run, a single item with a populated error field is written instead.

Example output record

Real record from a live run (input {"searchQuery":"async runtime","maxCrates":2}):

{
"name": "mio",
"description": "Lightweight non-blocking I/O.",
"crateUrl": "https://crates.io/crates/mio",
"downloads": 933935778,
"recentDownloads": 218423815,
"maxVersion": "1.2.2",
"numVersions": 79,
"repository": "https://github.com/tokio-rs/mio",
"createdAt": "2014-11-11T23:52:39.666778Z",
"updatedAt": "2026-07-13T15:39:09.471139Z",
"license": "MIT",
"latestVersion": "1.2.2",
"latestVersionSize": 111363,
"rustVersion": "1.71",
"edition": "2021",
"yanked": false,
"maintainers": [
{ "login": "carllerche", "name": "Carl Lerche", "kind": "user", "url": "https://github.com/carllerche" }
],
"source": "crates.io",
"observedAt": "2026-08-14T07:12:15.416Z"
}

Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace <TOKEN> with your Apify API token.

Run synchronously and get dataset items in one call:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~crates-io-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"searchQuery":"async runtime","maxCrates":25}'

Start a run asynchronously:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~crates-io-scraper/runs?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"searchQuery":"web framework","maxCrates":100}'

Apify CLI:

apify call scrapers_lat/crates-io-scraper \
--input '{"searchQuery":"http client","maxCrates":10}'

Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing format:

# JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"
# CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"
# Paginate large datasets
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"

<DATASET_ID> is returned as defaultDatasetId in the run object. Use offset and limit to page through large result sets. clean=true drops empty and internal fields.

Billing and limits

  • Pay per result. You are charged per crate returned (result event). See the pricing tab for the current per-result price.
  • AI add-ons billed separately. withAiSummary and withAiTags each charge their own event only when they produce output, and are disabled on free plans.
  • No charge on failure. If a run errors, the actor writes a single item with a populated error field and does not charge for it. Empty runs cost nothing.
  • Spend cap respected. Set maxTotalChargeUsd on the run; once reached, the actor stops emitting and charging further billable results.
  • Free Apify plans are capped at 10 records per run. Upgrade for higher maxCrates.

FAQ and troubleshooting

A run returned 0 records. Why? The keyword matched no crates. Try a broader keyword. Zero-result runs are not charged.

How are results ordered? Crates are returned by total download count, so the most-used ones come first.

Which fields are numeric? downloads, recentDownloads, numVersions and latestVersionSize are parsed as numbers so you can sort and filter directly.

How fresh is the data? Download counts and versions are read live at run time, so each record reflects the moment of the run (see observedAt).

Do the AI add-ons work on a free plan? No. The AI add-ons require a paid Apify plan and are disabled automatically for free users. The base crate fields are always returned.

Is this an official crates.io tool? No. This actor is independent and has no affiliation with crates.io or the Rust project. It reads only data that is publicly available through the crates.io API. Use the results in accordance with the source's terms.

More scrapers at scrapers.lat

Built and maintained by scrapers.lat, where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at scrapers.lat.


Independent tool, not affiliated with crates.io or the Rust project. Accesses only publicly available crate data. Use in accordance with the source's terms.