Crates.io Package Scraper avatar

Crates.io Package Scraper

Pricing

from $1.50 / 1,000 results

Go to Apify Store
Crates.io Package Scraper

Crates.io Package Scraper

Search and extract Rust package data from Crates.io. Get download stats, versions, dependencies, and metadata. No API key required.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

cloud9

cloud9

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

19 hours ago

Last modified

Categories

Share

Search and extract Rust package data from Crates.io. Get download stats, versions, dependencies, and metadata. No API key required.

Use cases

  • Benchmark Rust crates by download volume before choosing a dependency
  • Track adoption of your own crate over time
  • Audit a project's dependency list for licenses and maintenance activity
  • Build a Rust ecosystem dashboard or newsletter
  • Find alternatives to an unmaintained crate

Input

ParameterTypeRequiredDefaultDescription
modestringNo"search"search: search crates by keyword. detail: fetch details for specific crate names. Allowed: search, detail.
querystringNo"web framework"Search keyword (required for search mode)
crateNamesarrayNo["tokio","serde","actix-web"]List of crate names to fetch details for (required for detail mode)
sortstringNo"downloads"Sort order for search results Allowed: downloads, recent-downloads, recent-updates, new.
maxResultsintegerNo20Maximum number of results to return (search mode only)

Example input

{
"mode": "search",
"query": "web framework",
"crateNames": [
"tokio",
"serde",
"actix-web"
],
"sort": "downloads",
"maxResults": 20
}

Output

The exact fields depend on the mode you run. This is real output from an actual run of this Actor:

{
"name": "tokio",
"version": "1.53.1",
"description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O\nbacked applications.\n",
"downloads": 941695801,
"recentDownloads": 218364796,
"homepage": "https://tokio.rs",
"repository": "https://github.com/tokio-rs/tokio",
"license": null,
"keywords": [],
"categories": [],
"updatedAt": "2026-07-20T17:06:09.996426Z",
"cratesioUrl": "https://crates.io/crates/tokio"
}
FieldType
namestring
versionstring
descriptionstring
downloadsnumber
recentDownloadsnumber
homepagestring
repositorystring
licensenull
keywordsarray
categoriesarray
updatedAtstring
cratesioUrlstring

Results are exportable from Apify Console or the API as JSON, CSV, Excel, or XML.

How to run it

In Apify Console — open the Actor, fill in the input form, click Start, then download the results from the Dataset tab.

With the JavaScript client

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('cloud9_ai/cratesio-scraper').call({
"mode": "search",
"query": "web framework",
"crateNames": [
"tokio",
"serde",
"actix-web"
],
"sort": "downloads",
"maxResults": 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

With the Python client

from apify_client import ApifyClient
client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('cloud9_ai/cratesio-scraper').call(run_input={
"mode": "search",
"query": "web framework",
"crateNames": [
"tokio",
"serde",
"actix-web"
],
"sort": "downloads",
"maxResults": 20
})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)

With the APIPOST https://api.apify.com/v2/acts/cloud9_ai~cratesio-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN with the input JSON as the body.

Notes and limits

  • No API key, account, or login is needed — just the input above.
  • maxResults caps how much a single run collects, which is also what caps the run's cost.
  • Requests are paced and failed requests are retried automatically, so runs stay inside the source's rate limits.
  • Only publicly available data is collected. How you use the output is your responsibility, including the source's terms of use and any applicable data-protection law.

Support

Found a bug, or need a field that isn't in the output? Open an issue on the Issues tab of this Actor in Apify Console. Issues there are read and answered.

License

Apache-2.0